单选题A team of programmers is reviewing a proposed API for a new utility class. After some discussion,they realize that they can reduce the number of methods in the API without losing any functionality.If they implement the new design, which two OO principl

题目
单选题
A team of programmers is reviewing a proposed API for a new utility class. After some discussion,they realize that they can reduce the number of methods in the API without losing any functionality.If they implement the new design, which two OO principles will they be promoting?()
A

Looser coupling

B

Tighter coupling

C

Lower cohesion

D

Higher cohesion

E

Weaker encapsulation

F

Stronger encapsulation

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

第1题:

A company that makes Computer Assisted Design (CAD) software has, within its application, some utility classes that are used to perform 3D rendering tasks. The company‘s chief scientist has just improved the performance of one of the utility classes‘ key rendering algorithms, and has assigned a programmer to replace the old algorithm with the new algorithm. When the programmer begins researching the utility classes, she is happy to discover that the algorithm to be replaced exists in only one class. The programmer reviews that class‘s API, and replaces the old algorithm with the new algorithm, being careful that her changes adhere strictly to the class‘s API. Once testing has begun, the programmer discovers that other classes that use the class she changed are no longer working properly.What design flaw is most likely the cause of these new bugs?()

A.Inheritance

B.Tight coupling

C.Low cohesion

D.High cohesion

E.Loose coupling

F.Object immutability


参考答案:B

第2题:

A team of programmers is reviewing a proposed API for a new utility class.After some discussion, they realize that they can reduce the number of methods in the API without losing any functionality.If they implement the new design, which two principles will they be promoting?()

  • A、Looser coupling
  • B、Tighter coupling
  • C、Lower cohesion
  • D、Higher cohesion
  • E、Weaker encapsulation
  • F、Stronger encapsulation

正确答案:A,D

第3题:

A team of programmers is involved in reviewing a proposed design for a new utility class. After some discussion, they realize that the current design allows other classes to access methods in the utility class that should be accessible only to methods within the utility class itself.What design issue has the team discovered?()

A.Tight coupling

B.Low cohesion

C.High cohesion

D.Loose coupling

E.Weak encapsulation

F.Strong encapsulation


参考答案:E

第4题:

A team of programmers is involved in reviewing a proposed design for a new utility class, After some discussion, they realize that the current design allows other classes to access methods in the utility class that should be accessible only to methods within the utility class itself. What design issue has the team discovered?()

  • A、Tight coupling
  • B、Low cohesion
  • C、High cohesion
  • D、Loose coupling
  • E、Weak encapsulation
  • F、Strong encapsulation

正确答案:E

第5题:

A company needs to connect seven of their Windows-based servers to a DS4000 storage server.   The DS4000 only has two host-side connections, and each server has two HBAs.  Which of the following is the lowest cost solution to provide no single points of failure?()

  • A、Implement two 8-port switches design with ISLs
  • B、Implement two 16-port switches design with ISLs
  • C、Implement two 8-port switches design without ISLs
  • D、Implement two 16-port switches design without ISLs

正确答案:C

第6题:

In which of the following phases can you ensure that the new Cisco Unified Communications solution is integrated without disrupting the existing network()

  • A、Operate
  • B、Plan
  • C、Deploy
  • D、Implement

正确答案:B

第7题:

A team of programmers is reviewing a proposed API for a new utility class. After some discussion, theyrealize that they can reduce the number of methods in the API without losing any functionality. If theyimplement the new design,which two OO principles will they be promoting?()

  • A、Looser coupling
  • B、Tighter coupling
  • C、Lower cohesion
  • D、Higher cohesion
  • E、Weaker encapsulation

正确答案:A,D

第8题:

A team of programmers is reviewing a proposed API for a new utility class. After some discussion,they realize that they can reduce the number of methods in the API without losing any functionality.If they implement the new design, which two OO principles will they be promoting?()

A.Looser coupling

B.Tighter coupling

C.Lower cohesion

D.Higher cohesion

E.Weaker encapsulation

F.Stronger encapsulation


参考答案:A

第9题:

Which of the following is a benefit of a hot spare?()

  • A、 Lower cost
  • B、 Allows two RAID 1 drives to simultaneously fail without losing any data
  • C、 Enhanced fault tolerance
  • D、 Enhanced performance

正确答案:C

第10题:

Which two are benefits of fully encapsulating a class?()  

  • A、 Performance of class methods is improved.
  • B、 Implementation details of the class are hidden.
  • C、 Access modifiers can be omitted on class data members.
  • D、 Code that uses the encapsulation class can access data members directly.
  • E、 Internal operation of the class can be modified without impacting clients of that class.

正确答案:B,E

更多相关问题