Given the following code fragment:
if (value >= 0) {
if (value != 0)
System.out.print("the ");
else
System.out.print("quick ");
if (value < 10)
System.out.print("brown ");
if (value > 30)
System.out.print("fox ");
else if (value < 50)
System.out.print("jumps ");
else if (value < 10)
System.out.print("over ");
else
System.out.print("the ");
if (value > 10)
System.out.print("lazy ");
} else {
System.out.print("dog ");
}
System.out.print("...");
What is the
result if the integer value is 33?
A.
the fox jump lazy …
the fox jump lazy …
B.
the fox lazy …
the fox lazy …
C.
quick fox over lazy …
quick fox over lazy …
D.
quick fox the ….
quick fox the ….
Risposta B.
the fox lazy ...
Nessun commento:
Posta un commento