题目内容

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.

The compiler will, by default, associate an else with the closest previous unpaired if, unless braces are used to alter this default pairing.

答案查题题库