Multiple Choice
If a switch statement is written that contains no break statements whatsoever,
A) this is a syntax error and an appropriate error message will be generated
B) each of the case clauses will be executed every time the switch statement is encountered
C) this is equivalent to having the switch statement always take the default clause, if one is present
D) this is not an error, but nothing within the switch statement ever will be executed
E) none of the above
Correct Answer:

Verified
Correct Answer:
Verified
Q10: The following for loop is an infinite
Q23: The do loop differs from the while
Q24: Given the following code, where x =
Q25: How many times will the System.out.println(*); statement
Q27: A dialog box is a device which
Q28: Describe a situation where you should use
Q30: A switch statement must have a default
Q30: Consider the following paint method to answer
Q31: Consider the following paint method to answer
Q34: Rewrite the following if-else statement using a