Multiple Choice
Which of the following statements are true about Java loops?
A) All three loop types are functionally equivalent.
B) while loops and do loops are essentially the same, but while loops always execute at least once.
C) If you know the number of times that a loop is to be performed, the best type of loop to use is a while loop.
D) Loops may be replaced by an appropriate combination of if-else and switch statements.
E) None of these
Correct Answer:

Verified
Correct Answer:
Verified
Q1: How many times will the System.out.println("*"); statement
Q2: A conditional operator is virtually the same
Q3: The do loop differs from the while
Q4: Code Example Ch 06-1<br>In the following example,
Q5: Control in a switch statement jumps to
Q7: How many times will the following nested
Q8: Write a do loop to obtain a
Q10: The following for loop is an infinite
Q11: A for statement is normally used when
Q27: Write code that outputs all of the