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
{
System.out.println("Hello") ;
}
C) loopCount = 4; while(loopCount
{
System.out.println("Hello") ;
LoopCount = loopCount + 1;
}
D) loopCount = 1; while(loopCount
{
System.out.println("Hello") ;
LoopCount = loopCount + 1;
}
Correct Answer:

Verified
Correct Answer:
Verified
Q9: Making a comparison to 0 is slower
Q13: Altering a variable within both a for
Q13: The statements that make up a loop
Q14: A statement that will alter the value
Q18: while(count <br>Examine the statement above. Write the
Q53: How are nested loops implemented in a
Q54: A loop controlled by the user is
Q62: How could a programmer identify and escape
Q64: A for loop provides a convenient way
Q76: What would happen if a semicolon is