nerdexam
Oracle

1Z0-899 · Question #25

You are building a dating service web site. Part of the form to submit a client's profile is a group of radio buttons for the person's hobbies: 20. <input type = radio' name = hobbyEnum' value =…

The correct answer is B. ${hobbies [paramValues.hobbyEnum[N]]}. See the full explanation below for the reasoning.

Question

You are building a dating service web site. Part of the form to submit a client's profile is a group of radio buttons for the person's hobbies: 20. <input type = radio' name = hobbyEnum' value = HIKING'> Hiking <br> 21. <input type = radio' name = hobbyEnum' value = SKING'> Sking <br> 22. <input type = radio' name = hobbyEnum' value = `SCUBA'> SCUBA <br> 23. <! - - and more options - - >> After the user submits this form, a confirmation screen is displayed with these hobbies listed. Assume that an application-scoped hobbies, holds a map between the hobby enumerated type and the display name. Which EL code snippet will display Nth element of the user's selected hobbles?

Options

  • A${hobbies [hobbyEnum[N]}
  • B${hobbies [paramValues.hobbyEnum[N]]}
  • C${hobbies [paramValues @ `hobbyEnum' @N]
  • D${hobbies.get(paramValues.hobbyEnum[N]) }
  • E${hobbies [paramValues.hobbyEnum.get(N)] }

How the community answered

(49 responses)
  • A
    4% (2)
  • B
    71% (35)
  • C
    8% (4)
  • D
    14% (7)
  • E
    2% (1)

Community Discussion

No community discussion yet for this question.

Full 1Z0-899 Practice