Solved

Which Is an Infinite Loop

Question 12

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