OCJP(310-065)

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

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

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

第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题:

Your company has an Active Directory forest that contains eight linked Group Policy Objects (GPOs). One of these GPOs publishes applications to user objects. A user reports that the application is not available for installation. You need to identify whether the GPO has been applied What should you do()

  • A、Run the Group Policy Results utility for the user.
  • B、Run the Group Policy Results utility for the computer.
  • C、Run the GPRESULT /SCOPE COMPUTER command at the command prompt.
  • D、Run the GPRESULT /S  /Z command at the command prompt.

正确答案:A

第3题:

听力原文:Although the said company is a sun-rising firm, its accounting management should be improved before the loan is extended to it.

(9)

A.The company is a sun-rising firm so it is worthwhile to extend the loan.

B.The company has some accounting problems, some improvement is needed.

C.The company is short of funds because it is sun-rising.

D.The company has some accounting problems because it is sun-rising.


正确答案:B
解析:单句意思为“尽管我们谈及的企业是成长性企业,但是在我们贷款给对方之前,它应该要完善它的财务会计管理。”

第4题:

A company has a business application that provides its users with many different reports: receivables reports, payables reports, revenue projects, and so on.The company has just purchased some new, state-of-the-art,wireless printers, and a programmer has been assigned the task of enhancing all of the reports to use not only the company’s old printers, but the new wireless printers as well.When the programmer starts looking into the application, the programmer discovers that because of the design of the application, it is necessary to make changes to each report to support the new printers.  Which two design concepts most likely explain the situation?()

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

正确答案:B,C

第5题:

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

第6题:

A company has a business application that provides its users with many different reports: receivables reports, payables reports, revenue projects, and so on. The company has just purchased somenew, state-of-the-art, wireless printers, and a programmer has been assigned the task of enhancing all ofthe reports to use not only the company’s old printers, but the new wireless printers as well. When the programmer starts looking into the application, the programmer discovers that because of the design of theapplication, it is necessary to make changes to each report to support the new printers. Which two designconcepts most likely explain this situation? ()

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

正确答案:B,C

第7题:

A technician works for a company that has recently been affected by a virus. The virus entered the network by using port 6000. Port 6000 is used by an application located on a server. The technician has been asked to block this port on all servers and computers except for the one server which uses this port. Which of the following should the technician do?()

  • A、Update the antivirus application
  • B、Install critical update security patches
  • C、Adjust the software firewall settings
  • D、Replace the current antivirus program

正确答案:C

第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题:

Company.com is implementing an HACMP solution. The application ahs a license key based on  The hostname. The hostname is also the name used for one of the TCP/IP interfaces. The application vendor has worked with HACMP systems before and is aware of the issue. The preferred method for resolving this issue is to:()  

  • A、 include the hostname in the resource group definition.
  • B、 include the license key in the resource group definition.
  • C、 obtain a second license key for a "standby" system from the application vendor.
  • D、 Set the hostname to be one of the TCP/IP interface included in a resource group.

正确答案:C

第10题:

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

更多相关问题