7
AssignmentMultiple Choice

Project: Using If and If-Else Statements and Reading User Input

Question 7 • ASC Programming, Games, Apps and Society

In a switch-case, why is a break required at the end of each case statement?

Answer
A
It tells the computer to save the result and move on.
B
It tells the computer to display the current result using line breaks.
C
It tells the computer to advance to the next statement outside the switch block.
D
It tells the computer to ignore the current statement.
Previous
Next