C++ Programming - Constructors and Destructors

Exercise : Constructors and Destructors - General Questions
11.
A function with the same name as the class, but preceded with a tilde character (~) is called __________ of that class.
constructor
destructor
function
object
Answer: Option
Explanation:
No answer description is available. Let's discuss.

12.
A union that has no constructor can be initialized with another union of __________ type.
different
same
virtual
class
Answer: Option
Explanation:
No answer description is available. Let's discuss.

13.
Which of the following gets called when an object goes out of scope?
constructor
destructor
main
virtual function
Answer: Option
Explanation:
No answer description is available. Let's discuss.

14.
Which of the following statement is correct?
Destructor destroys only integer data members of the object.
Destructor destroys only float data members of the object.
Destructor destroys only pointer data members of the object.
Destructor destroys the complete object.
Answer: Option
Explanation:
No answer description is available. Let's discuss.

15.
__________ used to make a copy of one class object from another class object of the same class type.
constructor
copy constructor
destructor
default constructor
Answer: Option
Explanation:
No answer description is available. Let's discuss.