Free 1Z0-899 Braindumps


  • Exam Number: 1Z0-899
  • Provider: Oracle
  • Questions: 108
  • Updated On: 17-Nov-2018


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>
</jsp--property--group>
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 %>
<b> <%= i % > < b>

Answer(s): C
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)

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>

Answer(s): B, E
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)

A. ${vals.2}
B. ${vals ["2"] }
C. ${vals.index}
D. ${vals[index] }

Get The Premium Version

Allbraindumps.com
 Test Questions PDF from Myitguides.com

 Test Questions PDF from Myitguides.com