English

An if-else construct accomplishes 'fall through'. - Computer Applications

Advertisements
Advertisements

Question

An if-else construct accomplishes 'fall through'. 

Options

  • True

  • False

MCQ
True or False

Solution

This statement is False.

Explanation:

  1. 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.
  2. 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?
Chapter 1.08: Conditional Statements in Java - EXERCISES [Page 99]

APPEARS IN

Avichal Computer Applications [English] Class 10 ICSE
Chapter 1.08 Conditional Statements in Java
EXERCISES | Q II. 3. | Page 99
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×