单选题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 Squeakybusiness 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 newsystem. Which pattern can the developer use to solve this problem?()ATransfer ObjectBService LocatorCIntercepting FilterDBusiness Delegate

单选题
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 Squeakybusiness 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 newsystem. Which pattern can the developer use to solve this problem?()
A

Transfer Object

B

Service Locator

C

Intercepting Filter

D

Business Delegate


参考解析

解析: 暂无解析

相关考题:

2 Helen Bradshaw, a recent graduate with a degree in catering management, has spotted a market opportunity duringher first job with a large supermarket chain. She knows there is a growing market for distinctive, quality cakes in thebakery sections of the supermarket chains, as well as in supplying independent individual premium cake shops, andalso for catering wholesalers supplying restaurants and hotels.Helen is very determined to set up her own business under the brand name of ‘Helen’s cakes’, and has bought someequipment – industrial food mixers, ovens, cake moulds – and also rented a small industrial unit to make the cakes.Helen has created three sets of recipes – one for the premium cake shop market, one for the supermarkets and onefor the catering wholesalers but is uncertain which market to enter first. Each channel of distribution offers a differentset of challenges. The premium cake shop market consists of a large number of independent cake shops spreadthrough the region, each looking for daily deliveries, a wide product range and low volumes. The supermarkets aredemanding good quality, competitive prices and early development of a product range under their own brand name.The catering wholesalers require large volumes, medium quality and low prices.Helen has learnt that you are a consultant specialising in start-up enterprises and is looking to you for advice.Required:(a) Acting as a consultant, prepare a short report for Helen advising her on the advantages and disadvantageseach channel offers and the implications for a successful start-up. (12 marks)

The(75)page is the introductory page of a set Web pages.A.FirstB.HomeC.HeadD.Host

Dr. Wilson didn’t want to go on ____ a teacher of biology, so he changed his job and became a consultant for a farm.A. beB. beingC. to beD. with being

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 ObjectB、 Service LocatorC、 Intercepting FilterD、 Business Delegate

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, generates a JavaScript file. This file is included in severalweb forms to create screen-specific validation functions and are included in these pages with the followingstatement: 10. 11.  14. 15. Which JSP code snippet declares that this JSP Document is a JavaScript file?()A、%@ page contentType=’application/javascript’ %B、jsp:page contentType='application/javascript' /C、jsp:document contentType='application/javascript' /D、jsp:directive.page contentType='application/javascript' /E、No declaration is needed because the web form XHTML page already declares the MIME type of the /scripts/screenFunctions.jsp file in the script tag. tag.

Krstin has created a page in the videos application .which one of the following statements about pages is not true ?()A、pages are design elementsB、Pages can be full-text indexed C、pages  can be referenced by outlines or frames  D、pages  can include text,graphics ,applets,and links

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 ObjectB、Front ControllerC、Service LocatorD、Intercepting FilterE、Business DelegateF、Model-View-Controller

You are building JSP pages that have a set of menus that are visible based on a user’s security role. Thesemenus are hand-crafted by your web design team; for example, the SalesManager role has a menu in thefile /WEB-INF/html/sales-mgr-menu.html. Which JSP code snippet should be used to make this menuvisible to the user?()A、% if ( request.isUserInRole("SalesManager") ) { % %@ include file=’/WEB-INF/html/sales-mgr-menu.html’ % % } %B、jsp:if test=’request.isUserInRole("SalesManager")’ %@ include file=’/WEB-INF/html/sales-mgr-menu.html’ % /jsp:ifC、% if ( request.isUserInRole("SalesManager") ) { % . jsp:include file=’/WEB-INF/html/sales-mgr-menu.html’ / . % } %D、jsp:if test=’request.isUserInRole("SalesManager")’ jsp:include file=’/WEB-INF/html/sales-mgr-menu.html’ / /jsp:if

Given the JSP code: 10. 11. 12. 13.Hello, ${customer.title} ${customer.lastName}, welcome 14.to Squeaky Beans, Inc. 15.16.  Which three types of JSP code are used?()A、Java codeB、Template textC、Scripting codeD、Standard actionE、Expression language

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 Squeakybusiness 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 newsystem. Which pattern can the developer use to solve this problem?()A、Transfer ObjectB、Service LocatorC、Intercepting FilterD、Business Delegate

You develop a Web application that contains two master pages. You need to dynamically set the master page when a user views pages in the application. What should you do? ()A、Set Page.MasterPageFile in the Page's Page_Init event.B、Set Page.MasterPageFile in the Page's OnInit event.C、Set Page.MasterPageFile in the Page's Page_Load event.D、Set Page.MasterPageFile in the Page's Page_PreInit event.

You modify an existing Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.  You add a theme to the ASP.NET application.  You need to apply the theme to override any settings of individual controls.  What should you do?()A、In the Web.config file of the application,set the Theme attribute of the pages element to the name of the theme.B、In the Web.config file of the application,set the StyleSheetThemeattribute of the pages element to the name of the theme.C、Add a master page to the application. In the @Master directive,set the Theme attribute to the name of the theme.D、Add a master page to the application. In the @Master directive,set the StyleSheetTheme attribute to the name of the theme.

You develop a Web application that contains two master pages. You need to dynamically set the master page when a user views pages in the application. What should you do?()A、SetPage.MasterPageFile in the Page’sPage_Initevent.B、SetPage.MasterPageFile in the Page’sOnInit event.C、SetPage.MasterPageFile in the Page’sPage_Loadevent.D、SetPage.MasterPageFile in the Page’sPage_PreInitevent.

单选题I find ().Ait is difficult for them to finish the job in timeBdifficult for them to finish the job in timeCthey have much difficulty to finish the job in timeDthat difficult for them to finish the job in time

单选题A brand of cough syrup comes with a measuring cup attached so that customers can measure the proper dosage. A consultant has pointed out that this cup is unnecessary, since most customers have measuring cups at home. Since the cups increase the cost of packaging the cough syrup and reduce the total number of units that can be shipped in a standard package, the consultant advises that the company can increase its net revenue on this product (total revenue minus total costs) by selling the cough syrup without the measuring cups.  Which of the following, if true, provides the strongest evidence that the company should not follow the consultant’s advice?AStudies have shown that customers who use cough syrup without a measuring cup frequently take either too little or too much of the medicine, rendering the dosage either ineffective or, in cases of overdose, dangerous.BThe company has included a measuring cup with each bottle of cough syrup for the last 18 years.CStudies have shown that 85 percent of consumers possess at home either a measuring cup, a set of measuring spoons or both.DMany customers neglect to follow the recommended dosage of cough syrup even when the measuring cup is packaged along with the bottle of cough syrup.EShipping the cough syrup bottles without the measuring cups will provide a marginal improvement in the number of cough syrup bottles that can be shipped is a standard package.

多选题Given the JSP code: 10. 11. 12. 13.Hello, ${customer.title} ${customer.lastName}, welcome 14.to Squeaky Beans, Inc. 15.16.  Which three types of JSP code are used?()AJava codeBTemplate textCScripting codeDStandard actionEExpression language

单选题You are creating a SQL Server 2005 database for a mortgage company. The database will support a new Web-based application that will handle up to 1,000 simultaneous users. This application must quickly display the results of calculation-intensive operations, such as calculating mortgage payments and amortization schedules. You need to ensure that the database processes calculations as quickly and efficiently as possible. What should you do?()A Implement parameterized Transact-SQL queries in the application. B Implement Transact-SQL stored procedures in the database. C Implement CLR stored procedures in the database. D Implement distributed Web services.

单选题You develop a Web application that contains two master pages. You need to dynamically set the master page when a user views pages in the application. What should you do?()ASetPage.MasterPageFile in the Page’sPage_Initevent.BSetPage.MasterPageFile in the Page’sOnInit event.CSetPage.MasterPageFile in the Page’sPage_Loadevent.DSetPage.MasterPageFile in the Page’sPage_PreInitevent.

单选题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?()ATransfer ObjectBFront ControllerCService LocatorDIntercepting FilterEBusiness DelegateFModel-View-Controller

单选题You are building JSP pages that have a set of menus that are visible based on a user’s security role. Thesemenus are hand-crafted by your web design team; for example, the SalesManager role has a menu in thefile /WEB-INF/html/sales-mgr-menu.html. Which JSP code snippet should be used to make this menuvisible to the user?()A% if ( request.isUserInRole(SalesManager) ) { % %@ include file=’/WEB-INF/html/sales-mgr-menu.html’ % % } %Bjsp:if test=’request.isUserInRole(SalesManager)’ %@ include file=’/WEB-INF/html/sales-mgr-menu.html’ % /jsp:ifC% if ( request.isUserInRole(SalesManager) ) { % . jsp:include file=’/WEB-INF/html/sales-mgr-menu.html’ / . % } %Djsp:if test=’request.isUserInRole(SalesManager)’ jsp:include file=’/WEB-INF/html/sales-mgr-menu.html’ / /jsp:if

单选题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, generates a JavaScript file. This file is included in severalweb forms to create screen-specific validation functions and are included in these pages with the followingstatement: 10. 11.  14. 15. Which JSP code snippet declares that this JSP Document is a JavaScript file?()A%@ page contentType=’application/javascript’ %Bjsp:page contentType='application/javascript' /Cjsp:document contentType='application/javascript' /Djsp:directive.page contentType='application/javascript' /ENo declaration is needed because the web form XHTML page already declares the MIME type of the /scripts/screenFunctions.jsp file in the script tag. tag.

单选题基于Servlet、JSP和Java Beans的Web应用体系结构中,()从应用服务器取得控制权来执行基本的流程控制。AJSPBHTML页面CServletDView Beans

多选题Given the JSP code: 10. 11. 12. 13.Hello, ${customer.title} ${customer.lastName}, welcome 14.to Squeaky Beans, Inc. 15.16.  Which three types of JSP code are used?()AJava codeBTemplate textCScripting codeDStandard actionEExpression language

单选题You develop a Web application that contains two master pages. You need to dynamically set the master page when a user views pages in the application. What should you do? ()ASet Page.MasterPageFile in the Page's Page_Init event.BSet Page.MasterPageFile in the Page's OnInit override.CSet Page.MasterPageFile in the Page's Page_Load event.DSet Page.MasterPageFile in the Page's Page_PreInit event.

单选题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 ObjectB Service LocatorC Intercepting FilterD Business Delegate

单选题You modify an existing Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.  You add a theme to the ASP.NET application.  You need to apply the theme to override any settings of individual controls.  What should you do?()AIn the Web.config file of the application,set the Theme attribute of the pages element to the name of the theme.BIn the Web.config file of the application,set the StyleSheetThemeattribute of the pages element to the name of the theme.CAdd a master page to the application. In the @Master directive,set the Theme attribute to the name of the theme.DAdd a master page to the application. In the @Master directive,set the StyleSheetTheme attribute to the name of the theme.

单选题A consultant has been asked to do a performance analysis on a database server.  Which subsystem should the consultant first analyze and why?()ACPU,because the database replication process requires a considerable amount of CPU timeBMemory,because the buffer cache requires a large amount of memory to maintain the data in system memoryCDisk,because it is important to configure a sufficient number of disks to match the CPU processing powerDNetwork,because the data returned to the client from the server can be a large subset of the total database