ICSE Class 10 Computer Applications Question 8 of 30

Solved 2025 Specimen Paper ICSE Class 10 Computer Applications — Question 8

Back to all questions
8
Question

Question 1(viii)

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

  1. checks for an equality between the input and the case labels
  2. supports floating point constants
  3. break is used to exit from the switch block
  4. case labels are unique
Answer

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.