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

Choose the Best Option

Click any option to instantly check if you're correct.

  • A Wrong logic
  • B Right logic
  • C Nothing
  • D Speed up
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.

Share This Question

Challenge a friend or share with your study group.