Advertisements
Advertisements
Question
An if-else construct accomplishes 'fall through'.
Options
True
False
MCQ
True or False
Solution
This statement is False.
Explanation:
- In programming, "fall through" refers to the behaviour of switch-case statements in which execution continues to follow cases if no break statement is present.
- In contrast, an if-else design prevents fall-through. Only one block (either the if or the else) is run according to the situation, and there is no automatic continuation between them.
shaalaa.com
Is there an error in this question or solution?