Download Java EE 6 Web Component Developer Certified Expert.1z0-899.CertDumps.2017-12-16.108q.vcex

Vendor: Oracle
Exam Code: 1z0-899
Exam Name: Java EE 6 Web Component Developer Certified Expert
Date: Dec 16, 2017
File Size: 1 MB

How to open VCEX files?

Files with VCEX extension can be opened by ProfExam Simulator.

ProfExam Discount

Demo Questions

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?
  1. <b> <b>
  2. <b> l2 </b>
  3. The JSP fails to execute.
  4. <% int  i  =  12  %> 
    <b> <%=  i  % > < b>
Correct answer: 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)
  1. <title> $ {titlestr} </title>
  2. <title> $ {initparam.titlestr}</title>
  3. <title> $ {param [0]. titlestr} </title>
  4. <title> $ {paramValues.titleStr} </title>
  5. <title> $ {initParam [‘titleStr’] } </title>
  6. <title> $ {servletParams.titleStr} </title>
  7. <title> $ {request.get (“titleStr”) } </title>
Correct answer: BE
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)
  1. ${vals.2}
  2. ${vals [“2”] }
  3. ${vals.index}
  4. ${vals[index] }
  5. ${vals} [index]
  6. ${vals. (vals.index) }
  7. ${vals [vals[index-1]] }
Correct answer: BDG
Question 4
Given:
   
Which three EL expressions, inserted at line 16, are valid and evaluate to “d”? (Choose three)
  1. ${map.c}
  2. ${map.[c]}
  3. ${map.[“c”]}
  4. ${map.map.b}
  5. ${map.[map.b]}
  6. ${map. (map.b)}
Correct answer: ACE
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?
  1. ${hobbies [hobbyEnum[N]}
  2. ${hobbies [paramValues.hobbyEnum[N]]}
  3. ${hobbies [paramValues @ ‘hobbyEnum’ @N]
  4. ${hobbies.get(paramValues.hobbyEnum[N]) }
  5. ${hobbies [paramValues.hobbyEnum.get(N)] }
Correct answer: B
Question 6
Given:
  1. <% int[] nums = {42,420,4200}; 
  2. request.setAttribute("foo", nums); %> 
  3. ${5 + 3 It 6} 
  4. S(requestScope['foo'][0] ne 10 div0> 
  5. ${10 div 0} 
What is the result?
  1. true  true
  2. false  true
  3. false  true  0
  4. true  true  Infinity
  5. false  true  Infinity
  6. An exception is thrown
  7. Compilation or translation fails
Correct answer: E
Question 7
You are building a web application with a scheduling component. On the JSP, you need to show the current date, the date of the previous week, and the date of the next week.  
To help you present this information, you have created the following EL functions in the ‘d’ namespace:
  • Name : curData; signature: java.util.utilDate CurrentDate()
  • Name : curData; signature: java.util.utilDate addweek (java.util.Date, int)
  • Name: dateString; signature: java.util.String getDataString (jave.util.Data)
Which EL code snippet will generate the string for the previous week?
  1. ${d:dateString(affWeek(curDate(), -1)) }
  2. ${d:dateString [addWeek[curDate[], - ]] }
  3. ${d:dateString [d:addWeek[d:curDate[], - 1]] }
  4. ${d:dateString (d:addWeek(d:curDate(), -1)) }
Correct answer: D
Question 8
Given a header in an HI IP request: 
X-Retries: 4
A Which two retrieve the value of the header from a given HttpServletRequest request? (Choose two)
  1. request-getHeader("X-Retries")
  2. request.getlntHeader("X-Retries")
  3. request.getRequestHeader("X-Retries")
  4. request.getHeaders{"X-Retries").get(0)
  5. request.getRequestHeaders("X-Retries").get(0)
Correct answer: AB
Question 9
Given an HttpServletRequestrequest and HttpResponseresponse, which sets a cookie “username” with the value “joe” in a servlet?
  1. request.addCookie("username", "joe")
  2. request.setCookie("username", "joe")
  3. response.addCookie("username", "joe")
  4. request.addHeader(new Cookie("username", "joe"))
  5. request.addCookie(new Cookie("username", "joe"))
  6. response.addCookie(new Cookie("username", "joe"))
  7. response.addHeader(new Cookie("username", "joe"))
Correct answer: F
Question 10
Which annotation enables a servlet to efficiently process requests of typo multipart/form-data that involve large files being uploaded by the client?
  1. @AcceptMultipart
  2. @MultiPartConfig
  3. @MultiPartFormData
  4. @WebServlet (multipart = true)
Correct answer: B
Explanation:
Reference: http://www.scribd.com/ilinchen2008/d/38764279-Servlet3-0-Specs (page 22, last paragraph)
Reference: http://www.scribd.com/ilinchen2008/d/38764279-Servlet3-0-Specs (page 22, last paragraph)
HOW TO OPEN VCE FILES

Use VCE Exam Simulator to open VCE files
Avanaset

HOW TO OPEN VCEX AND EXAM FILES

Use ProfExam Simulator to open VCEX and EXAM files
ProfExam Screen

ProfExam
ProfExam at a 20% markdown

You have the opportunity to purchase ProfExam at a 20% reduced price

Get Now!