当前分类: SCWCD(310-083)
问题:单选题Which path is required to be present within a WAR file?()A /classesB /index.htmlC /MANIFEST-INFD /WEB-INF/web.xmlE /WEB-INF/classes...
查看答案
问题:单选题The JSP developer wants a comment to be visible in the final output to the browser. Which comment styleneeds to be used in a JSP page?()A !-- this is a comment --B % // this is a comment %C %-- this is a comment --%D % /** this is a comment **/ %...
问题:单选题Given a Filter class definition with this method: 21.public void doFilter(ServletRequest request, 22.ServletResponse response, 23.FilterChain chain) 24.throws ServletException, IOException { 25.// insert code here 26.} Which should you insert at line 2...
问题:多选题Given: 3.class MyServlet extends HttpServlet { 4.public void doPut(HttpServletRequest req, HttpServletResponse resp) throws ServletException,IOException { 5.// servlet code here ... 26.} 27.} If the DD contains a single security constraint associated w...
问题:多选题Given: 11. 15. Which three EL expressions, inserted at line 15,are valid and evaluate to "3"?()A${vals.2}B${vals[2]}C${vals.index}D${vals[index]}E${vals}[index]F${vals[vals[index-1]]}...
问题:多选题A session-scoped attribute is stored by a servlet, and then that servlet forwards to a JSP page. Which threejsp:useBean attributes must be used to access this attribute in the JSP page?()AidBnameCbeanDtypeEscope...
问题:单选题Given a Filter class definition with this method: 21.public void doFilter(ServletRequest request, 22.ServletResponse response, 23.FilterChain chain) 24.throws ServletException, IOException { 25.// insert code here26. } Which should you insert at line 2...
问题:多选题Given: 11. 16. Which three EL expressions, inserted at line 16, are valid and evaluate to "d"?()A${map.c}B${map[c]}C${map[c]}D${map.map.b}E${map[map.b]}...
问题:多选题You need to store a floating point number,called Tsquare,in the session scope. Which two code snippetsallow you to retrieve this value?()Afloat Tsquare = session.getFloatAttribute(Tsquare);Bfloat Tsquare = (Float) session.getAttribute(Tsquare);Cfloat T...
问题:单选题You have a new IT manager that has mandated that all JSPs must be refactored to include no scritpletcode. The IT manager has asked you to enforce this. Which deployment descriptor element will satisfy thisconstraint?()A jsp-property-group. url-pattern*...
问题:多选题A web application allows the HTML title banner to be set using a servlet context initialization parametercalled titleStr. Which two properly set the title in this scenario?()Atitle${titleStr}/titleBtitle${initParam.titleStr}/titleCtitle${params[0].titl...
问题:单选题Which ensures that a JSP response is of type "text/plain"?()A %@ page mimeType=text/plain %B %@ page contentType=text/plain %C %@ page pageEncoding=text/plain %D %@ page contentEncoding=text/plain %E % response.setEncoding(text/plain); %...
问题:多选题Which two statements are true about using the isUserInRole method to implement security in a Java EEapplication?()AIt can be invoked only from the doGet or doPost methods.BIt can be used independently of the getRemoteUser method.CCan return true even w...
问题:单选题Which basic authentication type is optional for a J2EE 1.4 compliant web container?()A HTTP Basic AuthenticationB Form Based AuthenticationC HTTP Digest AuthenticationD HTTPS Client Authentication...
问题:单选题Which interface must a class implement so that instances of the class are notified after any object is addedto a session?()A javax.servlet.http.HttpSessionListenerB javax.servlet.http.HttpSessionValueListenerC javax.servlet.http.HttpSessionBindingListe...
问题:单选题To take advantage of the capabilities of modern browsers that use web standards, such as XHTML andCSS, your web application is being converted from simple JSP pages to JSP Document format. However,one of your JSPs, /scripts/screenFunctions.jsp, generat...
问题:单选题The Squeaky Bean company has decided to port their web application to a new J2EE 1.4 container. Whilereviewing the application, a developer realizes that in multiple places within the current application, nearlyduplicate code exists that finds enterpri...
问题:单选题Your IT department is building a lightweight Front Controller servlet that invokes an application logic objectwith the interface: public interface ApplicationController {public String invoke(HttpServletRequest request)} The return value of this method ...