Classical

Object Oriented Programming - Object Modelling

31:  

Which of the following is pure virtual function?

A.

virtual void funct (int n)

B.

virtual void funct () = 0

C.

virtual funct (int n);

D.

virtual void funct (int n) = 0

 
 

Option: D

Explanation :


32:  

VIrtual pointer is

A.

data member

B.

pointer to a base class

C.

pointer to a derived class

D.

none of these

 
 

Option: A

Explanation :


33:  
Data members and member function of a class by default is respectively
A.

private and public

B.

public and private

C.

both private

D.

both public

 
 

Option: A

Explanation :


34:  

Method overloading is

A.
overloading different member function of a class
B.
feature in which multiple functions with same name and different signature.
C.

overloading without argument passing.

D.

none of these

 
 

Option: A

Explanation :


35:  
In the binary overloaded operator function, second operand should be passed
A.

explicitly

B.

implicitly

C.

passed by value

D.

passed by reference

 
 

Option: A

Explanation :




Suggest an improvement