Solved

How Many Times Does the Following Loop Execute

Question 106

Multiple Choice

How many times does the following loop execute?
Int i = 0;
Boolean found = false;
While (i < 100 && !found)
{
I++;
System.out.print(i + " ") ;
Int j = i * i;
If ((i * i * i) % j == j)
{
Found = true;
}
}


A) 10 times
B) 20 times
C) 100 times
D) An infinite number of times

Correct Answer:

verifed

Verified

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

Related Questions