Dans cette société de l'information technologies, c'est bien populaire que l'on prenne la formation en Internet, Pass4Test est l'un des sites d'offrir la formation particulère pour le test SUN 310-502 310-015 310-090 310-081. Pass4Test a une expérience riche pour répondre les demandes des candidats.
Pass4Test est un fournisseur important de résume du test Certification IT dans tous les fournissurs. Les experts de Pass4Test travaillent sans arrêt juste pour augmenter la qualité de l'outil formation et vous aider à économiser le temps et l'argent. D'ailleur, le servie en ligne après vendre est toujours disponible pour vous.
Pass4Test est un site web de vous offrir particulièrement les infos plus chaudes à propos de test Certification SUN 310-502 310-015 310-090 310-081. Pour vous assurer à nous choisir, vous pouvez télécharger les Q&As partielles gratuites. Pass4Test vous promet un succès 100% du test SUN 310-502 310-015 310-090 310-081.
Pass4Test est un site particulier d'offrir la formation à propos de test Certification IT. C'est un bon choix pour vous aider à réussir le test SUN 310-502 310-015 310-090 310-081. Pass4Test offre toutes les informations et les documentations plus nouvelles qui peut vous donner plus de chances à réussir le test.
Code d'Examen: 310-502
Nom d'Examen: SUN (Sun Certified JCAPS Integrator)
Questions et réponses: 60 Q&As
Code d'Examen: 310-015
Nom d'Examen: SUN (SUN Certified SYSTEM ADMINISTRATOR FOR SOLARIS 9 PART II)
Questions et réponses: 299 Q&As
Code d'Examen: 310-090
Nom d'Examen: SUN (Sun Certified Business Component Developer for J2EE 1.3)
Questions et réponses: 409 Q&As
Code d'Examen: 310-081
Nom d'Examen: SUN (Sun Certified Web Component Developer for J2EE 1.4)
Questions et réponses: 140 Q&As
310-081 Démo gratuit à télécharger: http://www.pass4test.fr/310-081.html
NO.1 Given:
Which code snippet inserted at line 12 causes the client to redirect to http://www.example.com?
A.response.sendRedirect("http://www.example.com");
B.response.sendRedirect(new URL("http://www.example.com"));
C.RequestDispatcher rd =
getServletContext().getRequestDispatcher(
"http://www.example.com");
rd.forward(request, response);
D.RequestDispatcher rd =
Answer: A
SUN 310-081 examen 310-081 examen 310-081
NO.2 Given a servlet mapped to /control, place the correct URI segment returned as a String on the
corresponding HttpServletRequest method call for the URI: /myapp/control/processorder.
NO.3 Place the XML elements in the web application deployment descriptor solution to configure a servlet
context event listener named com.example.MyListener.
Answer:
NO.4 Which HTTP method has the characteristic that multiple identical requests may produce side effects
beyond those of a single request?
A.PUT
B.GET
C.INFO
D.POST
E.HEAD
F.TRACE
Answer: D
SUN examen 310-081 examen 310-081 examen 310-081
NO.5 Given an HttpServletRequest request and HttpServletResponse response, which sets a cookie
"username" with the value "joe" in a servlet?
A.request.addCookie("username", "joe")
B.request.setCookie("username", "joe")
C.response.addCookie("username", "joe")
D.request.addHeader(new Cookie("username", "joe"))
E.request.addCookie(new Cookie("username", "joe"))
F.response.addCookie(new Cookie("username", "joe"))
G.response.addHeader(new Cookie("username", "joe"))
Answer: F
certification SUN 310-081 310-081 310-081 examen 310-081
NO.6 Which two prevent a servlet from handling requests? (Choose two.)
A.The servlet's init method returns a non-zero status.
B.The servlet's init method throws a ServletException.
C.The servlet's init method sets the ServletResponse's content length to 0.
D.The servlet's init method sets the ServletResponse's content type to null.
E.The servlet's init method does NOT return within a time period defined by the servlet container.
Answer: BE
certification SUN 310-081 310-081 310-081 certification 310-081 310-081
NO.7 Which three are valid URL mappings to a servlet in a web deployment descriptor? (Choose three.)
A.*/*
B./*.do
C.MyServlet
D./MyServlet
E./MyServlet/*
F.MyServlet/*.jsp
Answer: BDE
certification SUN certification 310-081 310-081 310-081 examen 310-081
NO.8 For a given ServletResponse response, which retrieves an object for writing binary data?
A.response.getWriter()
B.response.getOutputStream()
C.response.getOutputWriter()
D.response.getWriter().getOutputStream()
E.response.getWriter(Writer.OUTPUT_BINARY)
Answer: B
SUN certification 310-081 310-081
NO.9 Given an HttpServletRequest request, which retrieves an object of type Account with an ID of
"account"?
A.Account account = request.getResource("account");
B.Account account = request.getAttribute("account");
C.Account account = request.getParameter("account");
D.Account account = (Account)request.getResource("account");
E.Account account = (Account)request.getAttribute("account");
F.Account account = (Account)request.getParameter("account");
Answer: E
SUN certification 310-081 certification 310-081 310-081 310-081
NO.10 For a given ServletResponse response, which two retrieve an object for writing text data? (Choose
two.)
A.response.getWriter()
B.response.getOutputStream()
C.response.getOutputWriter()
D.response.getWriter().getOutputStream()
E.response.getWriter(Writer.OUTPUT_TEXT)
lled with the attribute skip-body=true.
Answer: AB
certification SUN 310-081 310-081
NO.11 For an HttpServletResponse response, which two create a custom header? (Choose two.)
A.response.setHeader("X-MyHeader", "34");
B.response.addHeader("X-MyHeader", "34");
C.response.setHeader(new HttpHeader("X-MyHeader", "34"));
D.response.addHeader(new HttpHeader("X-MyHeader", "34"));
E.response.addHeader(new ServletHeader("X-MyHeader", "34"));
F.response.setHeader(new ServletHeader("X-MyHeader", "34"));
Answer: AB
SUN 310-081 310-081 certification 310-081 certification 310-081
NO.12 Place the code snippets onto the first line to form a directive to use a custom tag library in a JSP page.
Answer:
NO.13 Under what two circumstances is the setJspBody method NOT called in a tag class that implements the
SimpleTag interface? (Choose two.)
A.The tag is invoked without a body.
B.The doTag method throws an exception.
C.The element has the value empty.
D.The tag is called with the attribute skip-body=true.
Answer: AC
SUN examen certification 310-081 310-081
NO.14 Place the code snippets in the proper order to construct the JSP code to include dynamic content into
a JSP page at request-time.
Answer:
NO.15 Given a request from mybox.example.com, with an IP address of 10.0.1.11 on port 33086, place the
appropriate ServletRequest methods onto their corresponding return values.
NO.16 A developer wants to use EL to invoke a function using ${my:bloof("foof")}.
Which is always true?
A.The method invoked by this function must be static.
B.The function class must implement the Function interface.
C.The expression is NOT a valid EL expression for invoking a function.
D.The function must be declared in a web.xml file using the <function> element.
E.The function class must have a method with the signature:
Answer: A
certification SUN certification 310-081 310-081 examen 310-081 310-081 examen
NO.17 Which retrieves all cookies sent in a given HttpServletRequest request?
A.request.getCookies()
B.request.getAttributes()
C.request.getSession().getCookies()
D.request.getSession().getAttributes()
Answer: A
SUN certification 310-081 310-081 310-081
NO.18 Place the events in the order they occur.
Answer:
NO.19 Given a servlet OrderServlet mapped to processorder, and a form declaration in HTML:
What OrderServlet method is invoked as a result of this form submission?
A.doGet
B.doPut
C.doPost
D.doTrace
E.doSubmit
Answer: A
SUN 310-081 310-081 examen
NO.20 A collection of products is stored in the ServletContext in an attribute called catalog.
Which JSTL code structure iterates over each product in the collection and prints out the names of the
products in an un-ordered list?
A.<ul>
<c:for var='product' items='${catalog}'>
<li><%= product.getName() %></li>
</c:for>
</ul>
B.<ul>
<c:for id='product' collection='${catalog}'>
<li><%= product.getName() %></li>
</c:for>
</ul>
C.<ul>
<c:forEach var='product' items='${catalog}'>
<li><%= product.getName() %></li>
</c:forEach>
</ul>
D.<ul>
<c:forEach id='product' collection='${catalog}'>
<li><%= product.getName() %></li>
</c:forEach>
</ul>
Answer: C
SUN 310-081 310-081 examen certification 310-081
NO.21 A web resource called foo.jsp requires two request parameters (P1 and P2). Construct the JSP code
to forward to the foo.jsp resource.
Answer:
NO.22 Given:
Which retrieves the binary input stream on line 13?
A.request.getWriter();
B.request.getReader();
C.request.getInputStream();
D.request.getResourceAsStream();
E.request.getResourceAsStream(ServletRequest.REQUEST);
Answer: C
SUN examen 310-081 310-081 310-081 310-081 examen
NO.23 Given:
Which two are true? (Choose two.)
A.The foo initialization parameter CANNOT be set programmatically.
B.Compilation fails because getInitParameter returns type Object.
C.The foo initialization parameter is NOT a servlet initialization parameter.
D.Compilation fails because ServletContext does NOT have a getInitParameter method.
E.The foo parameter must be defined within the <servlet> element of the deployment descriptor.
F.The foo initialization parameter can also be retrieved using getServletConfig().getInitParameter("foo").
Answer: AC
SUN certification 310-081 certification 310-081 310-081
NO.24 Click the Exhibit button.
Which statement, inserted at line 11, retrieves the text from the second text field?
A.second = request.getParameter("foo");
B.second = request.getParameter("foo", 1);
C.second = request.getParameter("foo", 2);
D.second = request.getParameters("foo")[1];
E.second = request.getParameterValues("foo")[1];
Answer: E
certification SUN 310-081 310-081 310-081 certification 310-081
NO.25 Given a header in an HTTP request:
X-Retries: 4
Which two retrieve the value of the header from a given ServletRequest request? (Choose two.)
A.request.getHeader("X-Retries")
B.request.getIntHeader("X-Retries")
C.request.getRequestHeader("X-Retries")
D.request.getHeaders("X-Retries").get(0)
E.request.getRequestHeaders("X-Retries").get(0)
Answer: AB
SUN examen 310-081 examen 310-081 examen 310-081 310-081 examen 310-081
NO.26 Which two are characteristics of the Intercepting Filter pattern? (Choose two.)
A.It provides centralized request handling for incoming requests.
B.It forces resource authentication to be distributed across web components.
C.It reduces coupling between presentation-tier clients and underlying business services.
D.It can be added and removed unobtrusively, without requiring changes to existing code.
E.It allows preprocessing and postprocessing on the incoming requests and outgoing responses.
Answer: DE
certification SUN 310-081 310-081 310-081 examen
NO.27 Which HTTP method represents a request for information about the supported methods on an HTTP
server?
A.GET
B.INFO
C.HEAD
D.TRACE
E.OPTIONS
Answer: E
SUN certification 310-081 certification 310-081 310-081
NO.28 Which two are valid values for the <transport-guarantee> element inside a <security-constraint>
element of a web application deployment descriptor? (Choose two.)
A.NULL
B.SECURE
C.INTEGRAL
D.ENCRYPTED
E.CONFIDENTIAL
Answer: CE
SUN 310-081 examen 310-081 310-081 310-081 examen
NO.29 Given the definition of MyObject and that an instance of MyObject is bound as a session attribute:
Which is true?
A.Only a single instance of MyObject may exist within a session.
B.The unbound method of the MyObject instance is called when the session to which it is bound times
out.
C.The com.example.MyObject must be declared as a servlet event listener in the web application
deployment descriptor.
D.The valueUnbound method of the MyObject instance is called when the session to which it is bound
times out.
Answer: D
SUN 310-081 310-081 310-081 examen 310-081
NO.30 Which two HTTP methods are used to process form data in a servlet? (Choose two.)
A.doGet
B.doPut
C.doPost
D.doTrace
E.doSubmit
F.doProcess
Answer: AC
certification SUN certification 310-081 certification 310-081 certification 310-081
没有评论:
发表评论