-->

Which of the following manipulator is used for the representing octal equivalent of a given decimal number?

a. oct b. setbase(8) c. tobase(8) d. both a and b e. all a, b, c ANSWER: both a and b

A virtual function that has no definition within the base class is called____________.

a. Pure virtual function b. Pure static function c. Pure Const function d. Friend function ANSWER: Pure…

Constant variables can be created in CPP by using ________ .

a. enum b. const c. #define d. All of these e. None of these ANSWER: All of these

Object oriented programming employs_________ programming approach.

a. top-down b. procedural c. bottom-up d. all of these. ANSWER: bottom-up

In CPP, cin and cout are the predefined stream __________ .

a. Operator b. Functions c. Objects d. Data types ANSWER: Objects

Irrespective of exception occurrence, catch handler will always get executed.

a. True b. False ANSWER: False

_________________are used for generic programming.

a. Inheritance b. Virtual Functions c. Templates d. None of these ANSWER: Templates

Can we pass parameters to base class constructor though derived class or derived class constructor?

a. Yes b. No ANSWER: Yes

Can a class be declared/defined inside another class ?

a. Yes b. No ANSWER: Yes

The CPP compiler supports automatic type conversions for the user defined datatypes.

a. True b. False ANSWER: False

An exception can be of only built-In type.

a. True b. False ANSWER: False

Generic catch handler must be placed at the end of all the catch handlers.

a. True b. False ANSWER: True

By default, all the files are opened in ___________mode .

a. Binary b. Text c. Can’t say ANSWER: Text

If abstract class is inherited by derived class, then_______________ .

a. Derived class should provide definition for all the pure virtual functions b. Derived class also …

While overloading binary operators using member function, it requires ___ argument/s.

a. Zero b. One c. Two d. Three ANSWER: One

Private members of the class are not inheritable.

a. True b. False ANSWER: False

It is not possible to combine two or more file opening mode in open () method.

a. True b. False ANSWER: False

Which one is suitable syntax for function template?

a. template< class T> return_type Function_Name(parameters) b. template< typename T> ret…

Generic catch handler is represented by ______________ .

a. catch(..,) b. catch(---) c. catch(…) d. catch( void x) ANSWER: catch(…)

If inner catch handler is not able to handle the exception then__________ .

a. Compiler will look for outer try handler b. Program terminates abnormally c. Compiler will check f…