Single Choice Moderate

QOnly one of if or else runs:

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

Choose the Best Option

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

  • A True
  • B False
  • C Both run
  • D Neither
Correct Answer

Explanation

Correct Answer Explanation:

In if-else, EXACTLY one of the two blocks runs based on the condition. Both cannot run in the same execution.

Why the other options are incorrect:

  • Option B: This statement is definitely true.
  • Option C: Both never run in the same execution.
  • Option D: 'Neither' would mean nothing runs, but exactly one always does.

Share This Question

Challenge a friend or share with your study group.