Cpp : Constructors And Destructors 19

26.
When a copy constructor may be called?

A. When an object of the class is returned by value
B. When an object of the class is passed (to a function) by value as an argument.
C. Both A & B
D. None of the above

27.
For automatic objects, constructors and destructors are called each time the objects

A. Enter and leave scope
B. Inherit parent class
C. Are constructed
D. Are destroyed

28.
Can constructors be overloaded?

a. Yes
b. No

29.
Choose the correct statements.

A. A destructor is not inherited
B. A constructor cannot be called explicitly
C. A constructor is not inherited
D. All of the above

30.
Which of the following remarks about the differences between constructors and destructors are correct?

A. Constructors can take arguments but destructors cannot.
B. Constructors can be overloaded but destructors cannot be overloaded.
C. Destructors can take arguments but constructors cannot.
D. Both A and B