itgle.com

多选题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 direct

题目
多选题
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 file

B

A directory called lib

C

A directory called tags

D

A directory called TLDs

E

A directory called classes

F

A directory called META-INF


相似考题
更多“多选题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 direct”相关问题
  • 第1题:

    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.

    正确答案:B

  • 第2题:

    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 file
    • B、A directory called lib
    • C、A directory called tags
    • D、A directory called TLDs
    • E、A directory called classes
    • F、A directory called META-INF

    正确答案:B,C,E

  • 第3题:

    In which three directories, relative to a web application’s root, may a tag library descriptor file reside when deployed directly into a web application?()

    • A、 /WEB-INF
    • B、 /META-INF
    • C、 /WEB-INF/tlds
    • D、 /META-INF/tlds
    • E、 WEB-INF/resources
    • F、 /META-INF/resources

    正确答案:A,C,E

  • 第4题:

    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

    正确答案:B,E

  • 第5题:

    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.

    正确答案:B,D

  • 第6题:

    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" /></connectionStrings>
    • D、Add the following code segment to the Web.config file. <appSettings><add key="MySqlProviderConnection" value="valid connection string" /></appSettings>
    • E、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.

    正确答案:B,D

  • 第7题:

    多选题
    You are developing several tag libraries that will be sold for development of third-party web applications.You are about to publish the first three libraries as JAR files: container-tags.jar,advanced-html-form-tags.jar, and basic-html-form-tags.jar. Which two techniques are appropriate for packaging the TLD files forthese tag libraries?()
    A

    The TLD must be located within the WEB-INF directory of the JAR file.

    B

    The TLD must be located within the META-INF directory of the JAR file.

    C

    The TLD must be located within the META-INF/tld/ directory of the JAR file.

    D

    The TLD must be located within a subdirectory of WEB-INF directory of the JAR file.

    E

    The TLD must be located within a subdirectory of META-INF directory of the JAR file.


    正确答案: D,B
    解析: 暂无解析

  • 第8题:

    多选题
    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 /></connectionStrings>

    D

    Add the following code segment to the Web.config file. <appSettings><add key=MySqlProviderConnection value=valid connection string /></appSettings>

    E

    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.


    正确答案: F,D
    解析: 暂无解析

  • 第9题:

    多选题
    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


    正确答案: E,B
    解析: 暂无解析

  • 第10题:

    多选题
    In which two web application directories can dependent classes and libraries be located? ()
    A

    /WEB-INF/lib as a JAR file

    B

    /META-INF/lib as a JAR file

    C

    /classes as compiled class files

    D

    /WEB-INF/lib as compiled class files

    E

    /WEB-INF/classes as compiled class files

    F

    /META-INF/classes as compiled class files


    正确答案: A,E
    解析: 暂无解析

  • 第11题:

    单选题
    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 the top-level directory, repackage the WAR, and place that WAR file in your webapp’s WEB-INF directory.


    正确答案: C
    解析: 暂无解析

  • 第12题:

    多选题
    In which three directories, relative to a web application’s root, may a tag library descriptor file reside whendeployed directly into a web application?()
    A

    /WEB-INF

    B

    /META-INF

    C

    /WEB-INF/tlds

    D

    /META-INF/tlds

    E

    /WEB-INF/resources

    F

    /META-INF/resources


    正确答案: A,D
    解析: 暂无解析

  • 第13题:

    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.

    正确答案:C

  • 第14题:

    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.

    正确答案:C,D

  • 第15题:

    In which two web application directories can dependent classes and libraries be located? ()

    • A、 /WEB-INF/lib as a JAR file
    • B、 /META-INF/lib as a JAR file
    • C、 /classes as compiled class files
    • D、 /WEB-INF/lib as compiled class files
    • E、 /WEB-INF/classes as compiled class files
    • F、 /META-INF/classes as compiled class files

    正确答案:A,E

  • 第16题:

    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.

    正确答案:A,C

  • 第17题:

    You are creating a Web application that will run on an intranet. The Web application reads comma-delimited text files. The text files reside in a subdirectory below the Web application's root directory. Users must not be able to navigate directly to these files in a Web browser unless they are members of the Accounting role. You need to write an ASP.NET HTTP handler that will use the FileAuthorizationModule class. Which form of authentication should you use?()

    • A、 Anonymous
    • B、 Certificate
    • C、 Forms
    • D、Microsoft Windows Integrated Security

    正确答案:D

  • 第18题:

    多选题
    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


    正确答案: D,C
    解析: 暂无解析

  • 第19题:

    多选题
    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.


    正确答案: A,C
    解析: 暂无解析

  • 第20题:

    多选题
    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 file

    B

    A directory called lib

    C

    A directory called tags

    D

    A directory called TLDs

    E

    A directory called classes

    F

    A directory called META-INF


    正确答案: F,D
    解析: 暂无解析

  • 第21题:

    多选题
    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.


    正确答案: C,D
    解析: 暂无解析

  • 第22题:

    多选题
    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.


    正确答案: B,A
    解析: 暂无解析

  • 第23题:

    单选题
    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.


    正确答案: D
    解析: 暂无解析