Multiple Choice
What are the values of i and j after the following code snippet executes?
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) ;
System.out.println(j) ;
A) i = 65, j = 1
B) i = 65, j = 45
C) i = 1951, j = 0
D) i = 1951, j = 45
Correct Answer:

Verified
Correct Answer:
Verified
Q50: What are the values of i and
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
Q56: A loop inside another loop is called:<br>A)
Q57: What is the sentinel value in the
Q58: The code snippet below checks whether a
Q59: What is the output of the following
Q60: Given the following code snippet, what should
Q105: Which of the following statements is correct