मराठी

State True or False. In ‘switch case’, default is optional.

Advertisements
Advertisements

प्रश्न

State True or False.

In ‘switch case’, default is optional.

चूक किंवा बरोबर
Advertisements

उत्तर

This statement is true.

Explanation:

The default case is completely optional in a switch statement. If no cases match and there is no default, the program simply skips the entire switch block and moves to the next line of code.

shaalaa.com
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 1: Revision of Class 9 Syllabus - Exercises [पृष्ठ ४४]

APPEARS IN

रूपा पंडित Computer Applications [English] Class 10 ICSE
पाठ 1 Revision of Class 9 Syllabus
Exercises | Q 2. (v) | पृष्ठ ४४
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×