Programming - C++ Language

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

 
1.

If you design a class that needs special initialization tasks, you will want to design a(n) _____                        


A. housekeeping routine B. initializer
C. constructor D. compiler




2.

When you pass a variable _____, C++ passes only the contents of the variable to the receiving function                        


A. by reference B. by value
C. globally D. locally




3.

Sending a copy of data to a program module is called _______                        


A. passing a value B. making a reference
C. recursion D. setting a condition




4.

A __________ is a special method used to initialize the instance variable of a class.                        


A. Member function B. Destructor
C. Constructor D. Structure




5.

The constructor without parameter is called?                        


A. Method Constructor B. Default Constructor
C. Operator Constructor D. Function Constructor




6.

A Class can have how many destructor?                        


A. 1 B. 2
C. 3 D. 4




1

2

3

4

5

6

7

8

9

next »

 
 



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