Single Choice Moderate

Qelse runs when if is:

ID: #25966 MCQ Quiz - Class 8 - Decision Control Structure 4 views
Question Info
#25966Q ID
ModerateDifficulty
MCQ Quiz - Class 8 - Decision Control StructureTopic

Choose the Best Option

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

  • A false
  • B true
  • C empty
  • D null
Correct Answer

Explanation

Correct Answer Explanation:

else executes when the if condition is false. The two blocks are mutually exclusive.

Why the other options are incorrect:

  • Option B: When true, if block runs, not else.
  • Option C: 'Empty' isn't a valid condition state.
  • Option D: 'null' isn't valid for boolean conditions.

Share This Question

Challenge a friend or share with your study group.