CPP Programming MCQs | Page - 6
Dear candidates you will find MCQ questions of CPP Programming here. Learn these questions and prepare yourself for coming examinations and interviews. You can check the right answer of any question by clicking on any option or by clicking view answer button.
Q. Which of the following is true about templates?
β
Correct Answer: (D)
1, 2, 3 and 4
Q. Which of the following is incorrect in C++?
(1)When we write overloaded function we must code the function for each usage.
(2)When we write function template we code the function only once.
(3)It is difficult to debug macros
(4)Templates are more efficient than macros
β
Correct Answer: (D)
All are correct.
Q. Which data type is used to represent the absence of parameters?
β
Correct Answer: (C)
void
Q. Which type is best suited to represent the logical values?
β
Correct Answer: (B)
Boolean
Q. Identify the user-defined types from the following?
β
Correct Answer: (C)
both enumeration and classes
Q. Which of the following statements are true? int f (float)
β
Correct Answer: (B)
f is a function taking an argument of type float and returning an integer
Q. The value 132.54 can be represented using which data type?
β
Correct Answer: (A)
double
Q. When a language has the capability to produce new data type mean, it can be called as …...
β
Correct Answer: (B)
extensible
Jump to