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


Zero-argument Constructor
Destructor
Copy Constructor
Copy Destructor


Answer

 Option

No answer description available for this question.

Workspace

Report
Mail id: Report Error:

Answer Workspace Report

2.  Which of the following statement is correct whenever an object goes out of scope ?


The default constructor of the object is called.
The parameterized destructor is called.
The default destructor of the object is called.
None of the above


Answer

 Option

No answer description available for this question.

Workspace

Report
Mail id: Report Error:

Answer Workspace Report

3.  If default constructor is not defined, then how the objects of the class will be created ?


The compiler will generate error
Error will occur at run-time.
Compiler provides its default constructor to build the object.
None of these


Answer

 Option

No answer description available for this question.

Workspace

Report
Mail id: Report Error:

Answer Workspace Report

4.  Destructor calls are made in which order of the corresponding constructor calls ?


Reverse order
Forward order
Depends on how the object is constructed
Depends on how many objects are constructed


Answer

 Option

No answer description available for this question.

Workspace

Report
Mail id: Report Error:

Answer Workspace Report

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


Preprocessor
Compiler
Linker
main() function


Answer

 Option

No answer description available for this question.

Workspace

Report
Mail id: Report Error:

Answer Workspace Report