Classical

Object Oriented Programming - Object Modelling

16:  

This pointer for any class internally declared as

A.

int* this;

B.

X* this;

C.

const X* this;

D.

X* const this;

 
 

Option: D

Explanation :

Click on Discuss to view users comments.

Write your comments here:



17:  
In a single class, function, polymorphism happens on
A.

run time

B.

compile time

C.

both (a) and (b)

D.

none of these

 
 

Option: D

Explanation :

Click on Discuss to view users comments.

Write your comments here:



18:  
In a single class, virtual polymorphism happen on
A.

run time

B.

compile time 

C.

both (a) and (b)

D.

none of these

 
 

Option: A

Explanation :

Click on Discuss to view users comments.

Write your comments here:



19:  

Which of the following is correct

A.

Constructors return values

B.

Constructors con't be overloaded.

C.

Destructors do not have return values.

D.
There can be any number of constructors and destructros.
 
 

Option: C

Explanation :

Click on Discuss to view users comments.

Write your comments here:



20:  

The use of constructor is

A.

to initilize the objects of its class

B.

to allocate memory for the objects of its class

C.

both (a) and (b)

D.

none of these

 
 

Option: A

Explanation :

Click on Discuss to view users comments.

Write your comments here:





Suggest an improvement