Which two are characteristics of the Service Locator pattern?()A、It encapsulates component lookup procedures.B、It increases source code duplication and decreases reuse.C、It improves client performance by caching context and factory objects.D、It degrades n

题目

Which two are characteristics of the Service Locator pattern?()

  • A、It encapsulates component lookup procedures.
  • B、It increases source code duplication and decreases reuse.
  • C、It improves client performance by caching context and factory objects.
  • D、It degrades network performance due to increased access to distributed lookup services.

相似考题
参考答案和解析
正确答案:A,C
更多“Which two are characteristics of the Service Locator pattern?()A、It encapsulates component lookup procedures.B、It increases source code duplication and decreases reuse.C、It improves client performance by caching context and factory objects.D、It degrades n”相关问题
  • 第1题:

    Which is characteristic of the Business Delegate pattern?()

    • A、 It decreases complexity by removing a layer of proxy classes.
    • B、 It reduces coupling between tiers by hiding implementation details.
    • C、 It decreases performance due to the lack of caching of remote data.
    • D、 It forces business-tier expectations to be dealt with in the presentation-tier.

    正确答案:B

  • 第2题:

    You are designing a DNS strategy to meet the business and technical requirements. Which two actions should you perform?()

    • A、Create a dynamic reverse lookup zone for each subnet.
    • B、Create a dynamic forward lookup for each domain.
    • C、Install caching-only DNS servers in the branch offices.
    • D、Enable the BIND secondaries option for each DNS server.

    正确答案:A,B

  • 第3题:

    Which of the following performance tools will work with optimized code and also provides source statement profiling?()

    • A、 prof
    • B、 gprof
    • C、 kprof
    • D、 tprof

    正确答案:D

  • 第4题:

    Company.com has decided to use the FUBAR Application Server to host their web application. Unfortunately, the FUBAR Application Server uses the server machine’s file system for its JNDI namespace. Every JNDI lookup performed in the web application is translated into a file 1/0 operation, which results in very poor performance.  Which J2EE pattern can help with this performance issue?()

    • A、 Transfer Object
    • B、 Service Locator
    • C、 Intercepting Filter
    • D、 Model-View-Controller

    正确答案:B

  • 第5题:

    Which the two are characteristics of the Service Locator pattern?()

    • A、 It encapsulates component lookup procedures
    • B、 It increases source code duplication and decreases reuse
    • C、 It improves client performance by caching context and factory objects
    • D、 It degrades network performance due to increased access to distributed lookup services

    正确答案:A,C

  • 第6题:

    Which two are characteristics of the Transfer Object design pattern?()

    • A、It reduces network traffic by collapsing multiple remote requests into one.
    • B、It increases the complexity of the remote interface by removing coarse-grained methods.
    • C、It increases the complexity of the design due to remote synchronization and version control issues.
    • D、It increases network performance introducing multiple fine-grained remote requests which return verysmall amounts of data.

    正确答案:A,C

  • 第7题:

    Which two statements are true about Oracle ActiveCache ?()

    • A、 it supports very large data-sets such as the result-sets from large search queries to be held in memory
    • B、 it provides a set of management tools that enables automation of configuration
    • C、 it provides enhanced visibility across the entire application infrastructure
    • D、 it significantly increases the performance of Web-based applications with no code change

    正确答案:A,D

  • 第8题:

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


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

  • 第9题:

    多选题
    Which the two are characteristics of the Service Locator pattern?()
    A

    It encapsulates component lookup procedures

    B

    It increases source code duplication and decreases reuse

    C

    It improves client performance by caching context and factory objects

    D

    It degrades network performance due to increased access to distributed lookup services


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

  • 第10题:

    单选题
    Which of the following performance tools will work with optimized code and also provides source statement profiling?()
    A

     prof

    B

     gprof

    C

     kprof

    D

     tprof


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

  • 第11题:

    单选题
    According to Ohm’s Law, which of the following is correct?()
    A

    As voltage increases, resistance decreases

    B

    As amperage decreases, resistance decreases

    C

    As resistance decreases, amperage increases

    D

    As resistance increases, voltage increases


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

  • 第12题:

    单选题
    Which is characteristic of the Business Delegate pattern?()
    A

     It decreases complexity by removing a layer of proxy classes.

    B

     It reduces coupling between tiers by hiding implementation details.

    C

     It decreases performance due to the lack of caching of remote data.

    D

     It forces business-tier expectations to be dealt with in the presentation-tier.


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

  • 第13题:

    In an n-tier application, which two invocations are typically remote, not local?()

    • A、JSP to Transfer Object
    • B、Service Locator to JNDI
    • C、Controller to request object
    • D、Transfer Object to Entity Bean
    • E、Controller to Business Delegate

    正确答案:B,D

  • 第14题:

    According to Ohm’s Law, which of the following is correct?()

    • A、As voltage increases, resistance decreases
    • B、As amperage decreases, resistance decreases
    • C、As resistance decreases, amperage increases
    • D、As resistance increases, voltage increases

    正确答案:C

  • 第15题:

    Which two are characteristics of the Intercepting Filter pattern?()

    • A、 it provides centralized request handling for incoming requests.
    • B、 It forces resource authentication to be distributed across web components.
    • C、 It reduces coupling between presentation-tier clients and underlying business services.
    • D、 It can be added and removed unobtrusively, without requiring changes to existing  code.
    • E、 It allows preprocessing and postprocessing on the incoming requests and outgoing  responses.

    正确答案:D,E

  • 第16题:

    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

  • 第17题:

    Which two are characteristics of the Front Controller pattern?()

    • A、It simplifies remote interfaces to distributed objects.
    • B、It promotes cleaner application partitioning and encourages reuse.
    • C、It provides an initial point of contact for handling all related requests.
    • D、It reduces maintainability due to the increased complexity of the design.
    • E、It provides loosely coupled handlers that can be combined in various permutations.

    正确答案:B,C

  • 第18题:

    Which statement is true regarding the Junos OS?()

    • A、All platforms running the Junos OS have identical factory-default configurations.
    • B、All platforms running the Junos OS use the IP2 processor for longest-match lookup.
    • C、All platforms running the Junos OS use the same source code base.
    • D、All platforms running the Junos OS use FXP1 for communication between control and forwarding planes.

    正确答案:C

  • 第19题:

    You are designing a DNS Name resolution strategy for the client computer in the customer service department. What are the two possible ways to achieve the goal?()

    • A、Create a reverse lookup zone in DNS for each new Domain.
    • B、Add a WINS lookup record to the DNS forward lookup zone.
    • C、Add a WINS reverse record to the DNS reverse lookup zone.
    • D、Enable Dynamic updates for DownLevel client computers on each DHCP server.
    • E、Install the Active Directory Client on All Computers in the Customer service department.

    正确答案:B,D

  • 第20题:

    多选题
    Which two statements are true about Oracle ActiveCache ?()
    A

    it supports very large data-sets such as the result-sets from large search queries to be held in memory

    B

    it provides a set of management tools that enables automation of configuration

    C

    it provides enhanced visibility across the entire application infrastructure

    D

    it significantly increases the performance of Web-based applications with no code change


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

  • 第21题:

    多选题
    Which two are characteristics of the Transfer Object design pattern?()
    A

    It reduces network traffic by collapsing multiple remote requests into one.

    B

    It increases the complexity of the remote interface by removing coarse-grained methods.

    C

    It increases the complexity of the design due to remote synchronization and version control issues.

    D

    It increases network performance introducing multiple fine-grained remote requests which return verysmall amounts of data.


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

  • 第22题:

    多选题
    Which two are characteristics of the Service Locator pattern?()
    A

    It encapsulates component lookup procedures.

    B

    It increases source code duplication and decreases reuse.

    C

    It improves client performance by caching context and factory objects.

    D

    It degrades network performance due to increased access to distributed lookup services.


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

  • 第23题:

    单选题
    Which of the following best describes the thermodynamic effect on the pressure and volume relationship with regards to saturated gases?()
    A

    As pressure decreases, volume increases

    B

    As volume increases, pressure increases

    C

    As volume decreases, pressure decreases

    D

    As pressure increases, volume increases


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