Q. Which control statement allows you to execute different blocks of code based on the value of a variable?
Solution:
The switch statement evaluates an expression, matches the expression’s value to a case label, and executes the statements associated with that case.
Get Question Bank
Strengthen Your Practice with our comprehensive question bank.