

MCQOPTIONS
Saved Bookmarks
This section includes 160 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. | Sumi |
B. | imus |
C. | suim |
D. | returns all the combination of Sumi |
E. | None of these |
Answer» E. None of these | |
2. |
What is the output of this program?
|
A. | 2 6 6 |
B. | 6 2 6 |
C. | 6 6 2 |
D. | All of above |
E. | None of these |
Answer» E. None of these | |
3. |
What is the output of this program?
|
A. | Compilation Error |
B. | 4 8 8 4 |
C. | 4 8 8 |
D. | 4 8 |
E. | 4 |
Answer» C. 4 8 8 | |
4. |
What is the output of this program?
|
A. | Compilation Error |
B. | 23 |
C. | 23 25 |
D. | 23 25 32 |
E. | 23 25 32 43 |
Answer» F. | |
5. |
What is the output of this program?
|
A. | 50 60 70 80 90 |
B. | 50 60 70 80 |
C. | 50 60 70 |
D. | 50 60 |
E. | 50 |
Answer» B. 50 60 70 80 | |
6. |
What is the output of this program?
|
A. | 101 112 125 |
B. | 101 112 |
C. | 101 |
D. | Compilation Error |
E. | None of these |
Answer» B. 101 112 | |
7. |
What is the output of this program?
|
A. | 10 |
B. | 30 |
C. | Compilation Error |
D. | All of above |
E. | None of these |
Answer» C. Compilation Error | |
8. |
What is the output of this program?
|
A. | 0 1 2 0 12 |
B. | Compilation Error |
C. | 0 1 2 0 12 24 36 3 |
D. | 24 36 3 |
E. | None of these |
Answer» D. 24 36 3 | |
9. |
What is the output of this program?
|
A. | Compilation Error |
B. | 8 |
C. | Runtime Error |
D. | 48 |
E. | None of these |
Answer» E. None of these | |
10. |
What is the output of this program?
|
A. | Compilation Error |
B. | Runtime Error |
C. | 4 5 7 8 |
D. | 4 5 7 |
E. | None of these |
Answer» D. 4 5 7 | |
11. |
What is the output of this program?
|
A. | 18 |
B. | 18 20 |
C. | 18 20 25 |
D. | 18 20 25 30 |
E. | 18 20 25 30 35 |
Answer» F. | |
12. |
What is the output of this program?
|
A. | 100 |
B. | 6 |
C. | 5 |
D. | Compilation Error |
E. | None of these |
Answer» D. Compilation Error | |
13. |
What is the output of this program?
|
A. | 10, |
B. | 10, 20, |
C. | 10, 20, 30, |
D. | 10, 20, 30, 40, |
E. | 10, 20, 30, 40, 50, |
Answer» F. | |
14. |
What is the output of this program?
|
A. | Compilation Error |
B. | Runtime Error |
C. | Garbage Value |
D. | It will print the multiplied value of the input |
E. | Exception |
Answer» E. Exception | |
15. |
What is the output of this program?
|
A. | 205 |
B. | 155 |
C. | 105 |
D. | 55 |
E. | Compilation Error |
Answer» E. Compilation Error | |
16. |
What is the output of this program?
|
A. | Compilation Error |
B. | 56 |
C. | 200 |
D. | 100 |
E. | None of these |
Answer» C. 200 | |
17. |
What is the output of this program?
|
A. | 15 100 |
B. | 15 100 115 200 |
C. | 15 100 115 200 250 300 400 500 |
D. | 250 300 400 500 |
E. | 250 300 |
Answer» D. 250 300 400 500 | |
18. |
What is the output of this program?
|
A. | 100 |
B. | 200 |
C. | 300 |
D. | 50 |
E. | 150 |
Answer» C. 300 | |
19. |
What is the output of this program?
|
A. | 9 |
B. | Compilation Error |
C. | 9, 9 |
D. | Runtime Error |
E. | None of these |
Answer» D. Runtime Error | |
20. |
What is the output of this program?
|
A. | false |
B. | True |
C. | Compilation Error |
D. | Runtime Error |
E. | None of these |
Answer» C. Compilation Error | |
21. |
What is the output of this program?
|
A. | 10 |
B. | 10 11 |
C. | 10 11 13 |
D. | 10 11 13 15 |
E. | 10 11 13 15 25 |
Answer» F. | |
22. |
What is the output of this program?
|
A. | 11 |
B. | 3 |
C. | 5 |
D. | 7 |
E. | 9 |
Answer» B. 3 | |
23. |
What is the output of this program?
|
A. | 6, 7, 8, 9 ,10 |
B. | 6, 7, 8, 9 |
C. | 100 |
D. | 6, 7, 8 |
E. | 6, 7 |
Answer» D. 6, 7, 8 | |
24. |
What is the output of this program?
|
A. | 1 12 13 25 50 |
B. | 1 12 13 25 |
C. | 1 12 13 |
D. | 1 12 |
E. | 1 |
Answer» B. 1 12 13 25 | |
25. |
What is the output of this program?
|
A. | 1 |
B. | 11 |
C. | 111 |
D. | 1111 |
E. | 11111 |
Answer» F. | |
26. |
What is the output of this program?
|
A. | 0 1 2 3 4 5 |
B. | 0 1 2 3 4 |
C. | 0 1 2 3 |
D. | 0 1 2 |
E. | 0 1 |
Answer» B. 0 1 2 3 4 | |
27. |
What is the output of this program?
|
A. | 15 |
B. | 15 25 |
C. | 15 25 35 |
D. | 15 25 35 45 |
E. | 15 25 35 45 55 |
Answer» F. | |
28. |
What is the output of this program?
|
A. | Only |
B. | Spaces |
C. | InText |
D. | Only Spaces In Text |
E. | OnlySpacesInText |
Answer» F. | |
29. |
What is the output of this program?
|
A. | 4 3 2 1 0 |
B. | 4 3 2 1 |
C. | 4 3 2 |
D. | 4 3 |
E. | 4 |
Answer» B. 4 3 2 1 | |
30. |
What is the output of this program?
|
A. | 5 |
B. | 5 4 |
C. | 5 4 4 5 0 |
D. | 5 4 4 5 |
E. | 5 4 4 |
Answer» D. 5 4 4 5 | |
31. |
What is the output of this program?
|
A. | 5 |
B. | 6 |
C. | 7 |
D. | 8 |
E. | 9 |
Answer» F. | |
32. |
What is the output of this program?
|
A. | 22 |
B. | 20 22 |
C. | 18 20 22 |
D. | 12 16 18 20 22 |
E. | 0 4 12 16 18 20 22 |
Answer» F. | |
33. |
What is the output of this program?
|
A. | 55 |
B. | 45 |
C. | 100 |
D. | Compilation Error |
E. | None of these |
Answer» D. Compilation Error | |
34. |
What is the output of this program?
|
A. | 0 1 2 3 4 |
B. | 0 1 2 3 |
C. | 0 1 2 |
D. | 0 1 |
Answer» B. 0 1 2 3 | |
35. |
What is the output of this program?
|
A. | 35 |
B. | 56 |
C. | 44 |
D. | 135 |
E. | None of these |
Answer» E. None of these | |
36. |
What is the output of this program?
|
A. | 202 |
B. | 303 |
C. | 404 |
D. | Segmentation fault |
E. | None of these |
Answer» E. None of these | |
37. |
What is the output of this program?
|
A. | 1 |
B. | 1 2 |
C. | 1 2 3 |
D. | 1 2 3 4 |
E. | 1 2 3 4 5 |
Answer» F. | |
38. |
What is the output of this program?
|
A. | 110 |
B. | 85 |
C. | 101 |
D. | 45 |
E. | None of these |
Answer» E. None of these | |
39. |
What is the output of this program?
|
A. | 1 25 |
B. | 1 25 49 |
C. | 1 25 49 73 |
D. | 1 25 49 73 97 |
E. | Compilation Error |
Answer» E. Compilation Error | |
40. |
What is the output of this program?
|
A. | 110 220 230 |
B. | 110 85 85 550 85 |
C. | 110 85 85 |
D. | 85 550 85 |
E. | Compilation Error |
Answer» C. 110 85 85 | |
41. |
What is the output of this program?
|
A. | 6 6 |
B. | 6 6 6 |
C. | 6 6 6 0 0 0 |
D. | 0 0 0 |
E. | 0 0 |
Answer» D. 0 0 0 | |
42. |
What is the output of this program?
|
A. | 12 |
B. | 25 |
C. | 39 |
D. | 42 |
E. | Compilation Error |
Answer» D. 42 | |
43. |
What is the output of this program?
|
A. | 35 35 |
B. | 15 35 |
C. | 15 15 |
D. | 15 35 35 15 15 |
E. | Compilation Error |
Answer» E. Compilation Error | |
44. |
What is the output of this program?
|
A. | Hello |
B. | Interview |
C. | Mania |
D. | Hello Interview Mania |
E. | Compilation Error |
Answer» E. Compilation Error | |
45. |
What is the output of this program?
|
A. | 1 |
B. | 1 13 |
C. | 1 13 10 |
D. | 1 13 10 4 |
E. | 1 13 10 4 7 |
Answer» F. | |
46. |
What is the output of this program?
|
A. | 150 |
B. | 250 |
C. | 300 |
D. | 450 |
E. | 4 |
Answer» F. | |
47. |
What is the output of this program?
|
A. | 1 1 |
B. | 2 2 |
C. | 3 3 |
D. | 4 4 |
E. | 5 5 |
Answer» E. 5 5 | |
48. |
What is the output of this program?
|
A. | 101 202 303 202 101 |
B. | 101 202 303 |
C. | 101 202 303 202 |
D. | 101 202 |
E. | 101 |
Answer» B. 101 202 303 | |
49. |
What is the output of this program?
|
A. | 101 |
B. | 101 301 |
C. | 101 301 301 |
D. | 101 301 301 101 |
E. | 101 301 301 101 101 |
Answer» F. | |
50. |
What is the output of this program?
|
A. | 105 |
B. | 250 |
C. | 120 |
D. | 102 |
E. | 220 |
Answer» B. 250 | |