Oracle 1z0-899 Exam Practice Questions (P. 1)
- Full Access (108 questions)
- Six months of Premium Access
- Access to one million comments
- Seamless ChatGPT Integration
- Ability to download PDF files
- Anki Flashcard files for revision
- No Captcha & No AdSense
- Advanced Exam Configuration
Question #1
Given the element from the web application deployment descriptor:
<jsp property group>
<url pattern>/main/page1.jsp</url pattern>
<scripting invalid>true</scripting invalid>
</jsppropertygroup>
And given that /main/page1.jsp contains:
<% int i = 12; %>
<b> <%= i %> </b>
What is the result?
<jsp property group>
<url pattern>/main/page1.jsp</url pattern>
<scripting invalid>true</scripting invalid>
</jsppropertygroup>
And given that /main/page1.jsp contains:
<% int i = 12; %>
<b> <%= i %> </b>
What is the result?
send
light_mode
delete
Question #2
A web application allows the HTML title banner to be set using a context initialization parameter called titlestr.
Which two properly set the title in the scenario? (Choose two)
Which two properly set the title in the scenario? (Choose two)
- A<title> $ {titlestr} </title>
- B<title> $ {initparam.titlestr}</title>
- C<title> $ {param [0]. titlestr} </title>
- D<title> $ {paramValues.titleStr} </title>
- E<title> $ {initParam [‘titleStr’] } </title>
- F<title> $ {servletParams.titleStr} </title>
- G<title> $ {request.get ("titleStr") } </title>
Correct Answer:
BE
BE
send
light_mode
delete
Question #3
Given:
11. <%
12. request.setAttribute ("vals", new String[] {"1", "2", "3", "4"});
13. request.setAttribute ("index", "2");
14. %>
15. <% - - insert code here - - %>
Which three EL expressions, inserted at line 15, are valid and evaluate to "3"? (Choose three)
11. <%
12. request.setAttribute ("vals", new String[] {"1", "2", "3", "4"});
13. request.setAttribute ("index", "2");
14. %>
15. <% - - insert code here - - %>
Which three EL expressions, inserted at line 15, are valid and evaluate to "3"? (Choose three)
- A${vals.2}
- B${vals ["2"] }
- C${vals.index}
- D${vals[index] }
- E${vals} [index]
- F${vals. (vals.index) }
- G${vals [vals[index-1]] }
Correct Answer:
BDG
BDG
send
light_mode
delete
Question #4
Given:

Which three EL expressions, inserted at line 16, are valid and evaluate to "d"? (Choose three)

Which three EL expressions, inserted at line 16, are valid and evaluate to "d"? (Choose three)
- A${map.c}
- B${map.[c]}
- C${map.["c"]}
- D${map.map.b}
- E${map.[map.b]}
- F${map. (map.b)}
Correct Answer:
ACE
ACE
send
light_mode
delete
Question #5
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?
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)] }
Correct Answer:
B
B
send
light_mode
delete
All Pages