Top 50+ Solved Introduction to C Language MCQ Questions Answer
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
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
Q. In the standard library of C programming language, which of the following header file is designed for basicmathematical operations?
a. math.h
b. conio.h
c. dos.h
d. stdio.h
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.