CPP Programming MCQs | Page - 7
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 operator is required to be overloaded as member function only?
β
Correct Answer: (D)
=
Q. Class function which is called automatically as soon as the object is created is called as __
β
Correct Answer: (A)
Constructor
Q. Which type of data file is analogous to an audio cassette tape?
β
Correct Answer: (B)
Sequential access file
Q. What is the built in library function to compare two strings?
β
Correct Answer: (B)
strcmp()
Q. Which of the following are member dereferencing operators in CPP? 1. * 2. :: 3. ->* 4. ::* 5. ->
β
Correct Answer: (A)
Only 1, 3, 4
Q. Which of the followings is/are pointer-to-member declarator?
β
Correct Answer: (C)
::*
Q. Assigning one or more function body to the same name is called ____________.
β
Correct Answer: (B)
Function Overloading
Q. Default values for a function are specified when ____.
β
Correct Answer: (B)
Function is declared
Q. Which of the following best defines the syntax for template function?
β
Correct Answer: (C)
Both a and b
Jump to