

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.
351. |
What will be the output of the program?
|
A. | x and y are equal |
B. | x and y are not equal |
C. | Unpredictable |
D. | No output |
Answer» B. x and y are not equal | |
352. |
What will be the output of the program ?
|
A. | 8 |
B. | 0 |
C. | 16 |
D. | Error |
Answer» C. 16 | |
353. |
What will be the output of the program ?
|
A. | hhe! |
B. | he c |
C. | The c |
D. | Hhec |
Answer» B. he c | |
354. |
What will be the output of the program in 16-bit platform (Turbo C under DOS) ?
|
A. | 8, 1, 4 |
B. | 4, 2, 8 |
C. | 4, 2, 4 |
D. | 10, 3, 4 |
Answer» C. 4, 2, 4 | |
355. |
What will be the output of the program ?
|
A. | The string is empty |
B. | The string is not empty |
C. | No output |
D. | 0 |
Answer» C. No output | |
356. |
What will be the output of the program If characters 'a', 'b' and 'c' enter are supplied as input?
|
A. | abc abc |
B. | bca |
C. | Infinite loop |
D. | cba |
Answer» E. | |
357. |
What will be the output of the program ?
|
A. | Error |
B. | India BIX |
C. | India |
D. | BIX |
Answer» D. BIX | |
358. |
What will be the output of the program ?
|
A. | Suresh, Siva, Sona, Baiju, Ritu |
B. | Suresh, Siva, Sona, Ritu, Baiju |
C. | Suresh, Siva, Baiju, Sona, Ritu |
D. | Suresh, Siva, Ritu, Sona, Baiju |
Answer» C. Suresh, Siva, Baiju, Sona, Ritu | |
359. |
What will be the output of the program ?
|
A. | 10 |
B. | 6 |
C. | 5 |
D. | 11 |
Answer» D. 11 | |
360. |
What will be the output of the program ?
|
A. | Error |
B. | IndiaBIX |
C. | Cannot predict |
D. | None of above |
Answer» D. None of above | |
361. |
Will the expression *p = p be disallowed by the compiler? |
A. | Yes |
B. | No |
Answer» C. | |
362. |
Every operator has an Associativity |
A. | Yes |
B. | No |
Answer» B. No | |
363. |
The expression of the right hand side of || operators doesn't get evaluated if the left hand side determines the outcome. |
A. | True |
B. | False |
Answer» B. False | |
364. |
Two different operators would always have different Associativity. |
A. | Yes |
B. | No |
Answer» C. | |
365. |
If char=1, int=4, and float=4 bytes size, What will be the output of the program ?
|
A. | 1, 2, 4 |
B. | 1, 4, 4 |
C. | 2, 2, 4 |
D. | 2, 4, 8 |
Answer» C. 2, 2, 4 | |
366. |
What will be the output of the program ?
|
A. | 10 |
B. | 6 |
C. | 5 |
D. | 11 |
Answer» E. | |
367. |
What will be the output of the program ?
|
A. | t, t |
B. | k, k |
C. | n, k |
D. | m, f |
Answer» C. n, k | |
368. |
In the expression a=b=5 the order of Assignment is NOT decided by Associativity of operators |
A. | True |
B. | False |
Answer» C. | |
369. |
Associativity of an operator is either Left to Right or Right to Left. |
A. | True |
B. | False |
Answer» B. False | |
370. |
Bitwise & can be used to check if a bit in number is set or not. |
A. | True |
B. | False |
Answer» B. False | |
371. |
If the following structure is written to a file using fwrite(), can fread() read it back successfully?
|
A. | Yes |
B. | No |
Answer» C. | |
372. |
size of union is size of the longest element in the union |
A. | Yes |
B. | No |
Answer» B. No | |
373. |
The elements of union are always accessed using & operator |
A. | Yes |
B. | No |
Answer» C. | |
374. |
Which of the following statements are correct about the program below?
|
A. | The code converts a string in to an integer |
B. | The code converts lower case character to upper case |
C. | The code converts upper case character to lower case |
D. | Error in code |
Answer» C. The code converts upper case character to lower case | |
375. |
Which of the following statements are correct about the below declarations?
|
||||||||
A. | 1, 2 | ||||||||
B. | 2, 3, 4 | ||||||||
C. | 3, 4 | ||||||||
D. | 2, 3 | ||||||||
Answer» C. 3, 4 | |||||||||
376. |
Which of the following statements are correct ?
|
||||||||
A. | 1, 2 | ||||||||
B. | 1, 2, 3 | ||||||||
C. | 2, 4 | ||||||||
D. | 3, 4 | ||||||||
Answer» C. 2, 4 | |||||||||
377. |
What will be the output of the program ?
|
A. | 6 |
B. | 12 |
C. | 7 |
D. | 2 |
Answer» B. 12 | |
378. |
Union elements can be of different sizes. |
A. | True |
B. | False |
Answer» B. False | |
379. |
A structure can contain similar or dissimilar elements |
A. | True |
B. | False |
Answer» B. False | |
380. |
The '->' operator can be used to access structures elements using a pointer to a structure variable only |
A. | True |
B. | False |
Answer» B. False | |
381. |
What will be the output of the program ?
|
A. | Good Morning |
B. | Good |
C. | M |
D. | Morning |
Answer» E. | |
382. |
Point out the error in the program?
|
A. | 4 |
B. | 2 |
C. | Error: cannot set bit field for |
D. | <i class="C-code">float</i> |
E. | Error: Invalid member access in structure |
Answer» D. <i class="C-code">float</i> | |
383. |
Point out the error in the program?
|
A. | Error: Lvalue required/incompatible types in assignment |
B. | Error: invalid constant expression |
C. | Error: Rvalue required |
D. | No error, Output: Suresh 25 |
Answer» B. Error: invalid constant expression | |
384. |
Point out the error in the program in 16-bit platform?
|
A. | 4 |
B. | 2 |
C. | Error: Bit field too large |
D. | Error: Invalid member access in structure |
Answer» D. Error: Invalid member access in structure | |
385. |
What will be the output of the program (sample.c) given below if it is executed from the command line?
|
A. | s |
B. | f |
C. | sample |
D. | friday |
Answer» C. sample | |
386. |
The preprocessor can trap simple errors like missing declarations, nested comments or mismatch of braces. |
A. | True |
B. | False |
Answer» C. | |
387. |
What will be the output of the program if it is executed like below?
|
A. | 0 |
B. | sample |
C. | samp |
D. | No output |
Answer» C. samp | |
388. |
What will be the output of the program (sample.c) given below if it is executed from the command line?
|
A. | three two one |
B. | owt |
C. | eno |
D. | eerht |
Answer» D. eerht | |
389. |
What will be the output of the program (sample.c) given below if it is executed from the command line?
|
A. | sample 3 2 3 |
B. | sample 1 2 3 |
C. | sample |
D. | Error |
Answer» D. Error | |
390. |
A preprocessor directive is a message from compiler to a linker. |
A. | True |
B. | False |
Answer» C. | |
391. |
Once preprocessing is over and the program is sent for the compilation the macros are removed from the expanded source code. |
A. | True |
B. | False |
Answer» B. False | |
392. |
What will be the output of the program (myprog.c) given below if it is executed from the command line?
|
A. | 123 |
B. | 6 |
C. | Error |
D. | "123" |
Answer» C. Error | |
393. |
What will be the output of the program (sample.c) given below if it is executed from the command line?
|
A. | sample friday tuesday sunday |
B. | sample friday tuesday |
C. | sunday tuesday friday sample |
D. | sunday tuesday friday |
Answer» D. sunday tuesday friday | |
394. |
What will be the output of the program (sample.c) given below if it is executed from the command line?
|
A. | s |
B. | f |
C. | u |
D. | r |
Answer» D. r | |
395. |
What will be the output of the program (myprog.c) given below if it is executed from the command line?
|
A. | 10 20 30 |
B. | myprog 10 20 |
C. | myprog 10 20 30 |
D. | 10 20 |
Answer» D. 10 20 | |
396. |
What will be the output of the program (sample.c) given below if it is executed from the command line?
|
A. | *.c |
B. | "*.c" |
C. | sample *.c |
D. | List of all files and folders in the current directory |
Answer» B. "*.c" | |
397. |
What will be the output of the program (sample.c) given below if it is executed from the command line?
|
A. | sample monday tuesday wednesday thursday |
B. | monday tuesday wednesday thursday |
C. | monday tuesday thursday |
D. | tuesday |
Answer» C. monday tuesday thursday | |
398. |
If the following program (myproc.c) is present in the directory "C: TC" then what will be output of the program if run it from DOS shell?
|
A. | SAMPLE.C |
B. | C: TC MYPROC.EXE |
C. | C: TC |
D. | Error |
Answer» C. C: TC | |
399. |
What will be the output of the program in Turbo C?
|
A. | List of all environment variables |
B. | List of all command-line arguments |
C. | count of command-line arguments |
D. | Error: cannot have more than two arguments in |
E. | <i class="C-code">main()</i> |
Answer» B. List of all command-line arguments | |
400. |
What will be the output of the program (myprog.c) given below if it is executed from the command line?
|
A. | oot |
B. | ott |
C. | nwh |
D. | eoe |
Answer» C. nwh | |