Classical

Object Oriented Programming - Object Modelling

11:  

The public files in a class library usually contain

A.

variable definition, constant definition

B.

class declaration, variable definition

C.

member function definition

D.

constant definition, class declaration

 
 

Option: A

Explanation :


12:  
Breaking a program into several files is desirable because 
A.
some files don't need to be recompiled each time
B.

a program can be divided functionally

C.

files can be marked in object form

D.

all of these

 
 

Option: C

Explanation :


13:  

Reference variables

A.
are bound to memory location at compile time only.
B.

bound to memory location at link time only.

C.

bound to memory location at load time only.

D.

none of these

 
 

Option: A

Explanation :


14:  

Runtime polymorphism can be achieved by

A.
accessing virtual function through the pointer of base class.
B.
by accessing virtual function through the object
C.

both (a) and (b)

D.

none of these

 
 

Option: A

Explanation :


15:  

Which of the following is true statement?

A.

Friend function can access public data only

B.
Scope of friend function is limited within the class where it is declared.
C.
A friend function can't be called using the object of that class.
D.
Like class member, it can acess the class members directly.
 
 

Option: C

Explanation :




Suggest an improvement