C++ Programming - Constructors and Destructors

Exercise : Constructors and Destructors - General Questions
16.
Constructors __________ to allow different approaches of object construction.
cannot overloaded
can be overloaded
can be called
can be nested
Answer: Option
Explanation:
No answer description is available. Let's discuss.

17.
Which of the following statement is correct?
A destructor has the same name as the class in which it is present.
A destructor has a different name than the class in which it is present.
A destructor always returns an integer.
A destructor can be overloaded.
Answer: Option
Explanation:
No answer description is available. Let's discuss.

18.
Which of the following cannot be declared as virtual?
Constructor
Destructor
Data Members
Both A and C
Answer: Option
Explanation:
No answer description is available. Let's discuss.

19.
If the copy constructor receives its arguments by value, the copy constructor would
call one-argument constructor of the class
work without any problem
call itself recursively
call zero-argument constructor
Answer: Option
Explanation:
No answer description is available. Let's discuss.

20.
Which of the following are NOT provided by the compiler by default?
Zero-argument Constructor
Destructor
Copy Constructor
Copy Destructor
Answer: Option
Explanation:
No answer description is available. Let's discuss.