Single Choice
Moderate
QIf none of the conditions match, execution goes to:
ID: #25863
MCQ Quiz - Class 8 - Programming
4 views
Question Info
#25863Q ID
ModerateDifficulty
MCQ Quiz - Class 8 - ProgrammingTopic
Your Answer
Choose the Best Option
Click any option to instantly check if you're correct.
Correct Answer
Explanation
Correct Answer Explanation:
When no condition matches, the OPTIONAL final else block runs. If no else exists, nothing runs.
Why the other options are incorrect:
- Option B: The first if was already checked and failed.
- Option C: 'Nothing' happens only if there's no final else.
- Option D: Execution is predictable, not random.
Continue Practice
Share
Share This Question
Challenge a friend or share with your study group.
More from This Topic