多项选择题

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


您可能感兴趣的试卷

你可能感兴趣的试题

1.单项选择题

What is the result?()

A.Compilation fails.
B.An exception is thrown at runtime.
C.doStuff x=6,main x=6
D.doStuff x=5,main x=5
E.doStuff x=5,main x=6
F.doStuff x=6,main x=5

2.单项选择题

What is the result?()

A.81
B.82
C.91
D.92
E.Compilation fails.
F.An exception is thrown at runtime.

4.单项选择题Which Man class properly represents the relationship "Man has a best friend who is a Dog"?()

A.class Man extends Dog{}
B.class Man implements Dog{}
C.class Man{private BestFriend dog;}
D.class Man{private Dog bestFriend;}
E.class Man{private Dog;}
F.class Man{private BestFriend;}

5.多项选择题

Which two, independently, will allow Sub to compile?()

A.Change line 2 to:public int a;
B.Change line 2 to:protected int a;
C.Change line 13 to:public Sub(){this(5);}
D.Change line 13 to:public Sub(){super(5);}
E.Change line 13 to:public Sub(){super(a);}

6.多项选择题

Which five methods,inserted independently at line 5,will compile?()

A.public int blipvert(int x){return 0;}
B.private int blipvert(int x){return 0;}
C.private int blipvert(long x){return 0;}
D.protected int blipvert(long x){return 0;}
E.protected long blipvert(long x){return 0;}
F.protected long blipvert(int x, int y){return 0;}

7.单项选择题

What is the result?()

A.Compilation fails.
B.atom granite
C.granite granite
D.atom granite granite
E.An exception is thrown at runtime.
F.atom granite atom granite

9.单项选择题

What is the result?()

A.4321
B.0000
C.An exception is thrown at runtime.
D.Compilation fails because of an error in line 18.

10.单项选择题

What is the result?()

A.hi hi
B.hi world
C.world world
D.Compilation fails.
E.An exception is thrown at runtime.

最新试题

What can be a result?()

题型:单项选择题

Given a class whose instances, when found in a collection of objects, are sorted by using the compareTo() method, which two statements are true?()

题型:多项选择题

Which statement is true about the set variable on line 12?()

题型:单项选择题

What is the result?()

题型:单项选择题

A programmer must create a generic class MinMax and the type parameter of MinMax must implement Comparable. Which implementation of MinMax will compile?()

题型:单项选择题

Which statement is true?()

题型:单项选择题

What is the result?()

题型:单项选择题

Which two changes, taken together, would guarantee the output: 1, 2, 3, 4, 5?()

题型:多项选择题

Given:  foo and bar are public references available to many other threads, foo refers to a Thread and bar is an Object. The thread foo is currently executing bar.wait().  From another thread, what provides the most reliable way to ensure that foo will stop executing wait()?()

题型:单项选择题

Which code, inserted at line 4, guarantees that this program will output [1, 2]?()

题型:单项选择题