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]
