多选题Which the two are characteristics of the Service Locator pattern?()AIt encapsulates component lookup proceduresBIt increases source code duplication and decreases reuseCIt improves client performance by caching context and factory objectsDIt degrades n

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

如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第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题:

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

第3题:

The distance between any two meridians measured along a parallel of latitude ______.

A.increases in north latitude and decreases in south latitude

B.decreases as DLO increases

C.increases with increased latitude

D.decreases with increased latitude


正确答案:D

第4题:

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

第5题:

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

第6题:

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

第7题:

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

第8题:

Reusing frequencies in a cellular pattern (compared to “one big cell”)()

  • A、Increases channel utilization, cost ,and interference.
  • B、Increases capacity and cost, but decreases interference.
  • C、Increases capacity, but decreases cost and interference.
  • D、Increases capacity, cost, and interference.

正确答案:D

第9题:

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

第10题:

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

更多相关问题