Programming - C++ Language

You Are Here :: Home > C++ Language > constructor - General Questions

 
19.

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




20.

Which of the following statement is correct?                        


A. Destructor destroys only integer data members of the object. B. Destructor destroys only float data members of the object.
C. Destructor destroys only pointer data members of the object. D. Destructor destroys the complete object.




21.

Copy constructor must receive its arguments by __________ .                        


A. either pass-by-value or pass-by-reference B. only pass-by-value
C. only pass-by-reference D. only pass by address




22.

__________ used to make a copy of one class object from another class object of the same class type.                        


A. constructor B. copy constructor
C. destructor D. default constructor




23.

Constructors __________ to allow different approaches of object construction.                        


A. cannot overloaded B. can be overloaded
C. can be called D. can be nested




24.

Constructors __________ to allow different approaches of object construction.                        


A. cannot overloaded B. can be overloaded
C. can be called D. can be nested




« prev

1

2

3

4

5

6

7

8

9

next »

 
 



© 2013 freshersindia.in ® | Copyrights | Terms & Conditions
   Designed by Freshers India
Catch Us on