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

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

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

第1题:

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

第2题:

Which two are true?()

  • A、 An encapsulated, public class promotes re-use.
  • B、 Classes that share the same interface are always tightly encapsulated.
  • C、 An encapsulated class allows subclasses to overload methods, but does NOT allow overriding methods.
  • D、 An encapsulated class allows a programmer to change an implementation without affecting outside code.

正确答案:A,D

第3题:

A class design requires that a member variable should be accessible only by same package, which modifer word should be used?

A.protected

B.public

C.no modifer

D.private


参考答案:C

第4题:

After upgrading a server motherboard to the latest firmware revision, configuring LAN access in the SSU (System Setup Utility) fails. Which action should be taken FIRST to correct this problem?()

  • A、 replace the NIC
  • B、 install the latest SSU (System Setup Utility) version
  • C、 upgrade the firmware on the NIC
  • D、 assign the NIC a static IRQ in the SSU (System Setup Utility)

正确答案:C

第5题:

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

第6题:

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

第7题:

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

第8题:

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

第9题:

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

第10题:

What is the difference between the CUoD and Utility Capacity On Demand?()

  • A、Utility allows for activation of resources by the hour. CUoD allows for permanent access to additional resources installed into the system.
  • B、Utility allows for permanent access to additional resources installed into the system. CuOD allows for activation of resources by the hour.
  • C、Utility allows for activation of resources by the minute. CUoD allows for permanent access to additional resources installed into the system.
  • D、Utility allows for a 30 day usage of additional resources installed into the system. CUoD allows for permanent access to additional resources installed into the system.

正确答案:C

更多相关问题