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


相似考题
更多“单选题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 ”相关问题
  • 第1题:

    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

  • 第2题:

    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

  • 第3题:

    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

  • 第4题:

    Which methods from the String and StringBuffer classes modify the object on which they are called?()  

    • A、The charAt() method of the String class.
    • B、The toUpperCase() method of the String class.
    • C、The replace() method of the String class.
    • D、The reverse() method of the StringBuffer class.
    • E、The length() method of the StringBuffer class.

    正确答案:D

  • 第5题:

    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

  • 第6题:

    A company that makes Computer Assisted Design (CAD) software has, within its application, some utilityclasses that are used to perform 3D rendering tasks. The company’s chief scientist has just improved theperformance of one of the utility classes’ key rendering algorithms, and has assigned a programmer toreplace the old algorithm with the new algorithm. When the programmer begins researching the utilityclasses, 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 carefulthat her changes adhere strictly to the class’s API. Once testing has begun, the programmer discovers thatother classes that use the class she changed are no longer working properly. What design flaw is mostlikely the cause of these new bugs?()

    • A、Inheritance
    • B、Tight coupling
    • C、Low cohesion
    • D、High cohesion
    • E、Loose coupling

    正确答案:B

  • 第7题:

    You are creating a Windows Forms Application by using the .NET Framework 3.5.You plan to design a new control that will be used on multiple forms in the app.You need to ensure that the control meets the following requirement  (1)It retrieves data from a MSSQL Server 2008 database instance. (2)It uses WPF classes to display data.  (3)It uses user-customizable actions when the control is first painted on the form.   What should you do?()

    • A、Create a new custom class for the control that is derived from the Control class.
    • B、Create a new custom class for the control that is derived from the UserControl class.
    • C、Create a new custom class for the control that is derived from the ContentControl class.
    • D、Create a new custom class for the control that is derived from the ContentPresenter class.

    正确答案:B

  • 第8题:

    单选题
    A company that makes Computer Assisted Design (CAD) software has, within its application, some utilityclasses that are used to perform 3D rendering tasks. The company’s chief scientist has just improved theperformance of one of the utility classes’ key rendering algorithms, and has assigned a programmer toreplace the old algorithm with the new algorithm. When the programmer begins researching the utilityclasses, 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 carefulthat her changes adhere strictly to the class’s API. Once testing has begun, the programmer discovers thatother classes that use the class she changed are no longer working properly. What design flaw is mostlikely the cause of these new bugs?()
    A

    Inheritance

    B

    Tight coupling

    C

    Low cohesion

    D

    High cohesion

    E

    Loose coupling


    正确答案: E
    解析: 暂无解析

  • 第9题:

    多选题
    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,B
    解析: 暂无解析

  • 第10题:

    单选题
    Which methods from the String and StringBuffer classes modify the object on which they are called?()
    A

    The charAt() method of the String class.

    B

    The toUpperCase() method of the String class.

    C

    The replace() method of the String class.

    D

    The reverse() method of the StringBuffer class.

    E

    The length() method of the StringBuffer class.


    正确答案: D
    解析: 暂无解析

  • 第11题:

    单选题
    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
    解析: 暂无解析

  • 第12题:

    单选题
    You are creating a Windows Forms Application by using the .NET Framework 3.5.You plan to design a new control that will be used on multiple forms in the app.You need to ensure that the control meets the following requirement  (1)It retrieves data from a MSSQL Server 2008 database instance. (2)It uses WPF classes to display data.  (3)It uses user-customizable actions when the control is first painted on the form.   What should you do?()
    A

    Create a new custom class for the control that is derived from the Control class.

    B

    Create a new custom class for the control that is derived from the UserControl class.

    C

    Create a new custom class for the control that is derived from the ContentControl class.

    D

    Create a new custom class for the control that is derived from the ContentPresenter class.


    正确答案: B
    解析: 暂无解析

  • 第13题:

    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

  • 第14题:

    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

  • 第15题:

    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

  • 第16题:

    A class design requires that a member variable cannot be accessible directly outside the class. Which modifier should be used to obtain the access control?()    

    • A、 public
    • B、 no modifier
    • C、 protected
    • D、 private

    正确答案:D

  • 第17题:

    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

  • 第18题:

    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

  • 第19题:

    单选题
    A class design requires that a member variable cannot be accessible directly outside the class. Which modifier should be used to obtain the access control?()
    A

     public

    B

     no modifier

    C

     protected

    D

     private


    正确答案: A
    解析: 这个在前面也有叙述,java有四种访问类型,分别为:public,protected,default,private,其中public变量可以被所有的外部类访问,而pretected的可以被同一个包及该类的子类访问,default即没有任何修饰符的变量可以被同一个包中的类访问,而private变量只能在被该类内部被访问。题目中的外部类应该理解为除该类自身的所有其它类,因此只有使用private可以达到要求 

  • 第20题:

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


    正确答案: A
    解析: 暂无解析

  • 第21题:

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


    正确答案: A
    解析: 暂无解析

  • 第22题:

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


    正确答案: C
    解析: 暂无解析

  • 第23题:

    单选题
    You need to modify a client application that consumes a Windows Communication Foundation (WCF) service. The service metadata is no longer available. You need to modify the previously generated proxy to include asynchronous calls to the service. What should you do? ()
    A

    Update the service reference with the Generate asynchronous operations option.

    B

    Create a partial class for the previously generated proxy and include the new asynchronous methods.

    C

    Create a class with the same name as the previously generated proxy and add the new asynchronous methods. Add the new class to a namespace that is different from the original proxy.

    D

    Create a class with the same name as the previously generated proxy and add the new asynchronous methods as partial methods. Add the new class to a namespace that is different from the original proxy.


    正确答案: D
    解析: 暂无解析