List and explain the keywords used with the switch statement.
What will be an ideal response?
switch starts the statement and is followed immediately by a test expression enclosed in parentheses.case is followed by one of the possible values for the test expression and a colon.break optionally terminates a switch structure at the end of each case.default is optionally used prior to any action that should occur if the test variable does not match any case.
Computer Science & Information Technology