MCQOPTIONS
Saved Bookmarks
This section includes 10 Mcqs, each offering curated multiple-choice questions to sharpen your Basic C knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
A nested selection structure can be contained in ____________________ of another selected structure. |
| A. | Only in the truth part |
| B. | Only in the false part |
| C. | Either in truth or in false part |
| D. | Both in truth and in false part |
| Answer» E. | |
| 2. |
What will be the content of Text after the code is executed with id=8? |
| A. | Janet |
| B. | Mark |
| C. | Jerry |
| D. | SueView Answer |
| Answer» E. | |
| 3. |
What will be the content of Text after the code is executed with id=4? |
| A. | Janet |
| B. | Mark |
| C. | Jerry |
| D. | SueView Answer |
| Answer» D. SueView Answer | |
| 4. |
What will be the content of Text after the code is executed with id=2? |
| A. | Janet |
| B. | Mark |
| C. | Jerry |
| D. | SueView Answer |
| Answer» C. Jerry | |
| 5. |
What will be the content of num, after code execution; if before code execution num has value 200? |
| A. | 0 |
| B. | 200 |
| C. | 400 |
| D. | 600View Answer |
| Answer» C. 400 | |
| 6. |
What will be the content of num, after code execution; if before code execution num has value 1000? |
| A. | 0 |
| B. | 1000 |
| C. | 3000 |
| D. | 2000View Answer |
| Answer» D. 2000View Answer | |
| 7. |
What will be the content of num, after the code execution; if before code execution num has value 90? |
| A. | 0 |
| B. | 90 |
| C. | 180 |
| D. | 270View Answer |
| Answer» D. 270View Answer | |
| 8. |
__________ refers to the process of checking your algorithm while seated at your desk. |
| A. | Disk-checking |
| B. | Desk-checking |
| C. | Drive-checking |
| D. | Paper-checking |
| Answer» B. Desk-checking | |
| 9. |
Most common error that occur in selection structure is __________ |
| A. | Logical error |
| B. | Syntactical error |
| C. | Segmentation fault |
| D. | Compiler error |
| Answer» B. Syntactical error | |
| 10. |
When a selection structure’s true part or false part contains another selection structure, the inner selection structured is referred to as __________ |
| A. | Implicit selection structure |
| B. | Inner selection structure |
| C. | Outer selection structure |
| D. | Nested selection structure |
| Answer» E. | |