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
Q1: An indefinite loop is a(n) _ loop.
A)
Q1: It is important that the loop control
Q5: A statement that will alter the value
Q6: Use a(n) _ loop to execute a
Q7: _ is the process of ensuring that
Q13: The statements that make up a loop
Q15: In order to improve loop performance, it's
Q16: A _ is a structure that allows
Q17: A loop controlled by the user is
Q19: A loop that never ends is called
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