nerdexam
Oracle

1Z0-899 · Question #135

Which two successfully translate and result in a value of true? (Choose two.) 6. <% int[] nums = {42, 420, 4200}; 7. request.setAttribute("foo", nums); %>

The correct answer is A. ${true or false} D. ${(requestScope['foo'][0] lt 50) && (3 gt 2)}. See the full explanation below for the reasoning.

Question

Which two successfully translate and result in a value of true? (Choose two.) 6. <% int[] nums = {42, 420, 4200}; 7. request.setAttribute("foo", nums); %>

Options

  • A${true or false}
  • B${requestScope[foo][0] > 500}
  • C${requestScope['foo'][1] = 420}
  • D${(requestScope['foo'][0] lt 50) && (3 gt 2)}

How the community answered

(52 responses)
  • A
    85% (44)
  • B
    12% (6)
  • C
    4% (2)

Community Discussion

No community discussion yet for this question.

Full 1Z0-899 Practice