Curioustab
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Constructors and Destructors Questions
A destructor takes __________ arguments.
For automatic objects, constructors and destructors are called each time the objects
Which of the following statement is correct?
Which of the following statement is correct?
Which of the following statement is correct?
Can a class have virtual destructor?
Which of the following statements are correct?
Which of the following statement is correct about destructors?
It is a __________ error to pass arguments to a destructor.
Which of the following statement is correct?
Destructors __________ for automatic objects if the program terminates with a call to function exit or function abort.
A class's __________ is called when an object is destroyed.
Destructor calls are made in which order of the corresponding constructor calls?
A constructor that accepts __________ parameters is called the default constructor.
Which of the following statement is incorrect?
What happens when a class with parameterized constructors and having no default constructor is used in a program and we create an object that needs a zero-argument constructor?
A function with the same name as the class, but preceded with a tilde character (~) is called __________ of that class.
A union that has no constructor can be initialized with another union of __________ type.
If the copy constructor receives its arguments by value, the copy constructor would
Copy constructor must receive its arguments by __________ .
1
2
3