Advertisements
Advertisements
Question
State True or False.
‘Fall Through’ is possible in ‘if..else’
True or False
Advertisements
Solution
This statement is false.
Explanation:
“Fall through” occurs when execution automatically moves to the next block of code, which is a feature unique to switch statements without break modifiers. In a if..else structure, the blocks are mutually exclusive, meaning only the first matching condition executes, and the rest are completely skipped.
shaalaa.com
Is there an error in this question or solution?
Chapter 1: Revision of Class 9 Syllabus - Exercises [Page 45]
