C++ Programming - Constructors and Destructors

Exercise : Constructors and Destructors - General Questions
21.
It is a __________ error to pass arguments to a destructor.
logical
virtual
syntax
linker
Answer: Option
Explanation:
No answer description is available. Let's discuss.

22.
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
Explanation:
No answer description is available. Let's discuss.

23.
A __________ is a constructor that either has no parameters, or if it has parameters, all the parameters have default values.
default constructor
copy constructor
Both A and B
None of these
Answer: Option
Explanation:
No answer description is available. Let's discuss.

24.
How many default constructors per class are possible?
Only one
Two
Three
Unlimited
Answer: Option
Explanation:
No answer description is available. Let's discuss.

25.
Which of the following statement is correct about destructors?
A destructor has void return type.
A destructor has integer return type.
A destructor has no return type.
A destructors return type is always same as that of main().
Answer: Option
Explanation:
No answer description is available. Let's discuss.