Contents

Which of the following is not type of constructor?
a) friend constructor
b) copy constructor
c) default constructor                        
d) parameterized constructor

a

Which of the following is not member of class?
a) static function
b) friend function
c) constant function           
d) virtual function

b

What is the other name used for functions inside a class?
a) member variable            
b) member 
function
c) class function  
d) class variable

b

Which of the following cannot be a friend?
a) function                           
b) class
c) object                                               
d) operator function

c

How many types of polymorphism in C++?
a) one    
b) two    
c) three  
d) four

b

Explanation: run time polymorphism, compile time polymorphism


How are run-time polymorphism implemented in C++?
a) using inheritance                            
b) using virtual function
c) using templates               
d) both a & b

d