MCQOPTIONS
Saved Bookmarks
This section includes 5 Mcqs, each offering curated multiple-choice questions to sharpen your C Programming knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
What will be the output of the following C code? (Assuming that we have entered the value 2 in the standard input) |
| A. | 1 |
| B. | Hi 2 |
| C. | Run time error |
| D. | 2View Answer |
| Answer» E. | |
| 2. |
What will be the output of the following C code? (Assuming that we have entered the value 1 in the standard input) |
| A. | 1 |
| B. | 2 |
| C. | Compile time error |
| D. | No Compile time errorView Answer |
| Answer» D. No Compile time errorView Answer | |
| 3. |
What will be the output of the following C code? (Assuming that we have entered the value 1 in the standard input) |
| A. | Compile time error |
| B. | 1 |
| C. | 2 |
| D. | VariesView Answer |
| Answer» B. 1 | |
| 4. |
It will display hello |
| A. | It will throw an error |
| B. | Nothing will be displayed |
| C. | Compiler dependent |
| Answer» D. | |
| 5. |
hi |
| A. | hello |
| B. | no |
| C. | none of the mentioned |
| Answer» B. no | |