nerdexam
Oracle

1Z0-808 · Question #49

1Z0-808 Question #49: Real Exam Question with Answer & Explanation

Sign in or unlock 1Z0-808 to reveal the answer and full explanation for question #49. The question stem and answer options stay visible for context.

Using Loop Constructs

Question

QUESTION 60 Given the code fragment: int a[] = {1, 2, 3, 4, 5}; for (XXXX) { System.out.print (a[e]); } Which option can replace xxxx to enable the code to print 135?

Options

  • Aint e=0; e<=4; e++
  • Bint e=0; e<5; e+=2
  • Cint e=0; e<=5; e+=1
  • Dint e=1; e<=5; e+=2

Unlock 1Z0-808 to see the answer

You've previewed enough free 1Z0-808 questions. Unlock 1Z0-808 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#for loop syntax#array indexing#iteration control#loop increment
Full 1Z0-808 Practice