单选题You have a use case in your web application that adds several session-scoped attributes. At the end of theuse case, one of these objects, the manager attribute, is removed and then it needs to decide which of theother session-scoped attributes to remov

题目
单选题
You have a use case in your web application that adds several session-scoped attributes. At the end of theuse case, one of these objects, the manager attribute, is removed and then it needs to decide which of theother session-scoped attributes to remove. How can this goal be accomplished?()
A

The object of the manager attribute should implement the HttpSessionBindingListener and it should call the removeAttribute method on the appropriate session attributes.

B

The object of the manager attribute should implement the HttpSessionListener and it should call the removeAttribute method on the appropriate session attributes.

C

The object of the manager attribute should implement the HttpSessionBindingListener and it should call the deleteAttribute method on the appropriate session attributes.

D

The object of the manager attribute should implement the HttpSessionListener and it should call the deleteAttribute method on the appropriate session attributes.


相似考题

2. Your web application requires the adding and deleting of many session attributes during a complex usecase. A bug report has come in that indicates that an important session attribute is being deleted too soonand a NullPointerException is being thrown several interactions after the fact. You have decided to create asession event listener that will log when attributes are being deleted so you can track down when theattribute is erroneously being deleted. Which listener class will accomplish this debugging goal?()A、Create an HttpSessionAttributeListener class and implement the attributeDeleted method and log the attribute name using the getName method on the event object.B、Create an HttpSessionAttributeListener class and implement the attributeRemoved method and log the attribute name using the getName method on the event object.C、Create an SessionAttributeListener class and implement the attributeRemoved method and log the attribute name using the getAttributeName method on the event object.D、Create an SessionAttributeListener class and implement the attributeDeleted method and log the attribute name using the getAttributeName method on the event object.

更多“单选题You have a use case in your web application that adds several session-scoped attributes. At the end of theuse case, one of these objects, the manager attribute, is removed and then it needs to decide which of theother session-scoped attributes to remov”相关问题
  • 第1题:

    You have a use case in your web application that adds several session-scoped attributes. At the end of theuse case, one of these objects, the manager attribute, is removed and then it needs to decide which of theother session-scoped attributes to remove. How can this goal be accomplished?()

    • A、The object of the manager attribute should implement the HttpSessionBindingListener and it should call the removeAttribute method on the appropriate session attributes.
    • B、The object of the manager attribute should implement the HttpSessionListener and it should call the removeAttribute method on the appropriate session attributes.
    • C、The object of the manager attribute should implement the HttpSessionBindingListener and it should call the deleteAttribute method on the appropriate session attributes.
    • D、The object of the manager attribute should implement the HttpSessionListener and it should call the deleteAttribute method on the appropriate session attributes.

    正确答案:A

  • 第2题:

    Which the statement is true about web container session management()?

    • A、 Access to session-scoped attributes is guaranteed to be thread-safe by the web container.
    • B、 To activate URL rewriting, the developer must use the HttpServletResponse.setURLRewriting method.
    • C、 If the web application uses HTTPS, then the web container may use the data on the HTTPS request stream to identify the client.
    • D、 The JSESSIONID cookie is stored permanently on the client so that a user may return to the web application and the web container will rejoin that session.

    正确答案:C

  • 第3题:

    You work as a database administrator for Supportcenter.cn. You want to administer your database servers, which are running on different host machines, using the Web-enabled grid control interface. You have configured the agent on the host machines. You have started the Oracle Database 10g Grid Control utility on your machine. Which two additional components would you configure to achieve this objective?()

    • A、Application Server Control
    • B、Oracle Management Service
    • C、Oracle Enterprise Manager Repository
    • D、Oracle Enterprise Manager Database Control

    正确答案:C,D

  • 第4题:

    You recently installed an application on your computer. The application is configured to automatically start. This application might cause your computer to run slower.  You need to prevent the application from auto starting without uninstalling the application.  What should you do?()

    • A、Use the Microsoft Windows Task Manager application to end the task for the application.
    • B、Use the Control Panel application to uninstall the application. Reboot the computer.
    • C、Use the Software Explorer application to disable the application. Reboot the computer.
    • D、Use the Services application to disable the Application Experience service, and then launch the application.

    正确答案:C

  • 第5题:

    Your network consists of a single Active Directory domain. The domain contains more than 300 group objects. The group objects are divided between several regional organizational units (OUs). You need to create a list of all groups that have names that begin with the word Sales. Which command should you use? ()

    • A、Dsget group
    • B、Dsquery group
    • C、Netdom query
    • D、Net group

    正确答案:B

  • 第6题:

    单选题
    Your network consists of a single Active Directory domain. The domain contains more than 300 group objects. The group objects are divided between several regional organizational units (OUs). You need to create a list of all groups that have names that begin with the word Sales. Which command should you use? ()
    A

    Dsget group

    B

    Dsquery group

    C

    Netdom query

    D

    Net group


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

  • 第7题:

    单选题
    You include the calendar class in your Hotel Booking application. Which additional form level objects will you need to create to implement this reusable component fully?()
    A

    Blocks 

    B

    Visual attributes. 

    C

    Stacked canvas. 

    D

    Nothing further needs to be created.


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

  • 第8题:

    问答题
    Practice 1  You have read the following advertisement on the Morning Post, an English newspaper.  Write an application letter to the hotel manager. Your letter should include:  (1) reasons for your application  (2) a request for an interview  You should write approximately 100 words. Do not sign your own name at the end of your letter. Use “Wang Lin” instead. You do not need to write the address.

    正确答案: 【范文】
    Dear hotel manager,
    I learnt that your hotel needed a temporary hotel receptionist on the Morning Post yesterday. I write this application letter to request an interview. The following is my brief introduction.
    I am Wang Lin, a student in Cambridge University, majoring in English linguistics. I have worked as a part--time hotel receptionist when I was in China. Therefore, I am confident of my ability to assume this responsibility. Besides that, I am good at English and French. Meanwhile, I am an open-minded, easy-going girl with pleasant appearance.
    Looking forward to your reply.
    Best wishes!
    Yours’ sincerely,
    Wang Ling
    解析: 暂无解析

  • 第9题:

    单选题
    You have a single Active Directory directory service domain. You have an application that adds Active Directory Schema attributes during installation. The attributes replicate as part of global catalog replication. Your user account is a member of the Domain Admins, Schema Admins, and Enterprise Admins global groups. You test the application and decide not to deploy it to production.  You need to ensure that the attributes that are added by the application are no longer available in Active Directory.  Using the Active Directory Schema snap-in,what should you do?()
    A

     Clear the Index this attribute in the Active Directory option for each attribute that is added by the application.

    B

     Clear the Attribute is active option for each attribute that is added by the application.

    C

     Clear the Replicate this attribute to the Global Catalog option for each attribute that is added by the application.

    D

     Clear the Allow this attribute to be shown in advanced view option for each attribute that is added by the application.


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

  • 第10题:

    单选题
    Which statement is true about web container session management?()
    A

    Access to session-scoped attributes is guaranteed to be thread-safe by the web container.

    B

    To activate URL rewriting, the developer must use the HttpServletResponse.setURLRewriting method.

    C

    If the web application uses HTTPS, then the web container may use the data on the HTTPS request stream to identify the client.

    D

    The JSESSIONID cookie is stored permanently on the client so that a user may return to the web application and the web container will rejoin that session.


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

  • 第11题:

    单选题
    A customer needs to ensure that the number of threads servicing an application does not exceed the number of database connections available to the application. What step must you take to address this situation?()
    A

    Configure a Max Threads Constraint and add your application to the list of applications for the  Constraint.

    B

    Configure a Work Manager with a Maximum Threads Constraint tied to the Connection Pool and  configuration your application to use the Work Manager.

    C

    Configure a Work Manager with a Minimum Threads Constraint tied to the Connection Pool and  configure your application to use the Work Manager.

    D

    Configure a global MaxThreads constraint and target it to the server or clusters where your  application is deployed.

    E

    Configure the startup parameter -Dwls-maxThreads to be the same as the number of  database connections configured.


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

  • 第12题:

    单选题
    Your network contains an Active Directory forest. The forest schema contains a custom attribute  for user objects.     You need to modify the custom attribute value of 500 user accounts.     Which tool should you use()
    A

    Csvde

    B

    Dsmod

    C

    Dsrm

    D

    Ldifde


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

  • 第13题:

    One of the use cases in your web application uses many session-scoped attributes. At the end of the usecase,you want to clear out this set of attributes from the session object. Assume that this static variableholds this set of attribute names: 201.private static final Set USE_CASE_ATTRS;  202.static { 203.USE_CASE_ATTRS.add("customerOID"); 204.USE_CASE_ATTRS.add("custMgrBean"); 205.USE_CASE_ATTRS.add("orderOID"); 206.USE_CASE_ATTRS.add("orderMgrBean"); 207.} Which code snippet deletes these attributes from the session object?()

    • A、session.removeAll(USE_CASE_ATTRS);
    • B、for ( String attr : USE_CASE_ATTRS ) {session.remove(attr);}
    • C、for ( String attr : USE_CASE_ATTRS ) {session.removeAttribute(attr);}
    • D、for ( String attr : USE_CASE_ATTRS ) {session.deleteAttribute(attr);}
    • E、session.deleteAllAttributes(USE_CASE_ATTRS);

    正确答案:C

  • 第14题:

    A Company.com 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 have become very large. There is also common processing code in many servlets because these use cases are very 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 Façade
    • E、 Business Delegate
    • F、 Model-View-Controller

    正确答案:C,F

  • 第15题:

    A customer needs to ensure that the number of threads servicing an application does not exceed the number of database connections available to the application. What step must you take to address this situation?()

    • A、Configure a Max Threads Constraint and add your application to the list of applications for the  Constraint.
    • B、Configure a Work Manager with a Maximum Threads Constraint tied to the Connection Pool and  configuration your application to use the Work Manager.
    • C、Configure a Work Manager with a Minimum Threads Constraint tied to the Connection Pool and  configure your application to use the Work Manager.
    • D、Configure a global MaxThreads constraint and target it to the server or clusters where your  application is deployed.
    • E、Configure the startup parameter "-Dwls-maxThreads" to be the same as the number of  database connections configured.

    正确答案:B

  • 第16题:

    Your network contains an Active Directory forest. The forest schema contains a custom attribute for  user objects.   You need to modify the custom attribute value of 500 user accounts.   Which tool should you use()

    • A、Csvde
    • B、Dsmod
    • C、Dsrm
    • D、Ldifde

    正确答案:D

  • 第17题:

    You have a single Active Directory directory service domain. You have an application that adds Active Directory Schema attributes during installation. The attributes replicate as part of global catalog replication. Your user account is a member of the Domain Admins, Schema Admins, and Enterprise Admins global groups. You test the application and decide not to deploy it to production.  You need to ensure that the attributes that are added by the application are no longer available in Active Directory.  Using the Active Directory Schema snap-in,what should you do?()

    • A、 Clear the Index this attribute in the Active Directory option for each attribute that is added by the application.
    • B、 Clear the Attribute is active option for each attribute that is added by the application.
    • C、 Clear the Replicate this attribute to the Global Catalog option for each attribute that is added by the application.
    • D、 Clear the Allow this attribute to be shown in advanced view option for each attribute that is added by the application.

    正确答案:B

  • 第18题:

    单选题
    One of the use cases in your web application uses many session-scoped attributes. At the end of the usecase,you want to clear out this set of attributes from the session object. Assume that this static variableholds this set of attribute names: 201.private static final Set USE_CASE_ATTRS;  202.static { 203.USE_CASE_ATTRS.add("customerOID"); 204.USE_CASE_ATTRS.add("custMgrBean"); 205.USE_CASE_ATTRS.add("orderOID"); 206.USE_CASE_ATTRS.add("orderMgrBean"); 207.} Which code snippet deletes these attributes from the session object?()
    A

    session.removeAll(USE_CASE_ATTRS);

    B

    for ( String attr : USE_CASE_ATTRS ) {session.remove(attr);}

    C

    for ( String attr : USE_CASE_ATTRS ) {session.removeAttribute(attr);}

    D

    for ( String attr : USE_CASE_ATTRS ) {session.deleteAttribute(attr);}

    E

    session.deleteAllAttributes(USE_CASE_ATTRS);


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

  • 第19题:

    多选题
    A session-scoped attribute is stored by a servlet, and then that servlet forwards to a JSP page. Which threejsp:useBean attributes must be used to access this attribute in the JSP page?()
    A

    id

    B

    name

    C

    bean

    D

    type

    E

    scope


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

  • 第20题:

    问答题
    Practice 3  You have read the job advertisement below in a newspaper and you want to apply for the job. Write a letter of application to the manager of the company, Mr. Meed, giving all the necessary personal information. You should write approximately 100 words.  Do not sign your own name at the end of your letter. Use“Wang Lin” instead. You do not need to write the address.

    正确答案: 【范文】
    Dear Mr. Meed,
    I read the job advertisement of your company in a newspaper. And I think the job suits me very much. Now 1’d like to introduce myself to you.
    My name is Wang Lin. I'm 24. I was awarded B. A. degree as an English major student in Beijing Foreign Studies University in 2002. During my college time, my marks range among top 5 of my peers in my school. After graduating from college, I worked as an interpreter in a trade company for three years. My boss gave me very high remarks about my work. And my easy-going personality made me build a broad network with my colleagues and customers. I think three years is enough to do the same work, and I want to try something new. So I write to apply for the position offered by your company. Hope I can hear from you soon.
    Thanks for paying attention. Wish everything goes on well.
    Yours sincerely,
    Wang Lin
    解析: 暂无解析

  • 第21题:

    单选题
    You have a server that runs Windows Server 2008. The server has the Web Server (IIS) server role installed.   The server contains a Web site that is configured to use only Windows Authentication. You have a security group named Group1 that contains several user accounts.  You need to prevent the members of Group1 from accessing a Web site. You must not prevent other users from accessing the Web site.  Which Web site feature should you configure?()
    A

    Authentication

    B

    Authorization Rules

    C

    IIS Manager Permissions

    D

    SSL Settings


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

  • 第22题:

    单选题
    You have a use case in your web application that adds several session-scoped attributes. At the end of theuse case, one of these objects, the manager attribute, is removed and then it needs to decide which of theother session-scoped attributes to remove. How can this goal be accomplished?()
    A

    The object of the manager attribute should implement the HttpSessionBindingListener and it should call the removeAttribute method on the appropriate session attributes.

    B

    The object of the manager attribute should implement the HttpSessionListener and it should call the removeAttribute method on the appropriate session attributes.

    C

    The object of the manager attribute should implement the HttpSessionBindingListener and it should call the deleteAttribute method on the appropriate session attributes.

    D

    The object of the manager attribute should implement the HttpSessionListener and it should call the deleteAttribute method on the appropriate session attributes.


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

  • 第23题:

    单选题
    You run a Windows Defender scan on your computer system. The scan identifies one of your applications as having potentially unwanted behavior.  You need to continue to use the application. You also need to stop Windows Defender from alerting you about this application.  Which Windows Defender option should you use? ()
    A

    Ignore

    B

    Remove

    C

    Quarantine

    D

    Always Allow


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

  • 第24题:

    单选题
    Your web application requires the adding and deleting of many session attributes during a complex usecase. A bug report has come in that indicates that an important session attribute is being deleted too soonand a NullPointerException is being thrown several interactions after the fact. You have decided to create asession event listener that will log when attributes are being deleted so you can track down when theattribute is erroneously being deleted. Which listener class will accomplish this debugging goal?()
    A

    Create an HttpSessionAttributeListener class and implement the attributeDeleted method and log the attribute name using the getName method on the event object.

    B

    Create an HttpSessionAttributeListener class and implement the attributeRemoved method and log the attribute name using the getName method on the event object.

    C

    Create an SessionAttributeListener class and implement the attributeRemoved method and log the attribute name using the getAttributeName method on the event object.

    D

    Create an SessionAttributeListener class and implement the attributeDeleted method and log the attribute name using the getAttributeName method on the event object.


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