Solved

Which Is an Infinite Loop

Question 17

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:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions