Exam
Adept.com
Home
About Us
Contact
🏠 Home
Constructors And Destructors
Constructors And Destructors
Exercise: Constructors And Destructors
📂 Constructors And Destructors
✅
Questions for: Constructors And Destructors
Destructors __________ for automatic objects if the program terminates with a call to function exit or function abort.
A:
are called
B:
are inherited
C:
are not called
D:
are created
Answer:
C
No answer description is available.
Let's discuss.
Discuss About this Question.
Post
A class's __________ is called when an object is destroyed.
A:
constructor
B:
destructor
C:
assignment function
D:
copy constructor
Answer:
B
No answer description is available.
Let's discuss.
Discuss About this Question.
Post
Which of the following never requires any arguments?
A:
Member function
B:
Friend function
C:
Default constructor
D:
const
function
Answer:
C
No answer description is available.
Let's discuss.
Discuss About this Question.
Post
Destructor calls are made in which order of the corresponding constructor calls?
A:
Reverse order
B:
Forward order
C:
Depends on how the object is constructed
D:
Depends on how many objects are constructed
Answer:
A
No answer description is available.
Let's discuss.
Discuss About this Question.
Post
A destructor takes __________ arguments.
A:
one
B:
two
C:
three
D:
no
Answer:
D
No answer description is available.
Let's discuss.
Discuss About this Question.
Post
Ad Slot (Above Pagination)
‹ Prev
1
2
3
4
5
6
7
8
9
10
11
Next ›
Install ExamAdept
Fast access — add this app to your device.
Install
✕
To install on iPhone/iPad: tap Share →
Add to Home Screen
.
Quiz
Discuss About this Question.