Top 50+ Solved Introduction to C Language MCQ Questions Answer

From 16 to 20 of 20

Q. What is the scope of an external variable?

a. Whole source file in which it is defined

b. From the point of declaration to the end of the file in which it is defined

c. Any source file in a program

d. From the point of declaration to the end of the file being compiled

  • d. From the point of declaration to the end of the file being compiled

Q. What is the scope of a function?

a. Whole source file in which it is defined

b. From the point of declaration to the end of the file in which it is defined

c. Any source file in a program

d. From the point of declaration to the end of the file being compiled

  • d. From the point of declaration to the end of the file being compiled

Q. Which of the following statements should be used to obtain a remainder after dividing 3.14 by 2.1 ?

a. rem = 3.14 % 2.1;

b. rem = modf(3.14, 2.1);

c. rem = fmod(3.14, 2.1);

d. Remainder cannot be obtain in floating point division.

  • c. rem = fmod(3.14, 2.1);

Q. By default a real number is treated as a

a. A.float

b. double

c. C.long double

d. D. far double

  • b. B.double
Subscribe Now

Get All Updates & News