English

State True or False. In ‘switch case’, only condition of equality can be tested.

Advertisements
Advertisements

Question

State True or False.

In ‘switch case’, only condition of equality can be tested.

True or False
Advertisements

Solution

This statement is true.

Explanation:

A switch statement only tests for exact equality between the control expression and the case constants. It cannot directly evaluate relational inequalities like “greater than” or “less than” in standard programming languages.
shaalaa.com
  Is there an error in this question or solution?
Chapter 1: Revision of Class 9 Syllabus - Exercises [Page 44]

APPEARS IN

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

Englishहिंदीमराठी


      Forgot password?
Use app×