CH5 (test bank) Flashcards
T/F: An actor is always outside of the automation boundary.
T
Two difference scenarios of a use case would normally be described in a single fully developed use case description.
F, only one scenario of a use case is described in a fullt developed use case.
T/F: A good way to describe a use case scenario is with a state chart.
F, State Machine Diagram
T/F: Activity diagrams are not helpful when the flow of activities is too complex.
F
T/F: An activity diagram and the flow of activities in a fully developed use case description serve the same purpose.
T
T/F: 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).
F, it is.
T/F: In a system sequence diagram the order of the messages is determined by numbering the messages.
F
T/F: In a system sequence diagram a box refers to a class of objects.
F
T/F: A true/false condition on a sequence diagram indicates whether the message can be processed or not.
F
T/F: A loop frame and an asterisk mean the same thing in a sequence diagram.
T
T/F: On a sequence diagram, a message represents a service request.
T
T/F: An Opt frame and an Alt frame do essentially the same thing.
F
T/F: An Opt frame and a true/false condition on a message serve essentially the same purpose
T
T/F: Activity diagrams are not helpful in developing system sequence diagrams (SSDs).
F, it is helpful in developing system sequence diagrams
T/F: 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.
T
T/F: In a sequence diagram, a message is considered to be an action that is invoked on the destination object.
T
T/F: Activity diagrams cannot be used to describe processes that involve automated system activities.
F, it can.
T/F: In an activity diagram, a separate use case may used as part of the workflow.
T
Another way to think of a actor using a use case is as a(n) _______.
role
A unique set of internal activities within a use case which represents a unique path through the use case is called a(n) _______.
scenario
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.
b. The existence of domain model objects.
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.
b. What conditions prevent the system from successfully completing the use case.
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
a. An activity diagram
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
d. tie the exception condition to a processing step
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.
a. What objects must exist prior to the use case executes.
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
d. System sequence diagram
A vehicle object is denoted with the following label.
a. vehicle
c. Vehicle
b. Vehicle
d. :Vehicle (underlined)
d. :Vehicle (underlined)
In UML terminology in a sequence diagram, a message refers to a(n) _______.
a. input data
c. event
b. communication between actors
d. action
d. action
In a sequence diagram a horizontal dashed line represents what?
a. A return message
c. A lifeline
b. An input message
d. An event
a. A return message
In a sequence diagram the syntax of a message is given by the following:
[A] B := C (D) The letter B represents what?
b. return value
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
a. verb-noun
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.
d. The message is not sent.
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
b. State machine diagram
For real-world objects the state of an object is the same as its _______ .
a. lifeline
c. attribute values
b. status condition d. persistence
b. status condition
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
c. action expression
For real-world objects the state of an object is the same as its _______ .
a. lifeline
c. attribute values
b. status condition d. persistence
b. status condition
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.
a. Whether the transition fires.
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.
c. Before the object enters the destination state.
On a systems sequence diagram, ____ indicate(s) a true/false condition.
a. ( ) c. { }
b. [ ] d. *
b. [ ]
In a state machine diagram, a state is represented by a(n) ____.
a. oval
c. square
b. black dot
d. arrow
a. oval
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
b. concurrent behavior of a single object
Which of the following is NOT an element in a transition label?
a. trigger
c. guard condition
b. transition name d. action expression
a. trigger
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.
d. A transition to fire.
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.
c. Expand the name of each state to identify
A state machine diagram is used to document the states and transitions of a(n) ________.
Object
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
c. use case diagram and the problem domain class diagram
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.
a. developing new models allows the analyst to discard unnecessary diagrams.
Two methods to show a repeating message are: (Choose two)
a. Dashed arrow d. Opt frame
b. Brackets [ ]
e. Loop frame
c. Asterisk *
f. Alt frame
e. Loop frame
c. Asterisk *
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
f. Dashed arrow with value
a. value :=
A textual model that describes the processing details of a use case is called a(n) ________.
use case description
Use cases may have different “paths” or sequence of steps through the use case. These different paths are called _______ .
scenarios
A certain set of values or statuses that must exist before a use case begins is called a(n) _______.
precondition
A certain set of values or statuses that must exist after a use case completes its processing is called a(n) _______.
postcondition
The diagram model that is useful to document the flow of activities on a fully developed use case description is called a(n) _______ diagram.
activity
A diagram that shows the messages between an actor and the system is called a(n) _______.
system sequence diagram
Vertical dashed lines on a system sequence diagram are used to depict a(n) _________.
lifeline
An arrow on a system sequence diagram is used to depict a(n) what?
message
A box in a system sequence diagram refers to a(n) what?
object
On a sequence diagram when multiple messages are included within a repeating loop a(n) _______ is used to document it.
loop frame
On a sequence diagram a short notation that indicates a repeating message is a(n) _______.
asterisk
In a sequence diagram the syntax of a message is given by the following:
[A] B := C (D) The letter D represents what?
parameters
To show if-then-else condition on a sequence diagram use a(n) ______.
alt frame
A condition during an object’s life when it satisfies some criterion is called a(n) _______.
state
A condition during an object’s life when it satisfies some criterion is called a(n) _______.
transition
A UML diagram that shows the life of an object in states and transitions is called a(n) _______.
state machine diagram
When an object moves from one state to another the ending state is called a(n) _______ .
destination state
The beginning state of an object when its states are diagrammed is called a(n) _______.
pseudostate
In a state-machine diagram when an object is in multiple states at the same time it is called _______.
concurrency
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) ______.
composite state
Briefly describe the purpose of a system sequence diagram.
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.
List three types of frame notation in sequence diagrams.
Loop frame
Opt frame
Alt frame