Contents

Which of the following are specific rules for naming of constructor?
a) same name as class              
b) have no return type
c) both a & b               
d) none of these

c

How many types of constructors in OOP?
a) one  
b) two 
c) three
d) four

b

Explanation: default constructor, user define constructor



The constructor that accepts no parameters and reserves memory for an object is called….
a) user-define constructor         
b) default constructor
c) default copy constructor
d) none of these

b

The constructor that accepts parameter to initialize the data member of an object is called….
a) user-define constructor
b) default constructor
c) default copy constructor       
d) none of these

a

Which of the following is not a type of Constructor?
a) user-define constructor         
b) default constructor
c) default copy constructor       
d) friend constructor

d

Constructors are commonly used for
a) constructing program           
b) running classes
c) initializing objects
d) all of these

c