Multiple Choice
You might choose to use a switch statement instead of nested if-else statements if
A) the variable being tested might equal one of several hundred integer values
B) the variable being tested might equal one of a few integer values
C) there are two or more integer variables being tested, each one of which could be one of several hundred values
D) there are two or more integer variables being tested, each one of which could be one of a few values
E) None of these; you would never choose a switch statement instead of nested if-else statements under any circumstances.
Correct Answer:

Verified
Correct Answer:
Verified
Q21: How can the following statement be rewritten
Q22: If a switch statement contains no break
Q23: Write a declaration that initializes an int
Q24: What does the break statement do?<br>A) It
Q25: Rewrite the following nested if-else statements using
Q27: Given that s is a String, what
Q28: Describe a situation where you should use
Q29: It is possible to convert any type
Q30: A switch statement must have a default
Q31: Given the following tax table information, write