Solved

When Hand-Tracing the Loop in the Code Snippet Below, Which

Question 64

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:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions