What are the values of i and j after the following code fragment runs?
Int i = 60;
Int j = 50;
Int count = 0;
While (count < 5)
{
I = i + i;
I = i + 1;
J = j - 1;
J = j - j;
Count++;
}
System.out.println("i=" + i + ", j=" + j) ;
A) i = 1951, j = 0
B) i = 1951, j = 45
C) i = 65, j = 1
D) i = 65, j = 45
Correct Answer:
Verified
Q3: How many times does the code snippet
Q4: What is the output of the following
Q5: What is the output of the following
Q6: What is the output of the following
Q7: How many times does the following code
Q9: How many times does the code snippet
Q10: What is the output of the code
Q11: What is the output of the code
Q12: What is the output of the code
Q13: What are the values of i and
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