

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.
251. |
What will be the output of the program?
|
A. | AB |
B. | BC |
C. | CD |
D. | No output |
Answer» C. CD | |
252. |
Which of the following statements are correct about the function?
|
A. | The function calculates the value of 1 raised to power num. |
B. | The function calculates the square root of an integer |
C. | The function calculates the factorial value of an integer |
D. | None of above |
Answer» D. None of above | |
253. |
Assuming, integer is 2 byte, What will be the output of the program?
|
A. | ffff |
B. | 0 |
C. | fff8 |
D. | Error |
Answer» D. Error | |
254. |
What will be the output of the program?
|
A. | 2, 2, 0, 1 |
B. | 1, 2, 1, 0 |
C. | -2, 2, 0, 0 |
D. | -2, 2, 0, 1 |
Answer» E. | |
255. |
What will be the output of the program?
|
A. | z=0 |
B. | z=1 |
C. | z=4 |
D. | z=2 |
Answer» C. z=4 | |
256. |
What will be the output of the program?
|
A. | 1, 0, 1 |
B. | 1, 1, 1 |
C. | 0, 0, 0 |
D. | 0, 1, 0 |
Answer» D. 0, 1, 0 | |
257. |
What will be the output of the program?
|
A. | C |
B. | C++ |
C. | Compiler error |
D. | Non of above |
Answer» B. C++ | |
258. |
What will be the output of the program ?
|
A. | 1250 |
B. | 2 |
C. | 50 |
D. | 250 |
Answer» E. | |
259. |
What will be the output of the program?
|
A. | 2 in 16bit compiler, 4 in 32bit compiler |
B. | 4 in 16bit compiler, 2 in 32bit compiler |
C. | 4 in 16bit compiler, 4 in 32bit compiler |
D. | 2 in 16bit compiler, 2 in 32bit compiler |
Answer» B. 4 in 16bit compiler, 2 in 32bit compiler | |
260. |
What will be the output of the program if value 25 given to scanf()?
|
A. | 25 |
B. | 2 |
C. | 1 |
D. | 5 |
Answer» D. 5 | |
261. |
What will be the output of the program ?
|
A. | A |
B. | B |
C. | C |
D. | D |
Answer» C. C | |
262. |
What will be the output of the program ?
|
A. | This is IndiaBIX |
B. | This is |
C. | Infinite loop |
D. | Error |
Answer» D. Error | |
263. |
What will be the output of the program ?
|
A. | 21 |
B. | 23 |
C. | Error |
D. | No output |
Answer» C. Error | |
264. |
What will be the output of the program ?
|
A. | agpur |
B. | gpur |
C. | Nagp |
D. | agpu |
Answer» E. | |
265. |
What will be the output of the program ?
|
A. | %%%%% |
B. | %% |
C. | No output |
D. | Error |
Answer» C. No output | |
266. |
What will be the output of the program?
|
A. | Hello |
B. | Hi Hello |
C. | No output |
D. | Infinite loop |
Answer» B. Hi Hello | |
267. |
What will be the output of the program?
|
A. | 5, 2 |
B. | 10, 4 |
C. | 2, 5 |
D. | 25, 4 |
Answer» E. | |
268. |
What will be the output of the program?
|
A. | 0 |
B. | 0.0 |
C. | 7.0 |
D. | 7 |
Answer» E. | |
269. |
What will be the output of the program?
|
A. | 4, 4, 4 |
B. | 4, 8, 8 |
C. | 4, 8, 10 |
D. | 4, 8, 12 |
Answer» D. 4, 8, 12 | |
270. |
What will be the output of the program in 16 bit platform (Turbo C under DOS)?
|
A. | Garbage value |
B. | 0 (Zero) |
C. | 1990 |
D. | No output |
Answer» D. No output | |
271. |
What will be the output of the program?
|
A. | Print 5, 4, 3, 2, 1 |
B. | Print 1, 2, 3, 4, 5 |
C. | Print 5, 4, 3, 2, 1, 0 |
D. | Infinite loop |
Answer» E. | |
272. |
What will be the output of the program?
|
A. | 0, 2, 1, 0, |
B. | 1, 1, 2, 0, |
C. | 0, 1, 0, 2, |
D. | 0, 1, 2, 0, |
Answer» E. | |
273. |
Point out the error in the program?
|
A. | No error, No output. |
B. | Program crashes at run time. |
C. | Output: Unable to open file. |
D. | None of above |
Answer» D. None of above | |
274. |
Which of the following statement is correct about the program?
|
A. | The code counts number of characters in the file |
B. | The code counts number of words in the file |
C. | The code counts number of blank lines in the file |
D. | The code counts number of lines in the file |
Answer» E. | |
275. |
Which of the following statement is correct about the program?
|
A. | The code writes a text to a file |
B. | The code reads a text files and display its content in reverse order |
C. | The code writes a text to a file in reverse order |
D. | None of above |
Answer» C. The code writes a text to a file in reverse order | |
276. |
What will be the output of the program ?
|
A. | 3.00 |
B. | 3.15 |
C. | 3.2 |
D. | 3 |
Answer» D. 3 | |
277. |
Point out the correct statements about the program?
|
A. | The code copies the content of one file to another |
B. | The code writes strings that are read from the keyboard into a file. |
C. | The code reads a file |
D. | None of above |
Answer» C. The code reads a file | |
278. |
What will be the output of the program ?
|
A. | k == 1 is TRUE |
B. | 1 == 1 is TRUE |
C. | 1 == 1 is FALSE |
D. | K == 1 is FALSE |
Answer» C. 1 == 1 is FALSE | |
279. |
What will be the output of the program ?
|
A. | char *str = "char *str = %c%s%c; main(){ printf(str, 34, str, 34);}"; main(){ printf(str, 34, str, 34);} |
B. | char *str = %c%s%c; main(){ printf(str, 34, str, 34);} |
C. | No output |
D. | Error in program |
Answer» B. char *str = %c%s%c; main(){ printf(str, 34, str, 34);} | |
280. |
If the file 'source.txt' contains a line "Be my friend" which of the following will be the output of below program?
|
A. | friend |
B. | frien |
C. | end |
D. | Error in |
E. | <i class="C-code">fseek();</i> |
Answer» D. Error in | |
281. |
What will be the output of the program ?
|
A. | Print the contents of file "myfile.c" |
B. | Print the contents of file "myfile.c" upto NULL character |
C. | Infinite loop |
D. | Error in program |
Answer» D. Error in program | |
282. |
While calling the fprintf() function in the format string conversion specifier %s can be used to write a character string in capital letters. |
A. | True |
B. | False |
Answer» C. | |
283. |
The maximum combined length of the command-line arguments including the spaces between adjacent arguments is |
A. | 128 characters |
B. | 256 characters |
C. | 67 characters |
D. | It may vary from one operating system to another |
Answer» E. | |
284. |
Which of the following statements are correct about the program?
|
A. | It converts a number to a given base. |
B. | It converts a number to its equivalent binary. |
C. | It converts a number to its equivalent hexadecimal. |
D. | It converts a number to its equivalent octal. |
Answer» B. It converts a number to its equivalent binary. | |
285. |
What will be the output of the program?
|
A. | Error |
B. | -11, 34 |
C. | 11, 34 |
D. | None of these |
Answer» C. 11, 34 | |
286. |
Which of the following statements are correct about the below C-program?
|
||||||||
A. | 1 | ||||||||
B. | 2, 3 | ||||||||
C. | 3, 4 | ||||||||
D. | 4 | ||||||||
Answer» C. 3, 4 | |||||||||
287. |
Which of the following sentences are correct about a for loop in a C program?
|
||||||||
A. | 1 | ||||||||
B. | 1, 2 | ||||||||
C. | 2, 3 | ||||||||
D. | 2, 3, 4 | ||||||||
Answer» E. | |||||||||
288. |
Which of the following statements are correct about the below program?
|
A. | Error: Declaration terminated incorrectly |
B. | Error: Syntax error |
C. | Error: Lvalue required |
D. | None of above |
Answer» D. None of above | |
289. |
What will be the output of the program ?
|
A. | No output |
B. | 30 |
C. | 3 |
D. | 300 |
Answer» E. | |
290. |
Is this a correct way for NULL pointer assignment? |
A. | Yes |
B. | No |
Answer» C. | |
291. |
What will be the output of the program if the array begins at 65472 and each integer occupies 2 bytes?
|
A. | 65474, 65476 |
B. | 65480, 65496 |
C. | 65480, 65488 |
D. | 65474, 65488 |
Answer» C. 65480, 65488 | |
292. |
What will be the output of the program ?
|
A. | The sentence will get printed in same order as it entered |
B. | The sentence will get printed in reverse order |
C. | Half of the sentence will get printed |
D. | None of above |
Answer» C. Half of the sentence will get printed | |
293. |
What will be the output of the program ?
|
A. | 103 DotNet |
B. | 102 Java |
C. | 103 PHP |
D. | 104 DotNet |
Answer» B. 102 Java | |
294. |
Point out the error in the program?
|
A. | Error: in structure declaration |
B. | Linker Error |
C. | No Error |
D. | None of above |
Answer» D. None of above | |
295. |
We want to test whether a value lies in the range 2 to 4 or 5 to 7. Can we do this using a switch? |
A. | Yes |
B. | No |
Answer» B. No | |
296. |
If scanf() is used to store a value in a char variable then along with the value a carriage return( r) also gets stored it. |
A. | True |
B. | False |
Answer» C. | |
297. |
The way the break is used to take control out of switch and continue to take control of the beginning of the switch? |
A. | Yes |
B. | No |
Answer» C. | |
298. |
By default, the data type of a constant without a decimal point is int, whereas the one with a decimal point is a double. |
A. | Yes |
B. | No |
Answer» B. No | |
299. |
A char variable can store either an ASCII character or a Unicode character. |
A. | True |
B. | False |
Answer» B. False | |
300. |
Which of the following statements are correct about the below program?
|
A. | Output: Have a nice day |
B. | No output |
C. | Error: Expression syntax |
D. | Error: Undeclared identifier |
E. | <i class="C-code">if</i> |
Answer» D. Error: Undeclared identifier | |