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
Q4: A conditional operator is virtually the same
Q5: Given that s is a String, what
Q6: A continue statement
A) may be used within
Q7: A switch statement must have a default
Q8: If a switch statement contains no break
Q10: How many times will the following nested
Q11: Given the following code, where x =
Q12: The do loop differs from the while
Q13: How many times will the following loop
Q14: The following for loop is an infinite
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents