Classical

Object Oriented Programming - Object Modelling

26:  
Template classes that have already been written to perform common class tasks are called
A.

container classed

B.

receptacle classes

C.

repository classes

D.

alembic classes

 
 

Option: A

Explanation :


27:  
A programming structure that contains data and a pointer to the next object is a
A.

template

B.

class

C.

pointer class

D.

linked list

 
 

Option: D

Explanation :


28:  

Visibility mode by default is

A.

public

B.

private

C.

protected

D.

anywhere

 
 

Option: D

Explanation :


29:  
Virtual function should be defined in ........ section of a class.
A.

private

B.

public

C.

protected

D.

anywhere

 
 

Option: D

Explanation :


30:  

Which of the following statement is/are correct?

A.
Only class member functions qualify for virtual functions
B.
A base class pointer may address an object of its class or an object of any class derived from the base class.
C.
Virtual functions have to be accessed through the a pointer to the base class only
D.

Friend function qualify for virtual function

 
 

Option: C

Explanation :




Suggest an improvement