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

第1题:

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

第2题:

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

第3题:

You are creating an application that consumes a Windows Communication Foundation (WCF) service. The service implements the IService contract. The client application contains the CallbackHandler class, which implements IServiceCallback.You need to ensure that a client proxy is created that can communicate with the service over a duplex channel.Which code segment should you use?()

A.

B.

C.

D.


参考答案:B

第4题:

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

第5题:

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

第6题:

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

第7题:

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

第8题:

following code segment.[ServiceContract]public interface ICustomerService{...}public class CustomerService : ICustomerService{...}The service is self-hosted in a console application. Older client applications access the service at http://contoso.com:8080/CustomerService/V1.Newer client applications access the service at http://contoso.com:8080/CustomerService/V2.You need to ensure that any client application can access the service at either address.Which code segment should you use?()

A.

B.

C.

D.


参考答案:C

第9题:

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

第10题:

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

更多相关问题