Multiple Choice
When hand-tracing the loop in the code snippet below, which variables are important to evaluate?
Int i = 10;
Int j = 5;
Int k = -10;
Int sum = 0;
While (i > 0)
{
Sum = sum + i + j;
I--;
System.out.println("Iteration: " + i) ;
}
A) The variables i and j
B) The variables i and sum
C) The variables i, j, and k
D) The variables j and k
Correct Answer:

Verified
Correct Answer:
Verified
Q59: What is the output of the following
Q60: Given the following code snippet, what should
Q61: Which statement about this code snippet is
Q62: When designing storyboards, it is a good
Q63: What for loop can be used in
Q65: For which input values will the following
Q66: What is the output of the following
Q67: What is the output of the code
Q68: What is the output of the following
Q69: Suppose that a program asks a user