giovedì 28 marzo 2013

Q43


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 …
B.
the fox lazy …
C.
quick fox over lazy …
D.
quick fox the ….
Risposta B.
the fox lazy ...

Nessun commento:

Posta un commento