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

You might also like to view...

The column and row headings selected that describe the values in a chart.

A. Axis B. Labels C. Matrix

Computer Science & Information Technology

The file extension on a PowerPoint template file is ________

A) .docx B) .pptx C) .potx D) .xlsx

Computer Science & Information Technology