हिंदी

In a switch case, when the switch value does not match with any case then the execution transfers to the default case. - Computer Applications

Advertisements
Advertisements

प्रश्न

In a switch case, when the switch value does not match with any case then the execution transfers to the default case. 

विकल्प

  • True

  • False

MCQ
सत्य या असत्य

उत्तर

This statement is True.

Explanation:

In a switch statement, control is transferred to the default case if none of the case values match the switch expression. When none of the other cases match, the default case is run. If there is no default case or match, the switch statement will simply exit. 

shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 1.08: Conditional Statements in Java - EXERCISES [पृष्ठ ९९]

APPEARS IN

अविचल Computer Applications [English] Class 10 ICSE
अध्याय 1.08 Conditional Statements in Java
EXERCISES | Q II. 4. | पृष्ठ ९९
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×