Computer Science for IGCSE & O level - Programming (Section 13 - No. 47)

Which part of the program is executed based on the value of 'answer' in the case statement?
The entire program code.
The code block associated with the matching case.
The program will not run.
The ELSE statement.

Explanation

The CASE statement directs the program to execute a specific block of code based on the value of the variable being checked.

Comments (0)

Advertisement