

MCQOPTIONS
This section includes 564 Mcqs, each offering curated multiple-choice questions to sharpen your Engineering knowledge and support exam preparation. Choose a topic below to get started.
201. |
What will be the output of the program (Turbo C in 16 bit platform DOS) ?
|
A. | IndiaBIX India |
B. | IndiaBIX IndiaBIX |
C. | India India |
D. | Error |
Answer» C. India India | |
202. |
What will be the output of the program ?
|
A. | 5 |
B. | 4 |
C. | 6 |
D. | 7 |
Answer» C. 6 | |
203. |
What will be the output of the program ?
|
A. | Error |
B. | IndiaBIX |
C. | BIX |
D. | None of above |
Answer» D. None of above | |
204. |
What will be the output of the program ?
|
A. | 0, 1, 2 |
B. | 1, 2, 3 |
C. | 0, 2, 1 |
D. | 1, 3, 2 |
Answer» D. 1, 3, 2 | |
205. |
Point out the error in the program?
|
A. | Error: in structure declaration |
B. | Linker Error |
C. | No Error |
D. | None of above |
Answer» B. Linker Error | |
206. |
Maximum number of arguments that a function can take is 12 |
A. | Yes |
B. | No |
Answer» C. | |
207. |
Which of the following sentences are correct about a switch loop in a C program?
|
||||||||
A. | 1,2 | ||||||||
B. | 1,3,4 | ||||||||
C. | 2,4 | ||||||||
D. | 2 | ||||||||
Answer» C. 2,4 | |||||||||
208. |
Functions cannot return a floating point number |
A. | Yes |
B. | No |
Answer» C. | |
209. |
Every function must return a value |
A. | Yes |
B. | No |
Answer» C. | |
210. |
Will the following functions work?
|
A. | Yes |
B. | No |
Answer» B. No | |
211. |
A function cannot be defined inside another function |
A. | True |
B. | False |
Answer» B. False | |
212. |
Functions cannot return more than one value at a time |
A. | True |
B. | False |
Answer» B. False | |
213. |
If return type for a function is not specified, it defaults to int |
A. | True |
B. | False |
Answer» B. False | |
214. |
In C all functions except main() can be called recursively. |
A. | True |
B. | False |
Answer» C. | |
215. |
Functions can be called either by value or reference |
A. | True |
B. | False |
Answer» B. False | |
216. |
Point out the error in the program
|
A. | Error: Not allowed assignment |
B. | Error: Doesn't print anything |
C. | No error |
D. | None of above |
Answer» B. Error: Doesn't print anything | |
217. |
Are the expressions arr and &arr same for an array of 10 integers? |
A. | Yes |
B. | No |
Answer» C. | |
218. |
Which of the following statements mentioning the name of the array begins DOES NOT yield the base address?
|
||||||||
A. | A | ||||||||
B. | A, B | ||||||||
C. | B | ||||||||
D. | B, D | ||||||||
Answer» C. B | |||||||||
219. |
Point out the error in the program
|
A. | Error: Prototype declaration |
B. | No error |
C. | Error: return statement cannot be used with conditional operators |
D. | None of above |
Answer» D. None of above | |
220. |
Does this mentioning array name gives the base address in all the contexts? |
A. | Yes |
B. | No |
Answer» C. | |
221. |
A pointer to a block of memory is effectively same as an array |
A. | True |
B. | False |
Answer» B. False | |
222. |
What will be the output of the program?
|
A. | 1, 40, 1 |
B. | 1, 55, 1 |
C. | 1, 55, 0 |
D. | 1, 1, 1 |
Answer» B. 1, 55, 1 | |
223. |
Which of the following statements are correct about an array?
|
||||||||
A. | 1 | ||||||||
B. | 1,4 | ||||||||
C. | 2,3 | ||||||||
D. | 2,4 | ||||||||
Answer» C. 2,3 | |||||||||
224. |
What will be the output of the program ?
|
A. | 2, 1, 15 |
B. | 1, 2, 5 |
C. | 3, 2, 15 |
D. | 2, 3, 20 |
Answer» D. 2, 3, 20 | |
225. |
Which of the following statements are correct about 6 used in the program? |
A. | In the first statement 6 specifies a particular element, whereas in the second statement it specifies a type. |
B. | In the first statement 6 specifies a array size, whereas in the second statement it specifies a particular element of array. |
C. | In the first statement 6 specifies a particular element, whereas in the second statement it specifies a array size. |
D. | In both the statement 6 specifies array size. |
Answer» C. In the first statement 6 specifies a particular element, whereas in the second statement it specifies a array size. | |
226. |
What will be the output of the program if the array begins at address 65486?
|
A. | 65486, 65488 |
B. | 65486, 65486 |
C. | 65486, 65490 |
D. | 65486, 65487 |
Answer» C. 65486, 65490 | |
227. |
What will be the output of the program in Turb C (under DOS)?
|
A. | 1, 2, 3, 4, 5, |
B. | Garbage value, 1, 2, 3, 4, |
C. | 0, 1, 2, 3, 4, |
D. | 2, 3, 4, 5, 6, |
Answer» C. 0, 1, 2, 3, 4, | |
228. |
What will be the output of the program ?
|
A. | 1 |
B. | 10 |
C. | 0 |
D. | 6 |
Answer» C. 0 | |
229. |
What will be the output of the program?
|
A. | 200 |
B. | 30 |
C. | 100 |
D. | 500 |
Answer» C. 100 | |
230. |
What will be the output of the program?
|
A. | 3 |
B. | 4 |
C. | 5 |
D. | 6 |
Answer» C. 5 | |
231. |
What will be the output of the program?
|
A. | 1, 2, 0, 1 |
B. | -3, 2, 0, 1 |
C. | -2, 3, 0, 1 |
D. | 2, 3, 1, 1 |
Answer» D. 2, 3, 1, 1 | |
232. |
What will be the output of the program?
|
A. | 4, 3, 3 |
B. | 4, 3, 2 |
C. | 3, 3, 2 |
D. | 2, 3, 3 |
Answer» E. | |
233. |
What will be the output of the program?
|
A. | 3, 4 |
B. | 4, 3 |
C. | 4, 4 |
D. | Output may vary from compiler to compiler |
Answer» E. | |
234. |
What will be the output of the program?
|
A. | 4 |
B. | 7 |
C. | 6 |
D. | 5 |
Answer» C. 6 | |
235. |
What will be the output of the program?
|
A. | c=100 |
B. | c=200 |
C. | c=1 |
D. | c=300 |
Answer» D. c=300 | |
236. |
What will be the output of the program?
|
A. | 12 12 |
B. | No error, No output |
C. | Error: Compile error |
D. | None of above |
Answer» B. No error, No output | |
237. |
What will be the output of the program ?
|
A. | 2, 3, 4, 5 |
B. | 1, 2, 3, 4 |
C. | 0, 1, 2, 3 |
D. | 3, 2, 1 0 |
Answer» C. 0, 1, 2, 3 | |
238. |
What will be the output of the program ?
|
A. | 1 |
B. | 2 |
C. | 3 |
D. | 4 |
Answer» B. 2 | |
239. |
What will be the output of the program?
|
A. | Infinite loop |
B. | Hi |
C. | Hello Hi |
D. | Error |
Answer» D. Error | |
240. |
What will be the output of the program?
|
A. | 5 |
B. | 4 |
C. | Error |
D. | Garbage value |
Answer» B. 4 | |
241. |
What will be the output of the program?
|
A. | 5.000000 |
B. | 3.000000 |
C. | Garbage value |
D. | 4.000000 |
Answer» B. 3.000000 | |
242. |
What will be the output of the program?
|
A. | C |
B. | C++ |
C. | Compiler error |
D. | Non of above |
Answer» C. Compiler error | |
243. |
What will be the output of the program?
|
A. | 3, 4, 4, 3 |
B. | 4, 3, 4, 3 |
C. | 3, 3, 4, 4 |
D. | 3, 4, 3, 4 |
Answer» C. 3, 3, 4, 4 | |
244. |
What will be the output of the program?
|
A. | k=35 |
B. | k=36 |
C. | k=37 |
D. | k=38 |
Answer» E. | |
245. |
What will be the output of the program?
|
A. | Print 10 |
B. | Print 20 |
C. | Print 1 |
D. | Compile error |
Answer» E. | |
246. |
What will be the output of the program?
|
A. | 12, 12 |
B. | 7, 7 |
C. | 7, 12 |
D. | 12, 7 |
Answer» B. 7, 7 | |
247. |
What will be the output of the program?
|
A. | 6 |
B. | 1 |
C. | 0 |
D. | -1 |
Answer» C. 0 | |
248. |
What will be the output of the program?
|
A. | 9 |
B. | 10 |
C. | 11 |
D. | 8 |
Answer» B. 10 | |
249. |
What will be the output of the program?
|
A. | 100 |
B. | 10 |
C. | 1 |
D. | 0 |
Answer» B. 10 | |
250. |
If int is 2 bytes wide.What will be the output of the program?
|
A. | ab |
B. | cd |
C. | ef |
D. | gh |
Answer» C. ef | |