MCQOPTIONS
Saved Bookmarks
This section includes 107 Mcqs, each offering curated multiple-choice questions to sharpen your C Program knowledge and support exam preparation. Choose a topic below to get started.
| 101. |
If ASCII value of 'x' is 120, then what is the value of the H, ifH = ('x' – 'w' ) / 3; |
| A. | 1 |
| B. | 2 |
| C. | 3 |
| D. | 4 |
| E. | 0 |
| Answer» F. | |
| 102. |
Find the output of the following program.void main(){ int i=065, j=65; printf("%d %d", i, j);} |
| A. | 53 65 |
| B. | 65 65 |
| C. | 065 65 |
| D. | 053 65 |
| E. | Syntax error |
| Answer» B. 65 65 | |
| 103. |
Which is the only function all C programs must contain? |
| A. | start() |
| B. | system() |
| C. | main() |
| D. | printf() |
| E. | getch() |
| Answer» D. printf() | |
| 104. |
Find the output of the following program. void main() { int i=01289; printf("%d", i); } |
| A. | 0289 |
| B. | 1289 |
| C. | 713 |
| D. | 0713 |
| E. | Syntax error |
| Answer» F. | |
| 105. |
What is the correct value to return to the operating system upon the successful completion of a program? |
| A. | 1 |
| B. | -1 |
| C. | 0 |
| D. | Program do no return a value. |
| E. | 2 |
| Answer» D. Program do no return a value. | |
| 106. |
Which of following is not a valid name for a C variable? |
| A. | Examveda |
| B. | Exam_veda |
| C. | Exam veda |
| D. | Both A and B |
| E. | None of these |
| Answer» D. Both A and B | |
| 107. |
If integer needs two bytes of storage, then maximum value of an unsigned integer is |
| A. | 216 – 1 |
| B. | 215 – 1 |
| C. | 216 |
| D. | 215 |
| E. | None of these |
| Answer» B. 215 ‚Äö√Ñ√¨ 1 | |