". VdoTips: C FUNDAMENTAL MCQ 14

APPLY LATEST GOVT JOBS

hi

C FUNDAMENTAL MCQ 14

Q.56 The break statement causes an exit
(A) Only from the innermost loop.
(B) Only from the innermost switch.
(C) From the innermost loop or switch.
(D) From the program.



Q.57 It is necessary to declare the type of function in the calling program if
(A) Function returns an integer.
(B) Function returns a non-integer value.
(C) Function is not defined in the same file.
(D) Function is called number of times.


Q.58 The function fprintf is used in a program
(A) When too many printf calls have been already used in the program.
(B) In place of printf, since printf uses more memory.
(C) When the output is to be printed on to a file.
(D) When the type of variables to be printed are not known before.



Q.59 The following statement displays float x = 2000.53; printf (“%e”, x);
(A) 2.00053e+04
(B) 2.00053e+03
(C) 2.00053+e04
(D) 2.0005e+03


Q.60 The output of the following is int a = 75; printf (“%d%%”, a); (A) 75
(B) 75%%
(C) 75%
(D) None of the above