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
Q9: A(n) _ is a kind of indefinite
Q10: You can use virtually any number of
Q11: On many keyboards, the Break key is
Q12: You can initialize one or more variables
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
Q18: _ is the process of ensuring that
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