多选题Which two are characteristics of the Service Locator pattern?()AIt encapsulates component lookup procedures.BIt increases source code duplication and decreases reuse.CIt improves client performance by caching context and factory objects.DIt degrades ne

题目
多选题
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
解析: 暂无解析
如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

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

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

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

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

第5题:

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

第6题:

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

第7题:

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

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

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

第10题:

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

更多相关问题