81) Static variable must be declared in public section of the class.

A. True

B. False

Answer : B

82) By default, if a function with minimum lines of code is declared and defined inside the class becomes Inline function.

A. True

B. False

Answer : A

83) class X, class Y and class Z are derived from class BASE. This is ______ inheritance.

A. Multiple

B. Multilevel

C. Hierarchical

D. Single

Answer : C

84) When base class is derived in protected mode, then_____________ .

1. public members of base class become private members of derived class.

2. public members of base class become protected members of derived class.

3. public members of base class become public members of derived class.

4. protected members of base class become protected members of derived class.

5. protected members of base class become private members of derived class.

6. protected members of base class become public members of derived class.

A. Only 1, 5

B. Only 1, 6

C. Only 2, 6

D. Only 2, 4

Answer : D

85) Can we have overloading of the function templates?

A. Yes

B. No

Answer : A

error: Content is protected !!