Solved

Which Is an Infinite Loop

Question 23

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:

verifed

Verified

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

Related Questions