

MCQOPTIONS
Saved Bookmarks
This section includes 8 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. | Compilation Error |
B. | Runtime Error |
C. | Value Allocated in memory... |
D. | 2 U 5.125 |
E. | None of these |
Answer» D. 2 U 5.125 | |
2. |
What is the output of this program?
|
A. | 15000 5000 |
B. | 5000 15000 |
C. | 4000 15000 |
D. | 10000 20000 |
E. | 20000 10000 |
Answer» F. | |
3. |
What is the output of this program?
|
A. | years old. |
B. | 24 |
C. | Abhay is |
D. | Abhay is 24 years old. |
E. | None of these |
Answer» E. None of these | |
4. |
What is the output of this program?
|
A. | Data accessed |
B. | Compilation Error |
C. | Garbage value |
D. | Runtime Error |
E. | None of these |
Answer» B. Compilation Error | |
5. |
What is the output of this program?
|
A. | Compilation Error |
B. | Runtime Error |
C. | Garbage value |
D. | Identical results... |
E. | None of these |
Answer» E. None of these | |
6. |
What is the importance of mutable keyword? |
A. | It will not allow the data member to change within a const member function |
B. | It will copy the values of the variable |
C. | It allows the data member to change within a const member function |
D. | All of above |
E. | None of these |
Answer» D. All of above | |
7. |
What is the default access level to a block of data? |
A. | Protected |
B. | Private |
C. | Public |
D. | All of above |
E. | None of these |
Answer» C. Public | |
8. |
How many access specifiers are there in c++? |
A. | 4 |
B. | 3 |
C. | 2 |
D. | 1 |
E. | None of these |
Answer» C. 2 | |