题目内容

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.

Any number of case labels may be contained within a switch statement, in any order.

The expression: (6 * 3 == 36 / 2) && (13 < 3 * 3 + 4) || !(6 - 2 < 5) evaluates to 1.

答案查题题库