当前分类: SCDCD(310-081)
问题:多选题Which the two demonstrate encapsulation of data?()AMember data have no access modifiers.BMember data can be modified directly.CThe access modifier for methods is protected.DThe access modifier to member data is private.EMethods provide for access and m...
查看答案
问题:多选题For a given Servletresponse response, which two retrieve an object for writing text data? ()Aresponse.getWriter( )Bresponse.getOutputStream( )Cresponse.getOutputWriter( )Dresponse.getWriter( ) .getOutputStream( )Eresponse.getWriter(Writer.OUTPUT_TEXT( ...
问题:多选题Which the three are valid declarations of a float?()Afloat foo = -1;Bfloat foo = 1.0;Cfloat foo = 42el:Dfloat foo = 2.02f:Efloat foo = 3.03d:...
问题:单选题Which the JSTL code snippet can be used to import content from another web resource?()A c:import url=*foo.jsp”/ B c:import page=*foo.jsp”/ C c:include url=*foo.jsp”/ D c:include page=*foo.jsp”/ E Importing cannot be done in JSTL. A standard action...
问题:单选题A developer is designing a web application that makes many fine-grained remote data requests for each client request. During testing, the developer discovers that the volume of remote requests significantly degrades performance of the application. Whic...
问题:单选题What is the result()?A 2B 4C 8D 16E The code will not compile....
问题:多选题Given a header in an HTTP request: X-Retries:4 Which two retrieve the value of the header from a given ServletRequest request? ()Arequest.getHeader (“X-Retries”)Brequest.getIntHeader (“X-Retries”)Crequest.getRequestHeader (“x-Retries”)Drequest.getHead...
问题:多选题A developer chooses to avoid using SingleThreadModel but wants to ensure that data is updated in a thread-safe manner. Which two can support this design goal?()AStore the data in a vocal variable.BStore the data in an instance variable.CStore the data ...
问题:单选题A developer wants too use EL to invoke a function using S{my:bloof(“foof”)}. Which is always true?()A The method invoked by this function must be statie.B The function class must implement the Function interface.C The expression is NOT a valid EL ex...
问题:单选题Given the HttpServlet code: getServletContext().setAttribute(“foo”, “value”); What is the result?()A The attribute foo is placed in the applicationB A ServletContextListener registered for that servlet is notifiedC A ServletAttributeListener regis...
问题:单选题Which the HTTP method represents a request for information about the supported methods on an HTTP server?()A GETB INFOC HEADD TRACEE OPTIONS...
问题:多选题Upon a user’s first visit to the website, which two operations are always performed when the getSession method is called with no arguments in a servlet?()AAll URLs returned by the server are rewritten.BAn HttpSession object is created if necessary.CThe...
问题:单选题A web application uses the HttpSession mechanism to determine if a user is “logged in”. When a user supplies a valid user name and password, an HttpSession is created for that user. The user has access to the application for only 15 minutes after logg...
问题:多选题Which three are valid URL mappings to a servlet in a web deployment descriptor? ()A*/*B/*.doCmyServletD/MyservletE/MyServlet/*FMyServlet/*.isp...
问题:多选题Which two HTTP methods are used to process from data in a servlet? ()Ado GETBdo PutCdo PostDdo TraceEdo SubmitFdo Process...
问题:单选题Which HTTP method has the characteristic that multiple indential requests may produce side effect beyond those of a single request()?A PUTB GETC INFOD POSTE HEADF TRACE...
问题:单选题A Company.com developer is designing a multi-tier web application and discovers a need to hide the details of establishing and maintaining remote communications from the client. In addition, because the business and resource tiers are distributed, the ...
问题:多选题Which two are valid declarations of char?()AChar ch = “a”;Bchar ch = “”;Cchar ch = “café”;Dchar ch = “ucafe”;Echar ch = “ucafe’;Fchar ch = “u10100’;Gchar ch = (char) true;...