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

Question: 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 

Answer: Option A

Explanation:

No answer description available for this question.

Cpp Programming Quiz 227 – __________ used to make a copy of one class object from another class object of the same class type.

Question: __________ 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 

Answer: Option B

Explanation:

No answer description available for this question.

Cpp Programming Quiz 229 – Which of the following statement is correct about the program given below?

Question: Which of the following statement is correct about the program given below?

[A].
The program will print the output 76.
[B].

The program will print the output 108.
[C].

The program will print the output garbage value.
[D].

The program will report compile time error. 

Answer: Option A

Explanation:

No answer description available for this question.

Cpp Programming Quiz 232 – When are the Global objects destroyed?

Question: When are the Global objects destroyed?
[A].
When the control comes out of the block in which they are being used.
[B].

When the program terminates.
[C].

When the control comes out of the function in which they are being used.
[D].

As soon as local objects die. 

Answer: Option B

Explanation:

No answer description available for this question.

Cpp Programming Quiz 233 – Which of the following statement is correct whenever an object goes out of scope?

Question: Which of the following statement is correct whenever an object goes out of scope?
[A].
The default constructor of the object is called.
[B].

The parameterized destructor is called.
[C].

The default destructor of the object is called.
[D].

None of the above. 

Answer: Option C

Explanation:

No answer description available for this question.

Cpp Programming Quiz 235 – Which of the following statement is incorrect?

Question: Which of the following statement is incorrect?
[A].
Constructor is a member function of the class.
[B].

The compiler always provides a zero argument constructor.
[C].

It is necessary that a constructor in a class should always be public.
[D].

Both B and C. 

Answer: Option D

Explanation:

No answer description available for this question.