Computer Science for IGCSE & O level - Algorithm Design And Problem Solving (Section 11 - No. 33)
Which of the following is a valid use of the CASE structure?
To perform operations on various variables.
To display different messages based on a user's input.
To perform calculations that give the correct result.
To ensure the algorithm functions under all conditions.
Explanation
CASE structures provide a way to select among several actions based on the value of a variable or expression, good for displaying messages.
Comments (0)
