CH05 TB

Download as pdf or txt
Download as pdf or txt
You are on page 1of 17

6ed-Chapter 5: Extending the Requirements Models

TRUE/FALSE

1. An actor is always outside of the automation boundary.

ANS: T PTS: 1

2. Two difference scenarios of a use case would normally be described in a single fully developed use
case description.

ANS: F PTS: 1

3. A good way to describe a use case scenario is with a state chart.

ANS: F PTS: 1

4. Activity diagrams are not helpful when the flow of activities is too complex.

ANS: F PTS: 1

5. An activity diagram and the flow of activities in a fully developed use case description serve the same
purpose.

ANS: T PTS: 1

6. Since an activity diagram is not object-oriented (e.g. no objects), it is not a standard model of the
object-oriented Unified Modeling Language (UML).

ANS: F PTS: 1

7. In a system sequence diagram the order of the messages is determined by numbering the messages.

ANS: F PTS: 1

8. In a system sequence diagram a box refers to a class of objects.

ANS: F PTS: 1

9. A true/false condition on a sequence diagram indicates whether the message can be processed or not.

ANS: F PTS: 1

10. A loop frame and an asterisk mean the same thing in a sequence diagram.

© 2012 Cengage Learning. All Rights Reserved. This edition is intended for use outside of the U.S. only, with content that may be different
from the U.S. Edition. May not be scanned, copied, duplicated, or posted to a publicly accessible website, in whole or in part.
ANS: T PTS: 1

11. On a sequence diagram, a message represents a service request.

ANS: T PTS: 1

12. An Opt frame and an Alt frame do essentially the same thing.

ANS: F PTS: 1

13. An Opt frame and a true/false condition on a message serve essentially the same purpose.

ANS: T PTS: 1

14. Activity diagrams are not helpful in developing system sequence diagrams (SSDs).

ANS: F PTS: 1

15. In the object-oriented approach to systems development, the flow of information is achieved by
sending messages either to and from actors or back and forth between internal objects.

ANS: T PTS: 1

16. In an interaction diagram, messages are sent and received by individual objects, not by classes.

ANS: T PTS: 1

17. In a sequence diagram, a message is considered to be an action that is invoked on the destination
object.

ANS: T PTS: 1

18. Activity diagrams cannot be used to describe processes that involve automated system activities.

ANS: F PTS: 1

19. In an activity diagram, a separate use case may used as part of the workflow.

ANS: T PTS: 1

MULTIPLE CHOICE

1. Another way to think of a actor using a use case is as a(n) _______.


a. external entity c. system

© 2012 Cengage Learning. All Rights Reserved. This edition is intended for use outside of the U.S. only, with content that may be different
from the U.S. Edition. May not be scanned, copied, duplicated, or posted to a publicly accessible website, in whole or in part.
b. person d. role
ANS: D PTS: 1

2. A unique set of internal activities within a use case which represents a unique path through the use
case is called a(n) _______.
a. workflow c. scenario
b. sequence of activities d. critical path
ANS: C PTS: 1

© 2012 Cengage Learning. All Rights Reserved. This edition is intended for use outside of the U.S. only, with content that may be different
from the U.S. Edition. May not be scanned, copied, duplicated, or posted to a publicly accessible website, in whole or in part.
3. In a fully developed use case description the postcondition data describes what conditions?
a. The status condition of the use case. c. The condition of the actor.
b. The existence of domain model objects. d. The data that is output by the system.
ANS: B PTS: 1

4. In a fully developed use case description the exception conditions represent what?
a. What conditions might cause the system to crash.
b. What conditions prevent the system from successfully completing the use case.
c. What conditions will confuse the actor.
d. Where the system might have “bugs” and produce erroneous results.
ANS: B PTS: 1

5. In a fully developed use case description, the flow of activities is most similar to what?
a. An activity diagram c. A state chart diagram
b. A class diagram d. A system sequence diagram
ANS: A PTS: 1

6. Numbering exception conditions, which often uses hierarchical numbering, in a fully developed use
case description is helpful to _______.
a. tie exception conditions to other diagrams or descriptions
b. show which exception conditions are subordinate to other exceptions
c. provide an identifier for each exception condition
d. tie the exception condition to a processing step
ANS: D PTS: 1

7. In a fully developed use case description normally the preconditions describe what?
a. What objects must exist prior to the use case executes.
b. What data the actor must have before the use case executes.
c. Who the actors are that invoke the use case.
d. What business conditions must occur before the use case is invoked.
ANS: A PTS: 1

8.
Which is correct?
a. A c. C
b. B d. D
ANS: B PTS: 1

© 2012 Cengage Learning. All Rights Reserved. This edition is intended for use outside of the U.S. only, with content that may be different
from the U.S. Edition. May not be scanned, copied, duplicated, or posted to a publicly accessible website, in whole or in part.
© 2012 Cengage Learning. All Rights Reserved. This edition is intended for use outside of the U.S. only, with content that may be different
from the U.S. Edition. May not be scanned, copied, duplicated, or posted to a publicly accessible website, in whole or in part.
9. Which of the following is the best model to use to document the inputs and the outputs to a system?
a. State chart diagram c. Activity diagram
b. Fully developed use case description d. System sequence diagram
ANS: D PTS: 1

10. A vehicle object is denoted with the following label.


a. vehicle c. Vehicle
b. Vehicle d. :Vehicle
ANS: D PTS: 1

11. In UML terminology in a sequence diagram, a message refers to a(n) _______.


a. input data c. event
b. communication between actors d. action
ANS: D PTS: 1

12. In a sequence diagram a horizontal dashed line represents what?


a. A return message c. A lifeline
b. An input message d. An event
ANS: A PTS: 1

13. In a sequence diagram the syntax of a message is given by the following:


[A] B := C (D) The letter B represents what?
a. message name c. true/false condition
b. return value d. parameter list
ANS: B PTS: 1

14. In a sequence diagram the message-name is usually given in what format?


a. verb-noun c. action-object
b. noun-verb d. object-action
ANS: A PTS: 1

15. If the True/False condition on a message evaluates to false in a sequence diagram, which of the
following is correct?
a. The message is false. c. The message is not processed.
b. The message has no return value. d. The message is not sent.
ANS: D PTS: 1

16. Which of the following documents information about classes that are part of the problem domain of
the user?

a. Activity diagram c. Use case diagram


b. State machine diagram d. System sequence diagram

© 2012 Cengage Learning. All Rights Reserved. This edition is intended for use outside of the U.S. only, with content that may be different
from the U.S. Edition. May not be scanned, copied, duplicated, or posted to a publicly accessible website, in whole or in part.
ANS: B PTS: 1

© 2012 Cengage Learning. All Rights Reserved. This edition is intended for use outside of the U.S. only, with content that may be different
from the U.S. Edition. May not be scanned, copied, duplicated, or posted to a publicly accessible website, in whole or in part.
17. For real-world objects the state of an object is the same as its _______ .
a. lifeline c. attribute values
b. status condition d. persistence
ANS: B PTS: 1

18. In a transition label in a state machine the syntax is A(B)[C]/D. The D stands for what?
a. transition name c. action expression
b. true/false condition d. input parameters
ANS: C PTS: 1

19. The guard-condition on a transition indicates what?


a. Whether the transition fires. c. Whether the object is in the correct state.
b. Whether the action-expression executes. d. Whether the trigger message is received.
ANS: A PTS: 1

20. An action-expression occurs when?


a. Before the object leaves the origin state.
b. After the object enters the destination state.
c. Before the object enters the destination state.
d. Before the transition fires.
ANS: C PTS: 1

21. On a systems sequence diagram, ____ indicate(s) a true/false condition.


a. ( ) c. { }
b. [ ] d. *
ANS: B PTS: 1

22. In a state machine diagram, a state is represented by a(n) ____.


a. oval c. square
b. black dot d. arrow
ANS: A PTS: 1

23. To document ____, draw a composite state with the lower portion divided into multiple compartments
for each concurrent path of behavior.
a. simple nested states c. concurrent behavior of different objects
b. concurrent behavior of a single object d. simple paths
ANS: B PTS: 1 -146

24. Which of the following is NOT an element in a transition label?


a. trigger c. guard condition
b. transition name d. action expression

© 2012 Cengage Learning. All Rights Reserved. This edition is intended for use outside of the U.S. only, with content that may be different
from the U.S. Edition. May not be scanned, copied, duplicated, or posted to a publicly accessible website, in whole or in part.
ANS: A PTS: 1

© 2012 Cengage Learning. All Rights Reserved. This edition is intended for use outside of the U.S. only, with content that may be different
from the U.S. Edition. May not be scanned, copied, duplicated, or posted to a publicly accessible website, in whole or in part.
25. A message event causes what to happen?
a. An activity to finish. c. A guard condition to be evaluated.
b. A message to fire. d. A transition to fire.
ANS: D PTS: 1

26. Which of the following is NOT a step in the development of a state machine diagram?
a. List all the status conditions for an object.
b. Identify state exiting transitions.
c. Expand the name of each state to identify concurrent activities.
d. Sequence the state-transition fragments.
ANS: C PTS: 1

27. A state machine diagram is used to document the states and transitions of a(n) ________.
a. Business process c. Message
b. Use case d. Object
ANS: D PTS: 1

28. The ____ are the primary models from which other models draw information.
a. statechart diagram and the problem domain class diagram.
b. system sequence diagram and the activity diagram
c. use case diagram and the problem domain class diagram
d. use case description and the use case diagram
ANS: C PTS: 1

29. Which of the following is NOT an advantage of object-oriented modeling with several models is that
_____.
a. developing new models allows the analyst to discard unnecessary diagrams.
b. developing new models ensures a consistency in the requirements.
c. developing new models helps correct previously drawn diagrams
d. developing new models helps gain deeper understanding of user requirements.
ANS: A PTS: 1

MULTIPLE RESPONSE

1. Two types of interaction diagrams are: (Choose two)


a. Activity diagrams d. Class diagrams
b. Sequence diagrams e. Communication diagrams
c. State chart diagrams f. Package diagrams
ANS: B, E PTS: 2

2. Two methods to show a repeating message are: (Choose two)


a. Dashed arrow d. Opt frame

© 2012 Cengage Learning. All Rights Reserved. This edition is intended for use outside of the U.S. only, with content that may be different
from the U.S. Edition. May not be scanned, copied, duplicated, or posted to a publicly accessible website, in whole or in part.
b. Brackets [ ] e. Loop frame
c. Asterisk * f. Alt frame
ANS: C, E PTS: 2

3. Two methods to show a return value are: (Choose two)


a. value := d. := value
b. [ value ] e. Solid arrow with value
c. ( value ) f. Dashed arrow with value
ANS: A, F PTS: 2

COMPLETION

1. A textual model that describes the processing details of a use case is called a(n) ________.

ANS: use case description

PTS: 2

2. Use cases may have different “paths” or sequence of steps through the use case. These different paths
are called _______ .

ANS:
scenarios
scenario
instance
instances
use case instance
use case instances

PTS: 2

3. A certain set of values or statuses that must exist before a use case begins is called a(n) _______.

ANS:
precondition
pre-condition

PTS: 2

4. A certain set of values or statuses that must exist after a use case completes its processing is called a(n)
_______.

ANS:
postcondition

© 2012 Cengage Learning. All Rights Reserved. This edition is intended for use outside of the U.S. only, with content that may be different
from the U.S. Edition. May not be scanned, copied, duplicated, or posted to a publicly accessible website, in whole or in part.
post-condition

PTS: 2

© 2012 Cengage Learning. All Rights Reserved. This edition is intended for use outside of the U.S. only, with content that may be different
from the U.S. Edition. May not be scanned, copied, duplicated, or posted to a publicly accessible website, in whole or in part.
5. The diagram model that is useful to document the flow of activities on a fully developed use case
description is called a(n) _______ diagram.

ANS: activity

PTS: 2

6. A diagram that shows the messages between an actor and the system is called a(n) _______.

ANS:
system sequence diagram
system-sequence diagram

PTS: 2

7. Vertical dashed lines on a system sequence diagram are used to depict a(n) what?

ANS:
lifeline
object lifeline

PTS: 2

8. An arrow on a system sequence diagram is used to depict a(n) what?

ANS: message

PTS: 2

9. A box in a system sequence diagram refers to a(n) what?

ANS: object

PTS: 2

10. On a sequence diagram when multiple messages are included within a repeating loop a(n) _______ is
used to document it.

ANS: loop frame

PTS: 2

11. On a sequence diagram a short notation that indicates a repeating message is a(n) _______.

© 2012 Cengage Learning. All Rights Reserved. This edition is intended for use outside of the U.S. only, with content that may be different
from the U.S. Edition. May not be scanned, copied, duplicated, or posted to a publicly accessible website, in whole or in part.
ANS:
asterisk
*

PTS: 2

12. In a sequence diagram the syntax of a message is given by the following:


[A] B := C (D) The letter D represents what?

ANS:
parameter-list
parameter list
parameters
input parameters

PTS: 2

13. In a sequence diagram the syntax of a message is given by the following:


[A] B := C (D) The letter B represents what?

ANS:
return-value
return-values
return value
return values

PTS: 2

14. To show if-then-else condition on a sequence diagram use a(n) ______.

ANS:
alt frame
alt-frame

PTS: 2

15. A condition during an object’s life when it satisfies some criterion is called a(n) _______.

ANS: state

PTS: 2

16. The movement of an object from one state to another is done through the process of a(n) _______.

ANS: transition

© 2012 Cengage Learning. All Rights Reserved. This edition is intended for use outside of the U.S. only, with content that may be different
from the U.S. Edition. May not be scanned, copied, duplicated, or posted to a publicly accessible website, in whole or in part.
PTS: 2

17. A UML diagram that shows the life of an object in states and transitions is called a(n) _______.

ANS:
state machine diagram
state-machine diagram
state machine
state-machine

PTS: 2

18. When an object moves from one state to another the ending state is called a(n) _______ .

ANS:
destination state
destination

PTS: 2

19. The beginning state of an object when its states are diagrammed is called a(n) _______.

ANS:
pseudostate
pseudo-state

PTS: 2

20. In a state-machine diagram when an object is in multiple states at the same time it is called _______.

ANS:
concurrency
concurrent state
concurrent states

PTS: 2

21. In a state-machine diagram when one state is high-level in that it contains other states of an object, it is
called a(n) ______.

ANS: composite state

PTS: 2

© 2012 Cengage Learning. All Rights Reserved. This edition is intended for use outside of the U.S. only, with content that may be different
from the U.S. Edition. May not be scanned, copied, duplicated, or posted to a publicly accessible website, in whole or in part.
ESSAY

1. Briefly describe the purpose of a system sequence diagram.

ANS:
A system sequence diagram (SSD) is used to describe the flow of information into and out of the
automated system. Thus, an SSD documents the inputs and the outputs and identifies the interaction
between actors and the system.

PTS: 5

© 2012 Cengage Learning. All Rights Reserved. This edition is intended for use outside of the U.S. only, with content that may be different
from the U.S. Edition. May not be scanned, copied, duplicated, or posted to a publicly accessible website, in whole or in part.
2. List three types of frame notation in sequence diagrams.

ANS:
Loop frame
Opt frame
Alt frame

PTS: 5

© 2012 Cengage Learning. All Rights Reserved. This edition is intended for use outside of the U.S. only, with content that may be different
from the U.S. Edition. May not be scanned, copied, duplicated, or posted to a publicly accessible website, in whole or in part.

You might also like