Single Choice
Moderate
QMissing braces in nested if leads to:
ID: #25941
MCQ Quiz - Class 8 - Decision Control Structure
3 views
Question Info
#25941Q ID
ModerateDifficulty
MCQ Quiz - Class 8 - Decision Control StructureTopic
Your Answer
Choose the Best Option
Click any option to instantly check if you're correct.
Correct Answer
Explanation
Correct Answer Explanation:
Without braces, statements can bind to the wrong if — leading to unexpected behavior and wrong logic.
Why the other options are incorrect:
- Option B: Missing braces produces UNEXPECTED behavior, not right logic.
- Option C: It has consequences — not 'nothing'.
- Option D: Missing braces don't affect speed.
Continue Practice
Share
Share This Question
Challenge a friend or share with your study group.
More from This Topic