Professional Documents
Culture Documents
Test Bank For Systems Analysis and Design 8th Edition Shelly
Test Bank For Systems Analysis and Design 8th Edition Shelly
Test Bank For Systems Analysis and Design 8th Edition Shelly
MULTIPLE CHOICE
2. An object has certain ____, like the make, model, and color of a car.
a. keys c. indices
b. attributes d. packets
ANS: B PTS: 1 REF: 250
4. Your car performs a(n) ____ called OPERATE WIPERS when you send a message by moving the
proper control.
a. method c. command
b. instance d. objective
ANS: A PTS: 1 REF: 250
10. The UML represents an object as a(n) ____ with the object name at the top, followed by the object’s
attributes and methods.
a. circle c. triangle
b. rectangle d. oval
ANS: B PTS: 1 REF: 251
11. The number of ____ needed to describe an object depends on the business requirements of the
information system and its users.
a. attributes c. indices
b. packets d. keys
ANS: A PTS: 1 REF: 254
12. If ____ are similar to adjectives that describe the characteristics of an object, objects are similar to
nouns.
a. packets c. indices
b. attributes d. keys
ANS: B PTS: 1 REF: 254
13. In an object-oriented system, objects can ____ certain attributes from other objects.
a. relate c. inherit
b. concatenate d. reformat
ANS: C PTS: 1 REF: 254
14. The ____ of an object is an adjective that describes the object’s current status.
a. polymorphism c. resemblance
b. encapsulation d. state
ANS: D PTS: 1 REF: 254
15. Objects can have a specific attribute called a(n) ____, which describes the object’s current status.
a. state c. instance
b. cycle d. status
ANS: A PTS: 1 REF: 254
16. A(n) ____ defines specific tasks that an object can perform.
a. attribute c. command
b. method d. message
ANS: B PTS: 1 REF: 254
17. ____ resemble verbs that describe what and how an object does something.
a. Methods c. Messages
b. Commands d. Attributes
ANS: A PTS: 1 REF: 254
19. The concept that a message gives different meanings to different objects is called ____.
a. encapsulation c. polymorphism
b. dynamic addressing d. linear addressing
ANS: C PTS: 1 REF: 255
20. A major advantage of O-O designs is that systems analysts can save time and avoid errors by using
____ objects.
a. dynamic c. modular
b. feasible d. linear
ANS: C PTS: 1 REF: 256
21. ____ allows objects to be used as modular components anywhere in the system.
a. Dynamic addressing c. Encapsulation
b. Technical feasibility d. Linear addressing
ANS: C PTS: 1 REF: 256
22. As shown in the accompanying figure, objects within a class can be grouped into ____, which are
more specific categories within a class.
a. schedules c. subclasses
b. units d. clusters
ANS: C PTS: 1 REF: 256
24. All objects within a(n) ____ share common attributes and methods.
a. catalog c. index
b. roster d. class
ANS: D PTS: 1 REF: 256
25. A class can belong to a more general category called a ____.
a. superclass c. subclass
b. roster d. catalog
ANS: A PTS: 1 REF: 257
26. ____ enable objects to communicate and interact as they perform business functions and transactions
required by the system.
a. Aggregates c. Clusters
b. Relationships d. Linkages
ANS: B PTS: 1 REF: 258
27. ____ describe what objects need to know about each other, how objects respond to changes in other
objects, and the effects of membership in classes, superclasses, and subclasses.
a. Aggregates c. Clusters
b. Relationships d. Linkages
ANS: B PTS: 1 REF: 258
28. ____ enables an object to derive one or more of its attributes from another object.
a. Concatenation c. Inheritance
b. Encapsulation d. Polymorphism
ANS: C PTS: 1 REF: 258
29. Inheritance enables a ____ to derive one or more of its attributes from a parent.
a. child c. package
b. user d. class
ANS: A PTS: 1 REF: 258
30. An object ____ diagram shows the objects and how they interact to perform business functions and
transactions.
a. relationship c. antecedent
b. precedent d. parent
ANS: A PTS: 1 REF: 258
32. The UML symbol for a use case is a(n) ____ with a label that describes the action or event.
a. rectangle c. dashed line
b. triangle d. oval
ANS: D PTS: 1 REF: 259
33. The line from the actor to a use case is called a(n) ____.
a. association c. lifeline
b. highlight d. linkage
ANS: A PTS: 1 REF: 259
34. A use case ____ is a visual summary of several related use cases within a system or subsystem.
a. description c. schematic
b. diagram d. outline
ANS: B PTS: 1 REF: 261
35. When you create a use case diagram, the first step is to identify the system boundary, which is
represented by a ____.
a. triangle c. rectangle
b. circle d. square
ANS: C PTS: 1 REF: 262
36. In a class diagram, each class appears as a(n) ____, with the class name at the top, followed by the
class’s attributes and methods.
a. rectangle c. oval
b. circle d. triangle
ANS: A PTS: 1 REF: 262
37. When you construct a ____, you review the use case and identify the classes that participate in the
underlying business transaction.
a. class diagram c. use case schematic
b. sequence diagram d. DFD
ANS: A PTS: 1 REF: 262
39. Sequence diagrams include symbols that represent all of the following EXCEPT ____.
a. classes c. lifelines
b. indices d. messages
ANS: B PTS: 1 REF: 264
MULTIPLE RESPONSE
2. The UML uses a set of symbols to represent graphically the ____ within a system.
a. feasibility c. components
b. summaries d. relationships
ANS: C, D PTS: 1 REF: 259
4. In structured analysis, ____ are transformed into data structures and program code.
a. processes c. entities
b. data stores d. TCOs
ANS: A, B, C PTS: 1 REF: 262
MODIFIED TRUE/FALSE
1. A method is like a blueprint, or template, for all the objects within a class.
_________________________
ANS: F, class
ANS: F, superclass
3. In a sequence diagram, a lifeline is identified by a line showing direction that runs between two
objects. _________________________
ANS: F, message
4. In a state transition diagram, the circle at the right with a hollow border is the initial state.
_________________________
ANS: F, final
PTS: 1 REF: 265
5. After you identify a system’s objects, classes, and relationships, you should develop a(n) object
relationship diagram that provides an overview of the system. _________________________
TRUE/FALSE
2. Customer objects can perform specific tasks, such as placing an order or paying a bill.
3. Some objects might have a few attributes; others might have dozens.
4. Just as objects are similar to adjectives, attributes resemble verbs that describe what and how an object
does something.
5. System analysts define an object’s attributes during the systems design process.
6. The same message to two different objects produces the same results.
8. By limiting access to internal processes, an object prevents its internal code from being altered by
another object or process.
9. A major advantage of O-O designs is that systems analysts can save time and avoid errors by using
modular objects.
10. All relationships have equal weight; none is stronger than any other.
12. When you create an object relationship diagram, it will serve as a guide as you continue to develop
additional diagrams and documentation.
14. When the outcome of one use case is incorporated by another use case, we say the second use case
uses the first case.
15. To create use cases, you start by reviewing the information that you gathered during the requirements
modeling phase.
16. When you identify use cases, it is important to keep all related transactions separate.
17. Unlike a DFD, a class diagram is a logical model, which evolves into a physical model and finally
becomes a functioning information system.
18. Class diagrams evolve into code modules, data objects, and other system components.
19. In a sequence diagram, classes that send or receive messages are shown at the bottom of the diagram.
20. In a sequence diagram, a message is identified by a narrow vertical shape that covers the lifeline.
21. In a state transition diagram, the states appear as rounded rectangles with the state names inside.
22. In a state transition diagram, the circle to the left is the final state.
23. A class diagram resembles a horizontal flowchart that shows the actions and events as they occur.
ANS: F PTS: 1 REF: 266
24. Sequence diagrams, state transition diagrams, and activity diagrams are dynamic modeling tools that
can help a systems analyst understand how objects behave and interact with the system.
25. If you do not use a CASE-generated model, it is not necessary that a diagram or object definition be
supported by documentation.
COMPLETION
1. You can view an object as a(n) ____________________, because a message to the object triggers
changes within the object without specifying how the changes must be carried out.
2. The black box concept is an example of ____________________, which means that all data and
methods are self-contained.
ANS: encapsulation
ANS: object-oriented
ANS: actor
6. With a(n) ____________________, the objective is to identify the actors and the functions or
transactions they initiate.
7. For each use case, you develop a use case ____________________ in the form of a table that
documents the name of the use case, the actor, a description of the use case, and so forth.
ANS: description
8. As shown in the accompanying figure, the system ____________________ shows what is included in
the system (inside the rectangle) and what is not included in the system (outside the rectangle).
ANS: boundary
9. A(n) ____________________ shows the object classes and relationships involved in a use case.
ANS: methods
11. ____________________ describes how instances of one class relate to instances of another class.
ANS: Cardinality
12. A(n) ____________________ diagram graphically documents the use case by showing the classes, the
messages, and the timing of the messages.
ANS: sequence
13. In a sequence diagram, a(n) ____________________ is identified by a rectangle with the name inside.
ANS: class
14. In a sequence diagram, a(n) ____________________ represents the time during which the object
above it is able to interact with the other objects in the use case.
ANS: lifeline
15. In a sequence diagram, a(n) ____________________ is identified by a line showing direction that runs
between two objects.
ANS: message
ANS: focus
17. A(n) ____________________ diagram shows how an object changes from one state to another,
depending on events that affect the object.
19. ____________________ can display multiple use cases in the form of a grid, where classes are shown
as vertical bars and actions appear as horizontal arrows.
20. Systems analysts rely on ____________________ tools to speed up the process of creating object
models and provide an overall framework for documenting the system components.
ANS: CASE
MATCHING
Identify the letter of the choice that best matches the phrase or definition.
a. class diagram f. activity diagram
b. CASE tools g. object modeling
c. lifeline h. black box
d. object relationship diagram i. UML
e. state transition diagram j. system boundary
1. Does not want or need outside interference.
2. Shows objects and how they interact to perform business functions and transactions.
3. This is mainly used to support O-O system analysis and to develop object models.
4. After you identify this, you place the use cases on the diagram, add the actors, and show the
relationships.
5. In this, lines show relationships between classes and have labels identifying the action that relates the
two classes.
6. In a sequence diagram, an X marks the end of this.
7. In this, reading from left to right, the lines show direction and describe the action or event that causes a
transition from one state to another.
8. Shows the order in which the actions take place and identify the outcomes.
9. Ensure consistency and provide common links so that once objects are described and used in one part
of the design, they can be reused multiple times without further effort.
10. Requires many types of diagrams to represent the proposed system.
ESSAY
1. Explain what a message is, using examples to demonstrate your understanding, and use the terms black
box and encapsulation in your response.
ANS:
A message is a command that tells an object to perform a certain method. For example, the message
ADD STUDENT directs the STUDENT class to add a STUDENT instance. The STUDENT class
understands that it should add the student number, name, and other data about that student. Similarly, a
message named DELETE STUDENT tells the STUDENT class to delete a STUDENT instance.
The same message to two different objects can produce different results. The concept that a message
gives different meanings to different objects is called polymorphism. For example, the message
GOOD NIGHT signals the PARENT object to read a bedtime story, but the same message to the DOG
object tells the dog to sleep. The GOOD NIGHT message to the CHILD object signals it to get ready
for bed.
You can view an object as a black box, because a message to the object triggers changes within the
object without specifying how the changes must be carried out. A gas pump is an example of a black
box. When you select the economy grade at a pump, you do not need to think about how the pump
determines the correct price and selects the right fuel, as long as it does so properly.
The black box concept is an example of encapsulation, which means that all data and methods are
self-contained. A black box does not want or need outside interference. By limiting access to internal
processes, an object prevents its internal code from being altered by another object or process.
Encapsulation allows objects to be used as modular components anywhere in the system, because
objects send and receive messages but do not alter the internal methods of other objects.
2. What do relationships enable objects to do? What is the strongest kind of relationship? Walk through
an example that demonstrates your understanding of the concept.
ANS:
Relationships enable objects to communicate and interact as they perform business functions and
transactions required by the system. Relationships describe what objects need to know about each
other, how objects respond to changes in other objects, and the effects of membership in classes,
superclasses, and subclasses. Some relationships are stronger than others (just as a relationship
between family members is stronger than one between casual acquaintances). The strongest
relationship is called inheritance. Inheritance enables an object, called a child, to derive one or more of
its attributes from another object, called a parent. As one example, the INSTRUCTOR object (child)
inherits many traits from the EMPLOYEE object (parent), including SOCIAL SECURITY NUMBER,
TELEPHONE NUMBER, and HIRE DATE. The INSTRUCTOR object also can possess additional
attributes, such as TYPE OF INSTRUCTOR. Because all employees share certain attributes, those
attributes are assumed through inheritance and do not need to be repeated in the INSTRUCTOR
object.
3. Explain what a class diagram is and in your answer, be sure to explain how a class diagram is like a
DFD.
ANS:
A class diagram shows the object classes and relationships involved in a use case. Like a DFD, a class
diagram is a logical model, which evolves into a physical model and finally becomes a functioning
information system. In structured analysis, entities, data stores, and processes are transformed into data
structures and program code. Similarly, class diagrams evolve into code modules, data objects, and
other system components.
In a class diagram, each class appears as a rectangle, with the class name at the top, followed by the
class’s attributes and methods. Lines show relationships between classes and have labels identifying
the action that relates the two classes. To create a class diagram, you review the use case and identify
the classes that participate in the underlying business transaction.
CASE
Alex is getting a little confused by the terminology in the object-oriented world, so he consults his
roommate, who has been doing a lot of work in object modeling in previous coursework.
1. Which of the following does Alex's roommate use as an example of an instance of the APPLIANCE
class?
a. heat food
b. kitchen
c. refrigeration
d. microwave oven
ANS:
D
2. The following examples — bake cakes, self-clean, and reheat pasta — are all what with regard to the
oven object, according to Alex's roommate?
a. classes
b. methods
c. messages
d. instances
ANS:
B
Jaime, the newest analyst at Novel Systems Worldwide, is responsible for assigning the appropriate
UML notations to a given class diagram.
3. In a given diagram, Jaime is marking up a relationship in which a given employee can have no payroll
deductions or she can have many deductions. Which of the following notations will Jaime write to
mark this relationship?
a. 0..1
b. 1
c. 0..*
d. 1..*
ANS:
C
4. Jaime has just written the following UML notation on the class diagram: 0..1. Which of the following
relationships corresponds to what he has just noted?
a. An employee can have no direct reports or many direct reports.
b. An employee can have no spouse or one spouse.
c. An office manager manages one and only one office.
d. One order can include one or many items ordered.
ANS:
B