

MCQOPTIONS
Saved Bookmarks
This section includes 53 Mcqs, each offering curated multiple-choice questions to sharpen your C++ Programming knowledge and support exam preparation. Choose a topic below to get started.
51. |
Destructor has the same name as the constructor and it is preceded by ______ . |
A. | ! |
B. | ? |
C. | ~ |
D. | $ |
Answer» D. $ | |
52. |
For automatic objects, constructors and destructors are called each time the objects |
A. | enter and leave scope |
B. | inherit parent class |
C. | are constructed |
D. | are destroyed |
Answer» B. inherit parent class | |
53. |
A constructor that accepts __________ parameters is called the default constructor. |
A. | one |
B. | two |
C. | no |
D. | three |
Answer» D. three | |