

MCQOPTIONS
Saved Bookmarks
This section includes 6 Mcqs, each offering curated multiple-choice questions to sharpen your C++ Programming knowledge and support exam preparation. Choose a topic below to get started.
1. |
What is the output of this program?
|
A. | Derived class Two |
B. | Derived class One |
C. | Compilation Error |
D. | Runtime Error |
E. | None of these |
Answer» D. Runtime Error | |
2. |
What is the output of this program?
|
A. | Compilation Error |
B. | Runtime Error |
C. | Above structures are Inherited... |
D. | Garbage value |
E. | None of these |
Answer» D. Garbage value | |
3. |
What is the output of this program?
|
A. | 25 15 |
B. | 40 15 |
C. | 75 25 |
D. | 25 75 |
E. | None of these |
Answer» D. 25 75 | |
4. |
What is meant by multiple inheritance? |
A. | Deriving a derived class from base class |
B. | Deriving a derived class from more than one base class |
C. | Deriving a base class from derived class |
D. | All of above |
E. | None of these |
Answer» C. Deriving a base class from derived class | |
5. |
What are the things are inherited from the base class? |
A. | Friends |
B. | Constructor and its destructor |
C. | Operator=() members |
D. | All of above |
E. | None of these |
Answer» E. None of these | |
6. |
Which design patterns benefit from the multiple inheritances? |
A. | Code pattern |
B. | Glue pattern |
C. | Adapter and observer pattern |
D. | All of above |
E. | None of these |
Answer» D. All of above | |