

MCQOPTIONS
Saved Bookmarks
This section includes 4 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. |
In hierarchical inheritance, all the classes involve some kind of inheritance. |
A. | True |
B. | False |
Answer» C. | |
2. |
If class A has two nested classes B and C. Class D has one nested class E, and have inherited class A. If E inherits B and C, then ________________ |
A. | It shows multiple inheritance |
B. | It shows hierarchical inheritance |
C. | It shows multiple inheritance |
D. | Multiple inheritance among nested classes, and single level for enclosing classes |
Answer» E. | |
3. |
Which type of inheritance results in the diamond problem? |
A. | Single level |
B. | Hybrid |
C. | Hierarchical |
D. | Multilevel |
Answer» C. Hierarchical | |
4. |
How many types of inheritance can be used at a time in a single program? |
A. | Any two types |
B. | Any three types |
C. | Any 4 types |
D. | Any type, any number of times |
Answer» E. | |