Programming - C++ Language

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

 
31.

Which of the following is not a type of constructor?                        


A. Friend Constructor B. Copy Constructor
C. Default Constructor D. Parameterized Constructor




32.

Which of the following are NOT provided by the compiler by default?                        


A. Zero-argument Constructor B. Destructor
C. Copy Constructor D. Copy Destructor




33.

It is a __________ error to pass arguments to a destructor.                        


A. logical B. virtual
C. syntax D. linker




34.

If the programmer does not explicitly provide a destructor, then which of the following creates an empty destructor?                        


A. Preprocessor B. Compiler
C. Linker D. main() function




35.

A __________ is a constructor that either has no parameters, or if it has parameters, all the parameters have default values.                        


A. default constructor B. copy constructor
C. Both A and B D. None of these




36.

How many default constructors per class are possible?                        


A. Only one B. Two
C. Three D. Unlimited




« prev

1

2

3

4

5

6

7

8

9

next »

 
 



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