

MCQOPTIONS
Saved Bookmarks
This section includes 202 Mcqs, each offering curated multiple-choice questions to sharpen your C Programming knowledge and support exam preparation. Choose a topic below to get started.
51. |
What will be the output of the following C code?
|
A. | Garbage value |
B. | Compilation Error |
C. | Manjesh Ojha |
D. | Runtime Error |
E. | None of these |
Answer» D. Runtime Error | |
52. |
What will be the output of the following C code?
|
A. | Welcome To Interview Mania |
B. | (null) (null) (null) |
C. | Welcome To Interview Mania (null) (null) (null) |
D. | Compilation Error |
E. | None of these |
Answer» D. Compilation Error | |
53. |
What will be the output of the following C code?
|
A. | Hey |
B. | How |
C. | 8 |
D. | Hope |
E. | None of these |
Answer» D. Hope | |
54. |
What will be the output of the following C code?
|
A. | 80 |
B. | Interview |
C. | Mania |
D. | World |
E. | None of these |
Answer» B. Interview | |
55. |
What will be the output of the following C code?
|
A. | Interview |
B. | Mania |
C. | World |
D. | Garbage value |
E. | Segmentation fault |
Answer» F. | |
56. |
What will be the output of the following C code?
|
A. | Compilation Error |
B. | 25 |
C. | 20 |
D. | Garbage value |
E. | None of these |
Answer» E. None of these | |
57. |
What will be the output of the following C code?
|
A. | 22 |
B. | Compilation Error |
C. | Undefined behaviour |
D. | 20 |
E. | Garbage value |
Answer» E. Garbage value | |
58. |
What will be the output of the following C code?
|
A. | Compilation Error |
B. | Garbage value |
C. | Segmentation fault |
D. | Undefined behaviour |
E. | 10 |
Answer» F. | |
59. |
What will be the output of the following C code?
|
A. | Welcome to Interview Mania |
B. | Garbage value |
C. | Compilation Error |
D. | Segmentation fault |
E. | None of these |
Answer» E. None of these | |
60. |
What will be the output of the following C code?
|
A. | India |
B. | Hindusatan |
C. | Bharat |
D. | Same memory address |
E. | Different memory address |
Answer» E. Different memory address | |
61. |
What will be the output of the following C code?
|
A. | Interveiw |
B. | Mania |
C. | World |
D. | All of above |
E. | None of these |
Answer» D. All of above | |
62. |
What will be the output of the following C code (considering sizeof char is 1 and pointer is 4)?
|
A. | 1 |
B. | 2 |
C. | 3 |
D. | 4 |
E. | Depends on compiler |
Answer» F. | |
63. |
Which of the following statements are true?
|
A. | I are dynamic, II are dynamic |
B. | I are static, II are static |
C. | I are static, II are dynamic |
D. | I are dynamic, II are static |
E. | None of these |
Answer» E. None of these | |
64. |
What will be the output of the following C code?
|
A. | Garbage value |
B. | Compilation Error |
C. | Runtime Error |
D. | WELCOME |
E. | None of these |
Answer» E. None of these | |
65. |
What will be the output of the following C code?
|
A. | Garbage value |
B. | Compilation Error |
C. | Interview Mania |
D. | Nothing |
E. | None of these |
Answer» D. Nothing | |
66. |
What will be the output of the following C code?
|
A. | 16 |
B. | 12 |
C. | Garbage value |
D. | Compilation Error |
E. | Runtime Error |
Answer» B. 12 | |
67. |
Which function is not called in the following C program?
|
A. | Function "f" |
B. | Function "fun" |
C. | Function "function" |
D. | All of above |
E. | None of these |
Answer» F. | |
68. |
Comment on the following two operations.
|
A. | Neither of them work |
B. | I works, II doesn t |
C. | II works, I doesn t |
D. | Both of them work |
E. | None of these |
Answer» E. None of these | |
69. |
What will be the output of the following C code?
|
A. | 15 |
B. | Compilation Error |
C. | Undefined behaviour |
D. | 16 |
E. | None of these |
Answer» E. None of these | |
70. |
Comment on the following two operations.
|
A. | 1 won t work, 2 will work |
B. | Neither of them will work |
C. | 1 and 2, both will work |
D. | 1 will work, 2 will not |
E. | None of these |
Answer» B. Neither of them will work | |
71. |
What will be the output of the following C code?
|
A. | The multiplication of three numbers is : 120 |
B. | Nothing |
C. | Compilation Error |
D. | Garbage value |
E. | None of these |
Answer» D. Garbage value | |
72. |
What will be the output of the following C code?
|
A. | Compilation Error |
B. | Nothing |
C. | The multiplication of given numbers is : 120 |
D. | Garbage value |
E. | None of these |
Answer» D. Garbage value | |
73. |
What will be the output of the following C code?
|
A. | Illegal application of ++ to void data type & pointer function initialized like a variable |
B. | Illegal application of ++ to void data type |
C. | pointer function initialized like a variable |
D. | All of above |
E. | None of these |
Answer» B. Illegal application of ++ to void data type | |
74. |
What will be the output of the following C code?
|
A. | Undefined behaviour |
B. | Compilation Error |
C. | Garbage value |
D. | 16 |
E. | None of these |
Answer» E. None of these | |
75. |
What will be the output of the following C code?
|
A. | Nothing |
B. | The Subtraction of three numbers is : -33 |
C. | Undefined behaviour |
D. | Garbage value |
E. | Compilation Error |
Answer» C. Undefined behaviour | |
76. |
What will be the output of the following C code?
|
A. | Garbage value |
B. | Compilation Error |
C. | Nothing |
D. | Null |
E. | 101 |
Answer» C. Nothing | |
77. |
What will be the output of the following C code?
|
A. | Compilation Error |
B. | Segmentation fault |
C. | Garbage value |
D. | 121 |
E. | None of these |
Answer» E. None of these | |
78. |
What will be the output of the following C code?
|
A. | Compilation Error |
B. | Nothing |
C. | Garbage value |
D. | Segmentation fault |
E. | None of these |
Answer» E. None of these | |
79. |
What will be the output of the following C code?
|
A. | 12 |
B. | Undefined behaviour |
C. | 12.000000 |
D. | Compilation Error |
E. | None of these |
Answer» C. 12.000000 | |
80. |
What will be the output of the following C code?
|
A. | Compilation Error |
B. | Garbage value |
C. | 20 |
D. | Runtime Error |
E. | None of these |
Answer» B. Garbage value | |
81. |
What will be the output of the following C code?
|
A. | Compilation Error |
B. | Nothing |
C. | 36 |
D. | Garbage value |
E. | None of these |
Answer» C. 36 | |
82. |
What will be the output of the following C code?
|
A. | 000004 |
B. | Compilation Error |
C. | Garbage value |
D. | Nothing |
E. | None of these |
Answer» E. None of these | |
83. |
What will be the output of the following C code?
|
A. | Yellow |
B. | Garbage value |
C. | Compilation Error |
D. | Nothing |
E. | None of these |
Answer» D. Nothing | |
84. |
What will be the output of the following C code?
|
A. | Interview Mania |
B. | Garbage value |
C. | Compilation Error |
D. | 102 |
E. | None of these |
Answer» D. 102 | |
85. |
What will be the output of the following C code?
|
A. | 101 |
B. | Compilation Error |
C. | Garbage value |
D. | Ajit Kumar Gupta |
E. | None of these |
Answer» E. None of these | |
86. |
What will be the output of the following C code?
|
A. | Nothing |
B. | Compilation Error |
C. | Garbage value |
D. | Undefined behaviour |
E. | None of these |
Answer» B. Compilation Error | |
87. |
What will be the output of the following C code?
|
A. | Compilation Error |
B. | Garbage value |
C. | Nothing |
D. | Undefined behaviour |
E. | None of these |
Answer» B. Garbage value | |
88. |
What does this declaration say?
|
A. | B is function which returns array of integers |
B. | B is function which returns function pointer which in turn returns pointer to integer array |
C. | B is pointer to the function which returns array of pointers |
D. | B is pointer to the function which returns pointer to integer array |
E. | None of these |
Answer» E. None of these | |
89. |
What will be the output of the following C code?
|
A. | 11 21.000000 |
B. | Compilation Error |
C. | Undefined behaviour |
D. | Garbage value |
E. | None of these |
Answer» B. Compilation Error | |
90. |
What will be the output of the following C code?
|
A. | After ptr |
B. | Garbage vlaue |
C. | Undefined behaviour |
D. | Compilation Error |
E. | None of these |
Answer» E. None of these | |
91. |
What will be the output of the following C code?
|
A. | S A |
B. | A S |
C. | KRISHANA |
D. | Compilation Error |
E. | None of these |
Answer» B. A S | |
92. |
Comment on the following declaration.
|
A. | Both i) and ii) will work legal and flawlessly |
B. | i) is illegal, ii) is legal |
C. | i) is legal, ii) is illegal |
D. | Both i) and ii) and cannot exist due to same name |
E. | None of these |
Answer» B. i) is illegal, ii) is legal | |
93. |
What makes the following declaration denote?
|
A. | s is a function pointer of 15 elements returning char |
B. | s is an array of 15 element pointer to type char |
C. | s is a pointer to an array of 15 elements |
D. | All of above |
E. | None of these |
Answer» C. s is a pointer to an array of 15 elements | |
94. |
What makes the following declaration denote?
|
A. | p is a pointer to an int pointer |
B. | p is a pointer to pointer to type int |
C. | p is a function pointer that returns pointer to int type |
D. | All of above |
E. | None of these |
Answer» B. p is a pointer to pointer to type int | |
95. |
Read the following expression?
|
A. | p is pointer to function passing void returning int |
B. | p is pointer to void that converts its type to int |
C. | p is pointer to function passing int returning void |
D. | p is pointer to int that converts its type to void |
E. | None of these |
Answer» D. p is pointer to int that converts its type to void | |
96. |
What will be the output of the following C code?
|
A. | Nothing |
B. | Compilation Error |
C. | Garbage value |
D. | The product of three numbers is : 240 |
E. | None of these |
Answer» C. Garbage value | |
97. |
What will be the output of the following C code?
|
A. | Compilation Error |
B. | Kumar |
C. | Ajit |
D. | Garbage value |
E. | None of these |
Answer» D. Garbage value | |
98. |
What will be the output of the following C code?
|
A. | Mania |
B. | Interview |
C. | Garbage value |
D. | Compilation Error |
E. | None of these |
Answer» B. Interview | |
99. |
What will be the output of the following C code?
|
A. | Interview |
B. | Mania |
C. | 192 |
D. | Garbage value |
E. | None of these |
Answer» D. Garbage value | |
100. |
What will be the output of the following C code?
|
A. | I |
B. | Garbage value |
C. | Runtime Error |
D. | No output |
E. | None of these |
Answer» B. Garbage value | |