

MCQOPTIONS
Saved Bookmarks
This section includes 9 Mcqs, each offering curated multiple-choice questions to sharpen your Technical MCQs knowledge and support exam preparation. Choose a topic below to get started.
1. |
C++ Inheritance relationship is? |
A. | Association |
B. | Is-A |
C. | Has-A |
D. | None of the above |
E. | |
Answer» C. Has-A | |
2. |
|
A. | Multipath |
B. | Multiple |
C. | Multilevel |
D. | Hierarchical |
Answer» B. Multiple | |
3. |
|
A. | Base::lfc(int i) called |
B. | Derived::lfc() called |
C. | Base::lfc() called |
D. | Compiler Error |
Answer» E. | |
4. |
|
A. | error: invalid conversion from "Derived*" to "Base*" |
B. | No Compiler Error |
C. | error: invalid conversion from "Base*" to "Derived*" |
D. | Runtime Error |
Answer» D. Runtime Error | |
5. |
|
A. | 30 |
B. | 60 |
C. | 0 |
D. | 120 |
Answer» E. | |
6. |
|
A. | Base1 Base2 Derived |
B. | Derived Base2 Base1 |
C. | Derived |
D. | Compiler Dependent |
Answer» C. Derived | |
7. |
|
A. | Compiler Dependent |
B. | Base1 Base2 Derived |
C. | Base2 Base1 Derived |
D. | Compiler Error |
Answer» C. Base2 Base1 Derived | |
8. |
|
A. | Inherited |
B. | Error |
C. | Runtime error |
D. | None of the mentioned |
Answer» B. Error | |
9. |
|
A. | long* string |
B. | a long st*ring |
C. | Depends on compiler |
D. | None of the mentione |
Answer» D. None of the mentione | |