阿摩線上測驗 登入

試題詳解

試卷:無年度 - Java EE 6 Web Component Developer Certified Expert Exam:1z0-899(51-100)#84004 | 科目:OCE

試卷資訊

試卷名稱:無年度 - Java EE 6 Web Component Developer Certified Expert Exam:1z0-899(51-100)#84004

科目:OCE

78 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?
(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)] }
正確答案:登入後查看