Single Choice Moderate

QThe else block is:

ID: #25859 MCQ Quiz - Class 8 - Programming 5 views
Question Info
#25859Q ID
ModerateDifficulty
MCQ Quiz - Class 8 - ProgrammingTopic

Choose the Best Option

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

  • A Optional
  • B Mandatory
  • C Only for loops
  • D Never used
Correct Answer

Explanation

Correct Answer Explanation:

The else block is OPTIONAL — you can have just an if without else if no false-case action is needed.

Why the other options are incorrect:

  • Option B: if works standalone without else.
  • Option C: else has nothing to do with loops.
  • Option D: else is used frequently — 'never used' is wrong.

Share This Question

Challenge a friend or share with your study group.