nerdexam
Exams1Z0-803Questions#154
Oracle

1Z0-803 · Question #154

1Z0-803 Question #154: Real Exam Question with Answer & Explanation

The correct answer is A: 4. See the full explanation below for the reasoning.

Question

Given the code fragment: 12. for (int row = 4; row > 0; row--) { 13. int col = row; 14. while (col <= 4) { 15. System.out.print(col); 16. col++; 17. } 18. System.out.println(); 19. } What is the result?

Options

  • A4
  • B4
  • C4321
  • D4567

Community Discussion

No community discussion yet for this question.

Full 1Z0-803 Practice