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

题目

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


相似考题
更多“A company that makes Computer Assisted Design (CAD) software has, within its application, ”相关问题
  • 第1题:

    package com.company.application;public class MainClass{public static void main(String[]args){}}And Main Class exists in the/apps/com/company/application directory.Assume the CLASSPATH environment variable is set to.”(currentdirectory).Which two java commands entered at the command line will run MainClass()

    A.java MainClass if run from the/apps directory

    B.javacom.company.application.MainClass if run from the/apps directory

    C.java-classpath/appscom.company.application.MainClass if run fro many directory

    D.java-classpath.MainClass if run fromt he/apps/com/company/application directory

    E.java-classpath/apps/com/company/application:.MainClass if run from the/apps directory

    F.javacom.company.application.MainClassifrunfromthe/apps/com/company/application directory


    参考答案:B, C

  • 第2题:

    Given:And MainClass exists in the /apps/com/company/application directory. Assume the CLASSPATHenvironment variable is set to "." (current directory). Which two java commands entered at the command line will run MainClass?()

    A.java MainClass if run from the /apps directory

    B.java com.company.application.MainClass if run from the /apps directory

    C.java -classpath /apps com.company.application.MainClass if run from any directory

    D.java -classpath . MainClass if run from the /apps/com/company/application directory

    E.java -classpath /apps/com/company/application:. MainClass if run from the /apps directory

    F.java com.company.application.MainClass if run from the /apps/com/company/application directory


    参考答案:B, C

  • 第3题:

    4、检索式“computer(3W)design”表示:

    A.可以检索出“design”或“computer”

    B.computer与 design之间最多可插入3个词

    C.computer与 design的先后顺序可以颠倒

    D.computer与 design的先后顺序不可以颠倒


    computer与 design 之间可插入 3 个词;computer与 design的 先后顺序 不 可以颠倒

  • 第4题:

    packagecom.company.application;publicclassMainClass{publicstaticvoidmain(String[]args){}}AndMainClassexistsinthe/apps/com/company/applicationdirectory.AssumetheCLASSPATHenvironmentvariableissetto.(currentdirectory).WhichtwojavacommandsenteredatthecommandlinewillrunMainClass?()

    A.javaMainClassifrunfromthe/appsdirectory

    B.javacom.company.application.MainClassifrunfromthe/appsdirectory

    C.java-classpath/appscom.company.application.MainClassifrunfromanydirectory

    D.java-classpath.MainClassifrunfromthe/apps/com/company/applicationdirectory

    E.java-classpath/apps/com/company/application:.MainClassifrunfromthe/appsdirectory

    F.javacom.company.application.MainClassifrunfromthe/apps/com/company/applicationdirectory


    参考答案:B, C

  • 第5题:

    A crowd gathered to see what had happened.

    A:collected
    B:fixed
    C:divided
    D:assisted

    答案:A
    解析:
    本句意思:一群人聚拢起来看发生了什么事。gather意为“聚集”,与collect (聚集,堆 积,收集)意思相近。fix修理,安装,安排,整理,准备;divide除,分割,划分,隔开;assist帮助, 协助。

  • 第6题:

    信息交换的范围可以分为应用内部(Intra-Application)、应用之间(Inter-Application)、系统之间(Inter-System)和公司之间(Inter-Company)。XML可以用以进行上述任意类型的信息交换。


    内部信息资源;外部信息资源;公开信息资源;秘密信息资源