1(ii)
Which construct can be used to get only one of the required ice creams?

- (a)switch construct
- (b)while construct
- (c)do.. while construct
- (d)for construct
Show SolutionHide Solution↓
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.