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
Your Answer
Choose the Best Option
Click any option to instantly check if you're correct.
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.
Continue Practice
Share
Share This Question
Challenge a friend or share with your study group.
More from This Topic