A developer has created a web application that includes a se

题目
多选题
A developer has created a web application that includes a servlet for each use case in the application.These servlets have become rather difficult to maintain because the request processing methods havebecome very large. There is also common processing code in many servlets because these use cases arevery similar. Which two design patterns can be used together to refactor and simplify this web application?()
A

Proxy

B

View Helper

C

Front Controller

D

Session Facade

E

Business Delegate

F

Model-View-Controller

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

第1题:

Squeaky Beans Inc. hired an outside consultant to develop their web application. To finish the job quickly, the consultant created several dozen JSP pages that directly communicate with the database. The Squeaky business team has since purchased a set of business objects to model their system, and the Squeaky developer charged with maintaining the web application must now refactor all the JSPs to work with the new system.  Which pattern can the developer use to solve this problem?()

  • A、 Transfer Object
  • B、 Service Locator
  • C、 Intercepting Filter
  • D、 Business Delegate

正确答案:D

第2题:

Which ONE of the following statements about Domino Enterprise server is true?()

  • A、Can host Active Server Pages Web sites
  • B、Can host PHP Web sites
  • C、Includes a DB2 server
  • D、Includes an integrated Web application server

正确答案:D

第3题:

A developer is designing a web application that must verify for each request: The originating request is froma trusted network. The client has a valid session.The client has been authenticated. Which design pattern provides a solution in this situation?()

  • A、Transfer Object
  • B、Session Facade
  • C、Intercepting Filter
  • D、Template Method
  • E、Model-View-Controller

正确答案:C

第4题:

You are the desktop administrator for your company. Your company’s software developers use Windows XP Professional and IIS on their client computers to develop Web-based applications. All client computers use Microsoft Internet Explorer 6. 0 or later as their Web browser. One of the developers reports that he can no longer access the Web-based application on his desktop by using his Web browser. When you attempt to access the application by using your Web browser, you receive the following error message: “Cannot find server or DNS Error.” You verify that the World Wide Web Publishing Service is started on the developer’s computer. You also verify that you are using the correct URL to access the developer’s computer by using your Web browser. You need to ensure that the developer can access the Web application by using his Web browser. How should you configure the developer’s computer?() 

  • A、Start the default Web site.
  • B、Start the IIS Admin Service.
  • C、Run the IPconfig /registerdns command.
  • D、In the default Web site properties,disable the host header setting.

正确答案:A

第5题:

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. Which design pattern provides a solution for this problem?()

  • A、 Flyweight
  • B、 Transfer Object
  • C、 Service Locator
  • D、 Dispatcher View
  • E、 Business Delegate
  • F、 Model-View-Controller

正确答案:B

第6题:

You are migrating a solution to Windows Azure.   The solution includes a web application and a business logic layer.  The web application runs on three dual-core servers.  The business logic layer runs on two quad-core servers.   The Windows Azure application must match or exceed the current hardware specifications.  You need to recommend role instance sizes that minimize cost.  What should you recommend?()

  • A、 Small for the web application and Medium for the business logic layer
  • B、 Small for the web application and Large for the business logic layer
  • C、 Medium for the web application and Large for the business logic layer
  • D、 Large for the web application and Extra Large for the business logic layer

正确答案:C

第7题:

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 enterprise beans. Which pattern should be used to eliminate this duplicatecode?()

  • A、Transfer Object
  • B、Front Controller
  • C、Service Locator
  • D、Intercepting Filter
  • E、Business Delegate
  • F、Model-View-Controller

正确答案:C

第8题:

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

第9题:

A developer is designing a web application that makes many fine-grained remote data requests for eachclient request. During testing, the developer discovers that the volume of remote requests significantlydegrades performance of the application. Which design pattern provides a solution for this problem?()

  • A、Flyweight
  • B、Transfer Object
  • C、Service Locator
  • D、Dispatcher View
  • E、Business Delegate
  • F、Model-View-Controller

正确答案:B

第10题:

You work as an application developer at Certkiller .com. You are currently in theprocess of reviewing an application that was created by a fellow developer.The application that you are reviewing includes a declaration for a collection named EmployeeList, which stores Employee objects. The declaration is shown below: public class EmployeeList : Enumerator, IEnumerable { // Class implementation } You require the ability to iterate through the EmployeeList with minimum development effort.What should you do?()

  • A、 Utilize the switch statement
  • B、 Utilize the dowhile statement
  • C、 Utilize the foreach statement
  • D、 Utilize the if statement

正确答案:C

更多相关问题