Multiple Choice
What are the values of i and j after the following code snippet is run?
Int i = 10;
Int j = 20;
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 = 45, j = 1
B) i = 351, j = 0
C) i = 351, j = 2
D) i = 1311, j = 35
Correct Answer:

Verified
Correct Answer:
Verified
Q45: Which of the following loops will print
Q46: What will be printed by the statements
Q47: Which code snippet produces the sum of
Q48: What does the following code snippet display?
Q49: Suppose you must design a program to
Q51: When hand-tracing a portion of code, which
Q52: What will be the output of the
Q54: Select the statement that correctly completes the
Q55: What are the values of i and
Q105: Which of the following statements is correct