ch12
True/False
Indicate whether the statement is true or false.
____
1.
Design class diagrams and sequence diagrams should be developed independent of each other.
____
2.
User-interface design and sequence diagrams are often developed concurrently.
____
3.
Design classes always have foreign keys.
____
4.
Dependency relationships cannot exist between classes within packages.
____
5.
Design patterns are unusual design approaches that must be identified and removed from the design models.
____
6.
Standard design templates have become popular among software developers because they can speed OO
design work.
____
7.
A three layer design consists of the view layer, the business logic layer, and the data access layer.
____
8.
The activation lifeline is depicted by a vertical dashed line under an object.
____
9.
The first-cut sequence diagram should contain only the view layer and business layer.
____
10.
The perfect memory assumption means that there is always adequate memory to execute the program.
____
11.
The perfect technology assumption means not to worry about issues such as the user having to log on or test-
ing the availability of the network.
____
12.
The perfect solution assumption means that we do not worry about exception conditions.
____
13.
The first-cut DCD includes method signatures.
____
14.
A loop or repeating message in a sequence diagram is depicted by a rectangle box.
____
15.
Separation of responsibilities is a design principle to segregate classes into separate components based on the
primary focus of the classes.
____
16.
The design, programming, and maintenance of a system are easier if separate classes are defined to access the
database and format the data so that it is conducive to computer processing.
____
17.
There are two preferred methods to accessing the database. One is to have newly instantiated object call the
data access object. The other is to let the controller access the data access object.
____
18.
The controller object is usually part of the view layer.
____
19.
Communication diagrams can be used to replace sequence diagarms.
____
20.
On communication diagams, return messages are depicted by dashed arrows.
____
21.
Since updating a design class diagram is done after the use case realization is complete, visibility information
is no longer necessary.
____
22.
Dependency relationships are depicted by arrows on dashed lines.
____
23.
Usually editing and validating the input data is done as part of the business logic layer.
____
24.
Preparing persistent classes for storage to the database is done by the data access layer.
____
25.
The factory method pattern is used to create classes that can be used to instantiate objects from utility classes.
This
preview
has intentionally blurred sections.
Sign up to view the full version.
____
26.
The singleton pattern has the same basic logic as the factory method pattern.
____
27.
The Observer pattern is also called the listener pattern.
____
28.
In the observer pattern, the object being observed must have a method to register listeners.
____
29.
In the observer pattern template, the onActionPerformed() method will invoke the listenerClass.actionPer-
formed() method.
Multiple Choice
Identify the choice that best completes the statement or answers the question.
____
30.
Which of the following is an example of an interaction diagram?
a.
Design class diagram
c.
Package diagram
b.
Data access diagram
d.
Communication diagram

This is the end of the preview.
Sign up
to
access the rest of the document.
- Spring '10
- Dr.Adam
- Object-Oriented Programming, Design pattern, sequence diagram, REF, C C D C B C C D
-
Click to edit the document details