How many times does the following loop run?
Int i = 0;
Int j = 1;
Do
{
System.out.println("" + i + ";" + j) ;
I++;
If (i % 2 == 0)
{
J--;
}
}
While (j >= 1) ;
A) 0 times
B) 1 times
C) 2 times
D) 4 times
Correct Answer:
Verified
Q69: Assume the following variable has been declared
Q70: What is the output of the code
Q71: How many times does the following loop
Q72: Assume the following variable has been declared
Q73: What for loop can be used in
Q75: What is the output of the code
Q76: Which loop does not check a condition
Q77: What is the output of the code
Q78: What is the output of the code
Q79: What is the result when the following
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