C++ Programming - Constructors and Destructors

Exercise : Constructors and Destructors - General Questions
26.
Which of the following statement is correct?
A constructor has the same name as the class in which it is present.
A constructor has a different name than the class in which it is present.
A constructor always returns an integer.
A constructor cannot be overloaded.
Answer: Option
Explanation:
No answer description is available. Let's discuss.

27.
Which of the following implicitly creates a default constructor when the programmer does not explicitly define at least one constructor for a class?
Preprocessor
Linker
Loader
Compiler
Answer: Option
Explanation:
No answer description is available. Let's discuss.

28.
A destructor takes __________ arguments.
one
two
three
no
Answer: Option
Explanation:
No answer description is available. Let's discuss.

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

30.
Which of the following never requires any arguments?
Member function
Friend function
Default constructor
const function
Answer: Option
Explanation:
No answer description is available. Let's discuss.