题目内容

In a switch statement, if the break statements are omitted, all cases following the matching case value, including the default case, are executed.

查看答案
更多问题

A ____ statement is a specialized selection statement that can be used in place of an if-else chain where exact equality to one or more integer constants is required.

A. case
B. break
C. switch
D. nested if

In a switch statement, the keyword ____ identifies the values that will be compared to the value of the switch expression.

A. if
B. break
C. case
D. default

In a switch statement, the word ____ is optional and operates the same as the last else in an if-else chain.

A. if
B. break
C. case
D. default

Generally, the most useful nested if statement occurs when a second if-else statement is placed within the else part of an if-else statement.

答案查题题库