网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

You want to create a valid directory structure for your Java EE web application, and you want to put yourweb application into a WAR file called MyApp.war. Which two are true about the WAR file?()

  • A、At deploy time, Java EE containers add a directory called META-INF directly into the MyApp directory.
  • B、At deploy time, Java EE containers add a file called MANIFEST.MF directly into the MyApp directory.
  • C、It can instruct your Java EE container to verify, at deploy time, whether you have properly configured your application’s classes.
  • D、At deploy time, Java EE containers add a directory call META-WAR directly into the MyApp directory.

参考答案

更多 “ You want to create a valid directory structure for your Java EE web application, and you want to put yourweb application into a WAR file called MyApp.war. Which two are true about the WAR file?()A、At deploy time, Java EE containers add a directory called META-INF directly into the MyApp directory.B、At deploy time, Java EE containers add a file called MANIFEST.MF directly into the MyApp directory.C、It can instruct your Java EE container to verify, at deploy time, whether you have properly configured your application’s classes.D、At deploy time, Java EE containers add a directory call META-WAR directly into the MyApp directory.” 相关考题
考题 You create a Web application for your company‘s intranet. You want to enable users to customize their versions of the intranet home page. You create sections of content as Web Parts. You need to ensure that users can customize content at any time.Which two code segments should you use?()A.B.C.D.

考题 You create Web sites for your company. You apply a consistent design to the pages and controls of the Web sites. You need to make style changes to all of the Web sites on the Web server. You want to achieve this goal without having to edit the individual pages on each Web site.Which two actions should you perform?()A. Place a theme in the App_Themes directory under the application root directory.B. Place a theme under an ASP.NETClientFiles folder under the ASP.NET installation directory.C. Assign a theme by setting the %@ Page Theme=... % directive to the name of the application theme.D. Assign a theme by specifying the pages theme=.../ section in the Web.config file.

考题 Given a portion of a valid Java EE web application’s directory structure: MyApp | |-- File1.html | |-- Directory1 ||-- File2.html| |-- META-INF |-- File3.html You want to know whether File1.html, File2.html, and/or File3.html will be directly accessible by your webclient’s browsers. Which statement is true?()A、All three files are directly accessible.B、Only File1.html is directly accessible.C、Only File2.html is directly accessible.D、Only File3.html is directly accessible.E、Only File1.html and File2.html are directly accessible.

考题 Which the two are true regarding a web application class loader?()A、 A web application may override the web container’s implementation classesB、 A web application running in a J2EE product may override classes in the javax.* namespaceC、 A web application class loader may NOT override any classes in the java.* and javax.*  namespaceD、 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 getResourceE、 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

考题 As an administrator at Cer-tech .com, you install Web server (IIS) role on a server that runs WindowsServer 2008. You created a new site called Cer-tech .com. You need to install an application on thewebsite called web content. You copy the application to the server. What should you do to add theapplication on the website?()A、Create a virtual directory and copy the website contents in it. Copy the application in the directory andinstall itB、Execute appcmd command on the command prompt on the serverC、Open the IIS Manager Console and select the website. Select Add ApplicationD、Execute appcmd -t on the command prompt on the server

考题 You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. You plan to deploy the application to a test server.  You need to ensure that during the initial request to the application, the code-behind files for the Web pages are compiled. You also need to optimize the performance of the application.  Which code fragment should you add to the Web.config file?()A、compilation debug="true" B、compilation debug="false" C、compilation debug="true" batch="true" D、compilation debug="false" batch="false"

考题 Given a portion of a valid Java EE web application’s directory structure:MyApp | |--Directory1 ||--File1.html| |--META-INF|  |--File2.html| |--WEB-INF |--File3.html You want to know whether File1.html, File2.html,and/or File3.html is protected from direct access by yourweb client’s browsers. What statement is true?()A、All three files are directly accessible.B、Only File1.html is directly accessible.C、Only File2.html is directly accessible.D、Only File3.html is directly accessible.

考题 After a merger with another small business, your company has inherited a legacy WAR file but the originalsource files were lost. After reading the documentation of that web application,you discover that the WARfile contains a useful tag library that you want to reuse in your own webapp packaged as a WAR file. What do you need to do to reuse this tag library?()A、Simply rename the legacy WAR file as a JAR file and place it in your webapp’s library directory.B、Unpack the legacy WAR file, move the TLD file to the META-INF directory, repackage the whole thingas a JAR file, and place that JAR file in your webapp’s library directory.C、Unpack the legacy WAR file, move the TLD file to the META-INF directory, move the class files to thetop-level directory, repackage the whole thing as a JAR file, and place that JAR file in your webapp’slibrary directory.D、Unpack the legacy WAR file, move the TLD file to the META-INF directory, move the class files to thetop-level directory, repackage the WAR, and place that WAR file in your webapp’s WEB-INF directory.

考题 You want to create a valid directory structure for your Java EE web application, and your application usestag files and a JAR file. Which three must be located directly in your WEB-INF directory(NOT in asubdirectory of WEB-INF)?()A、The JAR fileB、A directory called libC、A directory called tagsD、A directory called TLDsE、A directory called classesF、A directory called META-INF

考题 Which 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.* namespaces.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.

考题 Which the two about WAR files are true?()A、 WAR files must be located in the web application library directory.B、 WAR files must contain the web application deployment descriptor.C、 WAR files must be created by using archive tools to designed specifically for that purpose. D、 The web container must serve the content of any META-INF directory located in a WAR file.E、 The web container must allow access to resources in JARs in the web application library directory

考题 You deployed a Java EE Shared Library and want to use it from an application that is also deployed on the same cluster.    Which two manifest attributes must be specified at a minimum with corresponding values in the deployment descriptor of the application that requires?()A、Implementation-VersionB、Specification-VersionC、Extension-Name  D、Specification-VendorE、Implementation-Vendor

考题 You create Web sites for your company. You apply a consistent design to the pages and controls of the Web sites. You need to make style changes to all of the Web sites on the Web server. You want to achieve this goal without having to edit the individual pages on each Web site. Which two actions should you perform? ()A、Place a theme in the App_Themes directory under the application root directory.B、Place a theme under an ASP.NETClientFiles folder under the ASP.NET installation directory.C、Assign a theme by setting the %@ Page Theme="..." % directive to the name of the application theme.D、Assign a theme by specifying the pages theme="..."/ section in the Web.config file.

考题 You are developing an ASP.NET application by using Visual Studio 2010. You need to interactively debug the entire application. Which two actions should you perform? ()A、Set the Debug attribute of the compilation node of the web.config file to true.B、Add a DebuggerDisplay attribute to the code-behind file of the page that you want to debug.C、Select the ASP.NET debugger option in the project properties.D、Define the DEBUG constant in the project settings.

考题 You create a Web Form. The Web Form allows users to log on to a Web site. You implement the login logic using a Login control named Login1. The membership data for the application is stored in a SQL Express database in the App_Data directory. You need to configure your application so that the membership data is stored in a local Microsoft SQL Server database. You add the following code segment to the Web.config file. Which two additional actions should you perform?()A、Use Aspnet_regsql.exe to create the Microsoft SQL Server database.B、Set Login1's MembershipProvider property to MySqlProviderConnection.C、Add the following code segment to the Web.config file.connectionStrings add name="MySqlProviderConnection" connectionString="valid connection string" //connectionStringsD、Add the following code segment to the Web.config file.appSettingsadd key="MySqlProviderConnection" value="valid connection string" //appSettingsE、In the ASP.NET configuration settings within IIS, ensure that Role Management Enabled is selected.F、Use the Web Site Administration Tool to select AspNetSqlMembershipProvider as the membership provider for your application.

考题 Windows Communication Foundation (WCF) service will be hosted in Microsoft Internet Information Services (IIS).You create a new application in IIS to host this service and copy the service DLL to the bin directory of the application.You need to complete the deployment of this service to IIS. What should you do next?()A、Create an asmx file and add a @ServiceHost directive to this file. Copy the file to the root of the application directory.B、Create an .asmx file and add a @Register directive to this file. Copy the file to the bin directoyy of the application.C、Create a svc file and add a @ServiceHost directive to this file. Copy the file to the root of the application directory.D、Create a .svc file and add a @Register directive to this file. Copy the file to the bin directory of the application.

考题 多选题Which the two about WAR files are true?()AWAR files must be located in the web application library directory.BWAR files must contain the web application deployment descriptor.CWAR files must be created by using archive tools to designed specifically for that purpose.DThe web container must serve the content of any META-INF directory located in a WAR file.EThe web container must allow access to resources in JARs in the web application library directory

考题 多选题You want to create a valid directory structure for your Java EE web application, and you want to put yourweb application into a WAR file called MyApp.war. Which two are true about the WAR file?()AAt deploy time, Java EE containers add a directory called META-INF directly into the MyApp directory.BAt deploy time, Java EE containers add a file called MANIFEST.MF directly into the MyApp directory.CIt can instruct your Java EE container to verify, at deploy time, whether you have properly configured your application’s classes.DAt deploy time, Java EE containers add a directory call META-WAR directly into the MyApp directory.

考题 多选题You want to create a valid directory structure for your Java EE web application, and you want to put yourweb application into a WAR file called MyApp.war. Which two are true about the WAR file?()AAt deploy time, Java EE containers add a directory called META-INF directly into the MyApp directory.BAt deploy time, Java EE containers add a file called MANIFEST.MF directly into the MyApp directory.CIt can instruct your Java EE container to verify, at deploy time, whether you have properly configured your application’s classes.DAt deploy time, Java EE containers add a directory call META-WAR directly into the MyApp directory.

考题 多选题You create a Web Form. The Web Form allows users to log on to a Web site. You implement the login logic using a Login control named Login1. The membership data for the application is stored in a SQL Express database in the App_Data directory. You need to configure your application so that the membership data is stored in a local Microsoft SQL Server database. You add the following code segment to the Web.config file. Which two additional actions should you perform? ()AUse Aspnet_regsql.exe to create the Microsoft SQL Server database.BSet Login1's MembershipProvider property to MySqlProviderConnection.CAdd the following code segment to the Web.config file. connectionStrings add name=MySqlProviderConnection connectionString=valid connection string //connectionStringsDAdd the following code segment to the Web.config file. appSettingsadd key=MySqlProviderConnection value=valid connection string //appSettingsEIn the ASP.NET configuration settings within IIS, ensure that Role Management Enabled is selected.FUse the Web Site Administration Tool to select AspNetSqlMembershipProvider as the membership provider for your application.

考题 多选题You deployed a Java EE Shared Library and want to use it from an application that is also deployed on the same cluster.    Which two manifest attributes must be specified at a minimum with corresponding values in the deployment descriptor of the application that requires?()AImplementation-VersionBSpecification-VersionCExtension-NameDSpecification-VendorEImplementation-Vendor

考题 多选题You want to create a valid directory structure for your Java EE web application, and your application usestag files and a JAR file. Which three must be located directly in your WEB-INF directory(NOT in asubdirectory of WEB-INF)?()AThe JAR fileBA directory called libCA directory called tagsDA directory called TLDsEA directory called classesFA directory called META-INF

考题 多选题Which the two are true regarding a web application class loader?()AA web application may override the web container’s implementation classesBA web application running in a J2EE product may override classes in the javax.* namespaceCA web application class loader may NOT override any classes in the java.* and javax.*  namespaceDResources in the WAR class directory or in any of the JAR files within the library directory may  be accessed using the J2SE semantics of getResourceEResources 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

考题 单选题As an administrator at Cer-tech .com, you install Web server (IIS) role on a server that runs WindowsServer 2008. You created a new site called Cer-tech .com. You need to install an application on thewebsite called web content. You copy the application to the server. What should you do to add theapplication on the website?()A Create a virtual directory and copy the website contents in it. Copy the application in the directory andinstall itB Execute appcmd command on the command prompt on the serverC Open the IIS Manager Console and select the website. Select Add ApplicationD Execute appcmd -t on the command prompt on the server

考题 多选题Which two are true regarding a web application class loader?()AA web application may override the web container’s implementation classes.BA web application running in a J2EE product may override classes in the javax.* namespace.CA web application class loader may NOT override any classes in the java.* and javax.* namespaces.DResources 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.

考题 单选题Given a portion of a valid Java EE web application’s directory structure: MyApp | |-- File1.html | |-- Directory1 ||-- File2.html| |-- META-INF |-- File3.html You want to know whether File1.html, File2.html, and/or File3.html will be directly accessible by your webclient’s browsers. Which statement is true?()A All three files are directly accessible.B Only File1.html is directly accessible.C Only File2.html is directly accessible.D Only File3.html is directly accessible.E Only File1.html and File2.html are directly accessible.

考题 单选题Windows Communication Foundation (WCF) service will be hosted in Microsoft Internet Information Services (IIS).You create a new application in IIS to host this service and copy the service DLL to the bin directory of the application.You need to complete the deployment of this service to IIS. What should you do next?()A Create an asmx file and add a @ServiceHost directive to this file. Copy the file to the root of the application directory.B Create an .asmx file and add a @Register directive to this file. Copy the file to the bin directoyy of the application.C Create a svc file and add a @ServiceHost directive to this file. Copy the file to the root of the application directory.D Create a .svc file and add a @Register directive to this file. Copy the file to the bin directory of the application.