SCWCD(310-083)

多选题Given that www.example.com/SCWCDtestApp is a validly deployed Java EE web application and that all ofthe JSP files specified in the requests below exist in the locations specified. Which two requests,issuedfrom a browser,will return an HTTP 404 error?(

题目
多选题
Given that www.example.com/SCWCDtestApp is a validly deployed Java EE web application and that all ofthe JSP files specified in the requests below exist in the locations specified. Which two requests,issuedfrom a browser,will return an HTTP 404 error?()
A

http://www.example.com/SCWCDtestApp/test.jsp

B

http://www.example.com/SCWCDtestApp/WEB-INF/test.jsp

C

http://www.example.com/SCWCDtestApp/WEB-WAR/test.jsp

D

http://www.example.com/SCWCDtestApp/Customer/test.jsp

E

http://www.example.com/SCWCDtestApp/META-INF/test.jsp

F

http://www.example.com/SCWCDtestApp/Customer/Update/test.jsp

如果没有搜索结果,请直接 联系老师 获取答案。
如果没有搜索结果,请直接 联系老师 获取答案。
相似问题和答案

第1题:

The Hypertext Transfer Protocol , the Web's (请作答此空) protocol , is at the heart of the Web. HTTP is implemented in two programs : a ( ) program and a server program . The client program and server program executing on different end systems , talk to each other by ( ) HTTP messages . HTTP defines how Web clients request Web pages from servers and how servers transfer web pages to clients . when a user ( ) a web page , the browser sends http request messages for the objects in the page to the server . The server ( ) the requests and responds with http response messages that contain the objects .

A.transport-layer
B.application-layer
C.network-layer
D.link-layer

答案:B
解析:
Web的应用层协议是超文本传输协议,是web核心。HTTP在两类程序(客户端程序、服务器端程序)中执行。客户端程序、服务器端程序在不同的终端系统中执行,通过交换HTTP消息来进行交互。HTTP定义了Web客户端如何从服务器端请求Web页面以及服务器端如何传送Web页面到服务器。当用户请求一个web页面,浏览器发送页面对象的http请求给服务器。服务器接收请求并用包含对象的http消息进行响应。

第2题:

The Hypertext Transfer Protocol,the Web's(请作答此空)protocol,is at the heart of the Web.HTTP is implemented in two programs:a( )program and a server program.The client program and server program executing on different end systems,talk to each other by( )HTTP messages.HTTP defines how Web clients request Web pages from servers and how servers transfer web pages to clients.when a user( )a web page,the browser sends http request messages for the objects in the page to the server.The server( )the requests and responds with http response messages that contain the objects.

A.transport-layer
B.application-layer
C.network-layer
D.link-layer

答案:B
解析:
Web的应用层协议是超文本传输协议,是web核心。HTTP在两类程序(客户端程序、服务器端程序)中执行。客户端程序、服务器端程序在不同的终端系统中执行,通过交换HTTP消息来进行交互。HTTP定义了Web客户端如何从服务器端请求Web页面以及服务器端如何传送Web页面到服务器。当用户请求一个web页面,浏览器发送页面对象的http请求给服务器。服务器接收请求并用包含对象的http消息进行响应。

第3题:

Giventhatwww.example.com/SCWCDtestAppisavalidlydeployedJavaEEwebapplicationandthatalloftheJSPfilesspecifiedintherequestsbelowexistinthelocationsspecified.Whichtworequests,issuedfromabrowser,willreturnanHTTP404error?()

A.http://www.example.com/SCWCDtestApp/test.jsp

B.http://www.example.com/SCWCDtestApp/WEB-INF/test.jsp

C.http://www.example.com/SCWCDtestApp/WEB-WAR/test.jsp

D.http://www.example.com/SCWCDtestApp/Customer/test.jsp

E.http://www.example.com/SCWCDtestApp/META-INF/test.jsp

F.http://www.example.com/SCWCDtestApp/Customer/Update/test.jsp


参考答案:B, E

第4题:

A web application contains a tag file called beta.tag in /WEB-INF/tags/alpha. A JSP page called sort.jspexists in the web application and contains only this JSP code: 1.<%@ taglib prefix="x" 2.tagdir="/WEB-INF/tags/alpha" %> 3. The sort.jsp page is requested. Which two are true?()

  • A、Tag files can only be accessed using a tagdir attribute.
  • B、The sort.jsp page translates successfully and invokes the tag defined by beta.tag.
  • C、The sort.jsp page produces a translation error because a taglib directive must always have a uriattribute.
  • D、Tag files can only be placed in /WEB-INF/tags, and NOT in any subdirectories of /WEB- INF/tags.
  • E、The tagdir attribute in line 2 can be replaced by a uri attribute if a TLD referring to beta.tag is createdand added to the web application.

正确答案:B,E

第5题:

You need to create a servlet filter that stores all request headers to a database for all requests to the webapplication’s home page "/index.jsp". Which HttpServletRequest method allows you to retrieve all of therequest headers?()

  • A、String[] getHeaderNames()
  • B、String[] getRequestHeaders()
  • C、java.util.Iterator getHeaderNames()
  • D、java.util.Iterator getRequestHeaders()
  • E、java.util.Enumeration getHeaderNames()

正确答案:E

第6题:

The Hypertext Transfer Protocol,the Web's( )protocol,is at the heart of the Web.HTTP is implemented in two programs:a(请作答此空)program and a server program.The client program and server program executing on different end systems,talk to each other by( )HTTP messages.HTTP defines how Web clients request Web pages from servers and how servers transfer web pages to clients.when a user( )a web page,the browser sends http request messages for the objects in the page to the server.The server( )the requests and responds with http response messages that contain the objects.

A.host
B.user
C.client
D.guest

答案:C
解析:
Web的应用层协议是超文本传输协议,是web核心。HTTP在两类程序(客户端程序、服务器端程序)中执行。客户端程序、服务器端程序在不同的终端系统中执行,通过交换HTTP消息来进行交互。HTTP定义了Web客户端如何从服务器端请求Web页面以及服务器端如何传送Web页面到服务器。当用户请求一个web页面,浏览器发送页面对象的http请求给服务器。服务器接收请求并用包含对象的http消息进行响应。

第7题:

Which the two are true regarding a web application class loader?()

  • A、 A web application may override the web container’s implementation classes
  • B、 A web application running in a J2EE product may override classes in the javax.* namespace
  • C、 A web application class loader may NOT override any classes in the java.* and javax.*  namespace
  • D、 Resources in the WAR class directory or in any of the JAR files within the library directory may  be accessed using the J2SE semantics of getResource
  • E、 Resources in the WAR class directory or in any of the JAR files within the library directory  cannot be accessed using the J2SE semantics of getResource

正确答案:C,D

第8题:

The Hypertext Transfer Protocol , the Web's ( ) protocol , is at the heart of the Web. HTTP is implemented in two programs : a ( ) program and a server program . The client program and server program executing on different end systems , talk to each other by (请作答此空) HTTP messages . HTTP defines how Web clients request Web pages from servers and how servers transfer web pages to clients . when a user ( ) a web page , the browser sends http request messages for the objects in the page to the server . The server ( ) the requests and responds with http response messages that contain the objects .

A.exchanging
B.changing
C.declining
D.removing

答案:A
解析:
Web的应用层协议是超文本传输协议,是web核心。HTTP在两类程序(客户端程序、服务器端程序)中执行。客户端程序、服务器端程序在不同的终端系统中执行,通过交换HTTP消息来进行交互。HTTP定义了Web客户端如何从服务器端请求Web页面以及服务器端如何传送Web页面到服务器。当用户请求一个web页面,浏览器发送页面对象的http请求给服务器。服务器接收请求并用包含对象的http消息进行响应。

第9题:

You are designing a Windows Azure application.  The application includes two web roles and three instances of a worker role.  The web roles will send requests to the worker role through one or more Windows Azure Queues. You have the following requirements:   - Ensure that each request is processed exactly one time.   - Minimize the idle time of each worker role instance. - Maximize the reliability of request processing.   You need to recommend a queue design for sending requests to the worker role.  What should you recommend?()

  • A、 Create a single queue.  Send requests on the single queue.
  • B、 Create a queue for each web role.  Send requests on all queues at the same time.
  • C、 Create a queue for each workerrole instance.  Send requests on each worker queue in a round robin.
  • D、 Create a queue for each combination of web roles and worker role instances.  Send requests to all worker role instances based on the sending web role.

正确答案:A

第10题:

Given this fragment from a Java EE deployment descriptor: 341. 342.java.lang.Throwable  343./mainError.jsp 344. 345. 346.java.lang.ClassCastException  347./castError.jsp 348. If the web application associated with the fragment above throws a ClassCastException.Which statement is true?()

  • A、The deployment descriptor is invalid.
  • B、The container invokes mainError.jsp.
  • C、The container invokes castError.jsp.
  • D、Neither mainError.jsp nor castError.jsp is invoked.

正确答案:C

更多相关问题