English

State True or False. ‘Fall Through’ is possible in ‘if..else’

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]

APPEARS IN

Rupa Pandit Computer Applications [English] Class 10 ICSE
Chapter 1 Revision of Class 9 Syllabus
Exercises | Q 2. (viii) | Page 45
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×