Constructors and Destructors on C++ related Questions and Answers - Page 2

Question 11 : Constructors __________ to allow different approaches of object construction.
1. cannot overloaded
2. can be overloaded
3. can be called
4. can be nested
View Answer   Discuss with Members

Question 13 : Which of the following gets called when an object goes out of scope?
1. constructor
2. destructor
3. main
4. virtual function
View Answer   Discuss with Members

Question 14 : Which constructor function is designed to copy objects of the same class type?
1. Create constructor
2. Object constructor
3. Dynamic constructor
4. Copy constructor
View Answer   Discuss with Members

Question 15 : For automatic objects, constructors and destructors are called each time the objects
1. enter and leave scope
2. inherit parent class
3. are constructed
4. are destroyed
View Answer   Discuss with Members

Question 16 : Destructor has the same name as the constructor and it is preceded by ______ .
1. !
2. ?
3. ~
4. $
View Answer   Discuss with Members

Question 17 : A constructor that accepts __________ parameters is called the default constructor.
1. one
2. two
3. no
4. three
View Answer   Discuss with Members


View 11 - 17 of 17 Questions

* Be the First to Post a Comment.

Submit comment :


Captcha Image
Reload

Ask Question

Captcha Image
Reload

Note : Name and Email never shown.





Subscribe


Become a part of EducationForever. Subscribe to our FREE Newsletter