

MCQOPTIONS
Saved Bookmarks
This section includes 70 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. | 6 |
B. | 8 |
C. | 6 And 8 |
D. | 8 And 6 |
E. | None of these |
Answer» D. 8 And 6 | |
2. |
What is the output of this program?
|
A. | 201 U |
B. | U 201 |
C. | L 200 |
D. | 200 L |
E. | Compilation Error |
Answer» E. Compilation Error | |
3. |
What is the output of this program?
|
A. | 100 |
B. | 200 |
C. | 300 |
D. | Compilation Error |
E. | None of these |
Answer» D. Compilation Error | |
4. |
What is the output of this program?
|
A. | 36 |
B. | 25 |
C. | 16 |
D. | 9 |
E. | None of these |
Answer» C. 16 | |
5. |
What is the output of this program?
|
A. | 36 |
B. | 3 |
C. | 2 |
D. | Compilation Error |
E. | None of these |
Answer» B. 3 | |
6. |
What is the output of this program?
|
A. | 15 |
B. | 3 |
C. | 45 |
D. | Compilation Error |
E. | None of these |
Answer» D. Compilation Error | |
7. |
What is the output of this program?
|
A. | 250 |
B. | 295 |
C. | 150 |
D. | 395 |
E. | None of these |
Answer» E. None of these | |
8. |
What is the output of this program?
|
A. | 12 1.58 |
B. | 12 0.005 |
C. | Compilation Error |
D. | 12 1.25 |
E. | None of these |
Answer» E. None of these | |
9. |
What is the output of this program?
|
A. | 30 |
B. | 12 |
C. | 14 |
D. | Compilation Error |
E. | None of these |
Answer» D. Compilation Error | |
10. |
What is the output of this program?
|
A. | 15 |
B. | 15 15 |
C. | Compilation Error |
D. | Runtime Error |
E. | None of these |
Answer» C. Compilation Error | |
11. |
What is the output of this program?
|
A. | 12 |
B. | 12 41 |
C. | 12 41 -15 |
D. | 12 41 -15 -20 |
E. | 12 41 -15 -20 -10 |
Answer» F. | |
12. |
What is the output of this program?
|
A. | 11 11 10 2 1 |
B. | 11 10 2 1 |
C. | 10 2 1 |
D. | 2 1 |
E. | 1 |
Answer» B. 11 10 2 1 | |
13. |
What is the output of this program?
|
A. | Garbage value |
B. | Inteview Mania |
C. | Runtime Error |
D. | Compilation Error |
E. | None of these |
Answer» E. None of these | |
14. |
What is the output of this program?
|
A. | 4 8 12 |
B. | 12 8 4 |
C. | 8 12 4 |
D. | Compilation Error |
E. | None of these |
Answer» B. 12 8 4 | |
15. |
What is the output of this program?
|
A. | 15 25 |
B. | 25 15 |
C. | 6 8 |
D. | 8 6 |
E. | Compilation Error |
Answer» D. 8 6 | |
16. |
What is the output of this program?
|
A. | 11 |
B. | 4 |
C. | -22 |
D. | -33 |
E. | -44 |
Answer» C. -22 | |
17. |
What is the output of this program?
|
A. | 5 6 5 6 5 |
B. | 6 5 6 5 |
C. | 5 6 5 |
D. | 6 5 |
E. | 5 |
Answer» B. 6 5 6 5 | |
18. |
What is the output of this program?
|
A. | 30, 81, 131 |
B. | 81, 131, 30 |
C. | 131, 81, 30 |
D. | 81, 30, 131 |
E. | None of these |
Answer» B. 81, 131, 30 | |
19. |
What is the output of this program?
|
A. | 17 31 |
B. | 31 17 |
C. | 51 21 |
D. | 12 51 |
E. | Compilation Error |
Answer» E. Compilation Error | |
20. |
What will be the output of the following program?
#include
|
A. | 5 6 3 9 0 |
B. | 0 9 3 6 5 |
C. | 0 5 6 3 9 |
D. | 0 6 3 9 5 |
Answer» E. | |
21. |
Which of the following statement is correct about the program given below?
#include
|
A. | The program will print the output 0. |
B. | The program will print the output 120. |
C. | The program will report run-time error. |
D. | The program will report compile-time error. |
Answer» E. | |
22. |
Which of the following statement is correct about the program given below?
#include
|
A. | The program will print the output 12. |
B. | The program will print the output 16. |
C. | The program will print the output 32. |
D. | The program will print the output 36. |
Answer» D. The program will print the output 36. | |
23. |
What is correct about the following program?
#include
|
A. | The program will report compilation error. |
B. | The program will run successfully giving the output 66 65. |
C. | The program will run successfully giving the output 65 66. |
D. | The program will run successfully giving the output 66 65 65 131 196. |
Answer» D. The program will run successfully giving the output 66 65 65 131 196. | |
24. |
Which of the following statement is correct about the program given below?
#include
|
A. | The program will print the output 12 97.50 b. |
B. | The program will print the output 12 97.50 a. |
C. | The program will print the output 12 98 a. |
D. | The program will print the output 12 Garbage b. |
Answer» D. The program will print the output 12 Garbage b. | |
25. |
What will be the output of the following program?
#include
|
A. | 2 4 |
B. | 6 8 |
C. | The program will report error on Compilation. |
D. | The program will report error on Linking. |
Answer» C. The program will report error on Compilation. | |
26. |
What will be the output of the following program?
#include
|
A. | 7 20 |
B. | 7 19.8 |
C. | 7 Garbage |
D. | 7 20.8 |
Answer» E. | |
27. |
What is correct about the following program?
#include
|
A. | The program will print the output 20. |
B. | The program will report run time error. |
C. | The program will print the garbage value. |
D. | Compilation fails due to 'operator +' cannot have default arguments. |
Answer» E. | |
28. |
Which of the following statement is correct about the program given below?
#include
|
A. | The program will display the output 4 3 2 3 2 1 2 1 0. |
B. | The program will display the output 0 1 2 1 2 3 2 3 4. |
C. | The program will display the output 9 garbage values. |
D. | The program will report error on compilation. |
Answer» C. The program will display the output 9 garbage values. | |
29. |
What will be the output of the following program?
#include
|
A. | 65 65 65 |
B. | 65 66 67 |
C. | A A A |
D. | A B C |
Answer» B. 65 66 67 | |
30. |
What will be the output of the following program?
#include
|
A. | A A A |
B. | A B A |
C. | A B C |
D. | Garbage Garbage Garbage |
Answer» B. A B A | |
31. |
What will be the output of the following program?
#include
|
A. | 21 |
B. | 22 |
C. | 31 |
D. | 32 |
Answer» E. | |
32. |
What will be the output of the following program?
#include
|
A. | 0 9 3 6 5 |
B. | 9 3 6 5 0 |
C. | 5 6 3 9 0 |
D. | 5 9 3 6 0 |
Answer» B. 9 3 6 5 0 | |
33. |
What will be the output of the following program?
#include
|
A. | 30 10 20 |
B. | Garbage 10 20 |
C. | 40 50 20 |
D. | 20 40 50 |
Answer» D. 20 40 50 | |
34. |
What will be the output of the following program?
#include
|
A. | 3 2 |
B. | 8 3 |
C. | 11 6 |
D. | 11 10 |
Answer» D. 11 10 | |
35. |
Which of the following statement is correct about the program given below?
#include |
A. | Above program will display IndiaBIX 8. |
B. | Above program will display IndiaBIX 9. |
C. | Above program will display size of integer. |
D. | Above program will display IndiaBIX and size of integer. |
Answer» C. Above program will display size of integer. | |
36. |
What will be the output of the following program?
#include |
A. | 12 12 |
B. | 12 18 |
C. | 3 14 |
D. | 18 12 |
Answer» C. 3 14 | |
37. |
Which of the following statement is correct about the program given below?
#include
|
A. | The program will print the output x = 65. |
B. | The program will print the output x = 66. |
C. | The program will print the output x = 130. |
D. | The program will print the output x = 180. |
Answer» E. | |
38. |
Which of the following statement is correct about the program given below?
#include
|
A. | The program will print the output 5. |
B. | The program will print the output 8. |
C. | The program will print the output 40. |
D. | The program will report compile time error. |
Answer» E. | |
39. |
What will be the output of the following program?
#include
|
A. | 6 |
B. | 8 |
C. | 9 |
D. | 15 |
Answer» B. 8 | |
40. |
Which of the following statement is correct about the program given below?
#include
|
A. | The program will report error on compilation. |
B. | The program will display 9 garbage values. |
C. | The program will display NULL 9 times. |
D. | The program will display 0 1 2 1 2 3 2 3 4. |
Answer» C. The program will display NULL 9 times. | |
41. |
Which of the following statement is correct about the program given below?
#include
|
A. | The program will print the output 2. |
B. | The program will print the output 12. |
C. | The program will report run time error. |
D. | The program will not compile successfully. |
Answer» E. | |
42. |
What will be the output of the following program?
#include
|
A. | 0 |
B. | 314 |
C. | 314 |
D. | 200 |
Answer» B. 314 | |
43. |
What will be the output of the following program?
#include
|
A. | 130 |
B. | A0 |
C. | B0 |
D. | 90 |
Answer» C. B0 | |
44. |
Which of the following statement is correct about the program given below?
#include |
A. | The program will print the output 32 0. |
B. | The program will print the output 32 garbage-value. |
C. | The program will print the output 32 1. |
D. | The program will report compile time error. |
Answer» E. | |
45. |
What will be the output of the following program?
#include
|
A. | 123 |
B. | 321 |
C. | 345 |
D. | 12345 |
Answer» D. 12345 | |
46. |
What will be the output of the following program?
#include
|
A. | 300 |
B. | 200 |
C. | Garbage value |
D. | 400 |
Answer» E. | |
47. |
What will be the output of the following program?
#include
|
A. | 10 10 |
B. | 12 10 |
C. | 12 21 |
D. | 12 31 |
Answer» B. 12 10 | |
48. |
Which of the following statement is correct about the program given below?
#include
|
A. | The program will print the output 19 31. |
B. | The program will print the output 20 30. |
C. | The program will print the output 21 31. |
D. | The program will print the output 21 29. |
Answer» D. The program will print the output 21 29. | |
49. |
Which of the following statement is correct about the program given below?
#include
|
A. | The program will print the output 0. |
B. | The program will print the output 1. |
C. | The program will print the output 2. |
D. | The program will print the output garbage value. |
Answer» E. | |
50. |
Which of the following statement is correct about the program given below?
#include
|
A. | The program will print the output 2 4. |
B. | The program will print the output 20 40. |
C. | The program will print the output 10 20. |
D. | The program will print the output 20 4.50. |
Answer» B. The program will print the output 20 40. | |