

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 the object is passed by value to a copy constructor? |
A. | Only public members will be accessible to be copied |
B. | That will work normally |
C. | Compiler will give out of memory error |
D. | Data stored in data members won t be accessible |
Answer» D. Data stored in data members won t be accessible | |
2. |
If a programmer defines a class and defines a default value parameterized constructor inside it.
|
A. | It will not create the object (as parameterized constructor is used) |
B. | It will create the object (as the default arguments are passed) |
C. | It will not create the object (as the default constructor is not defined) |
D. | It will create the object (as at least some constructor is defined) |
Answer» C. It will not create the object (as the default constructor is not defined) | |