giovedì 28 marzo 2013

Q58


Give:

public class MyFive {
       static void main(String[] args) {
             short ii;
             short jj = 0;
             for (ii = kk; ii > 6; ii -= 1) { // line x //
                    jj++;
             }
             System.out.println("jj = " + jj);
       }
}

What value should replace kk in line x to cause jj = 5 to be output?
A.
-1
B.
1
C.
5
D.
8
E.
11
Risposta : E

Nessun commento:

Posta un commento