nerdexam
Oracle

1Z0-819 · Question #195

Given the code fragment: ``java for (i=0; i<10; i++) { System.out.print(i + " "); } `` What is the result?

The correct answer is B. 0 1 2 3 4 5 6 7 8 9. See the full explanation below for the reasoning.

Question

Given the code fragment: ```java for (i=0; i<10; i++) { System.out.print(i + " "); }
What is the result?

Options

  • A13579
  • B0 1 2 3 4 5 6 7 8 9
  • C246810
  • D2468

How the community answered

(41 responses)
  • A
    2% (1)
  • B
    80% (33)
  • C
    12% (5)
  • D
    5% (2)

Community Discussion

No community discussion yet for this question.

Full 1Z0-819 Practice