CPP Programming MCQs | Page - 8
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.
β
Correct Answer: (B)
bool
Q. If inner catch handler is not able to handle the exception then__________.
β
Correct Answer: (C)
Compiler will check for appropriate catch handler of outer try block
Q. Attempting to throw an exception that is not supported by a function call results in calling _____________ library function.
β
Correct Answer: (C)
unexpected()
Q. The code of statements which may cause abnormal termination of the program should be written under_________ block.
β
Correct Answer: (A)
Try
Q. When a virtual function is redefined by the derived class, it is called___________.
β
Correct Answer: (B)
Overriding
Q. While overloading binary operators using member function, it requires ___ argument/s.
β
Correct Answer: (B)
One
Q. Where the default value of parameter have to be specified?
β
Correct Answer: (C)
Function prototype
Q. For automatic objects, constructors and destructors are called each time the objects
β
Correct Answer: (A)
enter and leave scope
Q. When an ADT is implemented as a C++ class, which of the following should normally be true?
β
Correct Answer: (B)
Member functions are public, member variables are private
Jump to