單項選擇題

Your web page includes a Java SE v1.5 applet with the following declaration:
11.<object classid=’clsid:CAFEEFAC-0015-0000-0000-ABCDEFFEDCBA’
12.width=’200’ height=’200’>
13.<param name=’code’ value=’Applet.class’ />
14.</object>
Which HTTP method is used to retrieve the applet code?()

A.GET
B.PUT
C.POST
D.RETRIEVE


您可能感興趣的試卷

你可能感興趣的試題

1.單項選擇題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"))

2.單項選擇題

You need to create a JavaBean object that is used only within the current JSP page. It must NOT beaccessible to any other page including those that this page might import.
Which JSP standard action canaccomplish this goal?()

A.<jsp:useBean id=’pageBean’ type=’com.example.MyBean’ />
B.<jsp:useBean id=’pageBean’ class=’com.example.MyBean’ />
C.<jsp:makeBean id=’pageBean’ type=’com.example.MyBean’ />
D.<jsp:makeBean id=’pageBean’ class=’com.example.MyBean’ />

4.單項選擇題Which JSP standard action can be used to import content from a resource called foo.jsp?()

A.<jsp:import file=’foo.jsp’ />
B.<jsp:import page=’foo.jsp’ />
C.<jsp:include page=’foo.jsp’ />
D.<jsp:include file=’foo.jsp’ />

5.多項選擇題For a given ServletResponse response,which two retrieve an object for writing text data?()

A.response.getWriter()
B.response.getOutputStream()
C.response.getOutputWriter()
D.response.getWriter().getOutputStream()
E.response.getWriter(Writer.OUTPUT_TEXT)

最新試題

Which ensures that a JSP response is of type "text/plain"?()

題型:單項選擇題

Given tutorial.jsp:2.EL Tutorial3.Example 14.5.Dear ${my:nickname(user)}6.Which, when added to the web application deployment descriptor,ensures that line 5 is included verbatimin the JSP output?()

題型:單項選擇題

Which is a benefit of precompiling a JSP page?()

題型:單項選擇題

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?()

題型:單項選擇題

You need to create a JSP that generates some JavaScript code to populate an array of strings used on the client-side.Which JSP code snippet will create this array?()

題型:單項選擇題

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 indicates a symbolic name of the next view. From this name, the FrontController servlet looks up the JSP URL in a configuration table. This URL might be an absolute path or apath relative to the current request. Next, the Front Controller servlet must send the request to this JSP togenerate the view. Assume that the servlet variable request is assigned the current HttpServletRequestobject and the variable context is assigned the webapp’s ServletContext. Which code snippet of the FrontController servlet accomplishes this goal?()

題型:單項選擇題

Which element of a web application deployment descriptor  element is required?()

題型:單項選擇題

Click the 'Select and Place' button.Place the events in the order they occur.

題型:問答題

Click the ’Select and Place’ button.Place the events in the order they occur.

題型:問答題

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?()

題型:多項選擇題