Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
sale

Want to Unlock All Questions for this Exam?

Full Exam Access, Discussions, No Robots Checks

Oracle 1z0-899 Exam Actual Questions

The questions for 1z0-899 were last updated on May 1, 2024.
  • Viewing page 1 out of 27 pages.
  • Viewing questions 1-4 out of 108 questions

Topic 1 - Single Topic

Question #1 Topic 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?

  • A. <b> <b>
  • B. <b> l2 </b>
  • C. The JSP fails to execute.
  • D. <% int i = 12 %>
Reveal Solution Hide Solution   Discussion  

Correct Answer: C 🗳️

Question #2 Topic 1

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)

  • 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>
Reveal Solution Hide Solution   Discussion  

Correct Answer: BE 🗳️

Question #3 Topic 1

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)

  • A. ${vals.2}
  • B. ${vals ["2"] }
  • C. ${vals.index}
  • D. ${vals[index] }
  • E. ${vals} [index]
  • F. ${vals. (vals.index) }
  • G. ${vals [vals[index-1]] }
Reveal Solution Hide Solution   Discussion  

Correct Answer: BDG 🗳️

Question #4 Topic 1

Given:

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)}
Reveal Solution Hide Solution   Discussion  

Correct Answer: ACE 🗳️

Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...