Which of the following is not true with regards to a switch statement?

ICSE Class 10 Computer Applications PYQ · 2025 Specimen · Section A

1(viii)1 Mark · 2025 · Section A · 2025 Specimen

Which of the following is not true with regards to a switch statement?

Show SolutionHide Solution↓

supports floating point constants

Reason — The switch statement does not support float or double constants as case labels. It supports byte, short, int, char, String and enum.

← Previous questionNext question →

Browse the free Computer Applications sample bank