

MCQOPTIONS
Saved Bookmarks
This section includes 2 Mcqs, each offering curated multiple-choice questions to sharpen your Object Oriented Programming Using C++ knowledge and support exam preparation. Choose a topic below to get started.
1. |
If programmer doesn t define any copy constructor then _____________ |
A. | Compiler provides an implicit copy constructor |
B. | Compiler gives an error |
C. | The objects can t be assigned with another objects |
D. | The program gives run time error if copying is used |
Answer» B. Compiler gives an error | |
2. |
The copy constructor can be used to ____________ |
A. | Initialize one object from another object of same type |
B. | Initialize one object from another object of different type |
C. | Initialize more than one object from another object of same type at a time |
D. | Initialize all the objects of a class to another object of another class |
Answer» B. Initialize one object from another object of different type | |