How many times does the following loop run?
Int i = 0;
Int j = 1;
Do
{
System.out.println("" + i + ";" + j) ;
I++;
If (i % 3 == 0)
{
J--;
}
}
While (j >= 1) ;
A) 1 time
B) 2 times
C) 3 times
D) 4 times
Correct Answer:
Verified
Q66: Which of the following loop(s) could possibly
Q67: Is the following code snippet legal? boolean
Q68: Which of the loop(s) test the condition
Q69: Assume the following variable has been declared
Q70: What is the output of the code
Q72: Assume the following variable has been declared
Q73: What for loop can be used in
Q74: How many times does the following loop
Q75: What is the output of the code
Q76: Which loop does not check a condition
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