General Questions

Question 16 :

Constructors __________ to allow different approaches of object construction.


A). cannot overloaded
B). can be overloaded
C). can be called
D). can be nested
Answer : Option B

Question 17 :

Which of the following statement is correct?


A). A destructor has the same name as the class in which it is present.
B). A destructor has a different name than the class in which it is present.
C). A destructor always returns an integer.
D). A destructor can be overloaded.
Answer : Option A

Question 18 :

Which of the following cannot be declared as virtual?


A). Constructor
B). Destructor
C). Data Members
D). Both A and C
Answer : Option D

Question 19 :

If the copy constructor receives its arguments by value, the copy constructor would


A). call one-argument constructor of the class
B). work without any problem
C). call itself recursively
D). call zero-argument constructor
Answer : Option C

Question 20 :

Which of the following are NOT provided by the compiler by default?


A). Zero-argument Constructor
B). Destructor
C). Copy Constructor
D). Copy Destructor
Answer : Option D