Multiple Choice
Which is an infinite loop?
A) loopCount = 5; while(loopCount > 3) ;
{
System.out.println("Hello") ;
loopCount = loopCount - 1;
}
B) loopCount = 1; while(loopCount < 3) ;
{
System.out.println("Hello") ;
}
C) loopCount = 4; while(loopCount < 3) ;
{
System.out.println("Hello") ;
loopCount = loopCount + 1;
}
D) loopCount = 1; while(loopCount < 3) ;
{
System.out.println("Hello") ;
loopCount = loopCount + 1;
}
Correct Answer:

Verified
Correct Answer:
Verified
Q7: When nesting loops, the variable in the
Q8: You can initialize one or more variables
Q9: Making a comparison to 0 is slower
Q10: Match each term with the correct statement
Q11: The _ loop is the posttest loop
Q13: The statements that make up a loop
Q14: Match each term with the correct statement
Q15: Match each term with the correct statement
Q16: What are the three sections inside the
Q17: In a do…while loop, the loop will