Practice Question and Answer
8Q: What would be the output of the following program? main() { extern int fun ( float ); int a; a = fun ( 3. 14 ); printf ("%d", a); } int fun ( aa ) float aa ; { return ( (int) aa ); } 720 05b5cc7dde4d2b419777515f7
5b5cc7dde4d2b419777515f7- Show AnswerHide Answer
- Workspace
- SingleChoice
Answer :
Explanation :
Error occurs because we have mixed the ANSI prototype with K & R style of function definition. When we use ANSI prototype for a function and pass a float to the function it is promoted to a double. When the function accepts this double into a float a type mismatch occurs hence the error. The remedy for this error could be to define the function as : int fun (float aa) { .... }
Q:Sentences of a paragraph are given below in jumbled order. Arrange the sentences in the correct order to form a meaningful and coherent paragraph.
P. Perhaps no definition of democracy is more popular and universally acceptable than what is given by Abraham Lincoln.
Q. He defines democracy as “a government of the people, by the people and for the people”.
R. Certainly, democracy is the most representative form of government.
S. To bind the people and take the nation ahead on the path of progress, democracy is the most suitable form of government for India.
720 0649ab29e46047484bc6fc21e
649ab29e46047484bc6fc21eQ. He defines democracy as “a government of the people, by the people and for the people”.
R. Certainly, democracy is the most representative form of government.
S. To bind the people and take the nation ahead on the path of progress, democracy is the most suitable form of government for India.
- 1PSRQfalse
- 2QRSPfalse
- 3PQRStrue
- 4SRQPfalse
- Show AnswerHide Answer
- Workspace
- SingleChoice
Answer : 3. "PQRS"
Q: Select the correct combination of mathematical signs to sequentially replace the * signs and balance the given equation.
17 * 11 * 42 * 2 * 7 = 18
720 064804806bf323e479a95a530
64804806bf323e479a95a53017 * 11 * 42 * 2 * 7 = 18
- 1- , +, ÷, ÷false
- 2-, +, ×, ÷true
- 3-, +, ×, ×false
- 4+, -, +, ×false
- Show AnswerHide Answer
- Workspace
- SingleChoice
Answer : 2. "-, +, ×, ÷"
Q: Arrange the given words in the sequence in which they occur in the dictionary.
i. nature
ii. nest
iii. numeric
iv. news
719 062cd4f7951fe3472d6b256f0
62cd4f7951fe3472d6b256f0- 1i, ii, iv, iiitrue
- 2i, ii, iii, ivfalse
- 3iii, i, ii, ivfalse
- 4iv, ii, iii, ifalse
- Show AnswerHide Answer
- Workspace
- SingleChoice
Answer : 1. "i, ii, iv, iii"
Q: A bone called ‘tibia’ is found in –
719 06335ccad93021d4ee41694d3
6335ccad93021d4ee41694d3- 1in the neckfalse
- 2in the legtrue
- 3in the elbowfalse
- 4in the skullfalse
- Show AnswerHide Answer
- Workspace
- SingleChoice
Answer : 2. "in the leg"
Q: Parvati irrigation project is beneficial for which of the following districts?
719 0635c0efc45573528566c6bcf
635c0efc45573528566c6bcf- 1Ganganagarfalse
- 2Dhaulpurtrue
- 3Alwarfalse
- 4Palifalse
- Show AnswerHide Answer
- Workspace
- SingleChoice
Answer : 2. "Dhaulpur"
Q: A is B's sister. C is B's mother. D is C's father. E is D's mother. How is A related to D?
719 06408884adf653d9ac228a4aa
6408884adf653d9ac228a4aa- 1Grandmotherfalse
- 2Grandfatherfalse
- 3Granddaughtertrue
- 4Daughterfalse
- Show AnswerHide Answer
- Workspace
- SingleChoice
Answer : 3. "Granddaughter"
Q: Select the most appropriate synonym of the given word.
Probe
719 0642241ad2b960e1a41808719
642241ad2b960e1a41808719- 1Searchtrue
- 2Motivatefalse
- 3Invitefalse
- 4Pushfalse
- Show AnswerHide Answer
- Workspace
- SingleChoice

