Classical

Object Oriented Programming - Object Modelling

81:  
Constructor should be defined in ...... section of a class
A.

public

B.

private

C.

protected

D.

abstract data type

 
 

Option: A

Explanation :


82:  
Which of the folloiwng is a realization of polymorphism?
A.

Operator over-loading

B.

Function over-loading

C.

Dynamic binding

D.

All of these

 
 

Option: D

Explanation :


83:  
The destructor is called before the program termination for
A.

static variable

B.

global variable

C.

non-static variable

D.

both (a) and (b)

 
 

Option: D

Explanation :


84:  
When more than one object is created globally they are destroyed
A.

in the same order as they created.

B.

in the reverse order

C.

first local object is destroyed and then global.

D.
first global object and then local object is destroyed
 
 

Option: B

Explanation :


85:  

The scope of nameless object

A.

have local scope

B.

have global scope

C.

only to the statement in which it is created

D.

both (a) and (b)

 
 

Option: C

Explanation :




Suggest an improvement