KnowledgeBoat Logo
|

Computer Applications

Which construct can be used to get only one of the required ice creams?

which construct can be used to get only one of the required ice creams. ICSE 2025 Computer Applications Solved Question Paper.
  1. switch construct
  2. while construct
  3. do.. while construct
  4. for construct

Java Conditional Stmts

8 Likes

Answer

switch construct

Reason — The switch construct can be used to select and execute only the case that matches the required ice cream choice, skipping all other cases, which makes it suitable when only one specific ice cream needs to be selected from several options.

Answered By

3 Likes


Related Questions