Behavioral Modeling Chapter 6 Test Questions & Answers - Systems Analysis with UML 6th Edition | Test Bank with Key by Dennis and Wixom by Dennis Wixom, Tegarden. DOCX document preview.
Chapter 6 Behavioral Modeling
Testbank
Multiple Choices
- The external behavior of a system is described by _____.
a. functional models
b. structural models
c. behavioral models
d. interaction diagrams
e. statechart diagrams
- An analyst depicts the static view of an information system with _____.
a. use-case models
b. structural models
c. behavioral models
d. interaction diagrams
e. statechart diagrams
- The two types of interaction diagrams are ______________ diagrams.
a. use-case and sequence
b. class and sequence
c. sequence and communication
d. object and communication
e. statechart and object
- The modeling focus of the interaction diagram is at the _____ level while the modeling focus on the class diagram is at the _____ level.
a. class, object
b. interaction, class
c. class, interaction
d. object, class
e. high, low
- A(n) _____ is an instantiation of a class.
a. attribute
b. behavior
c. operation
d. message
e. object
- A(n) _____ describes information about an object.
a. attribute
b. behavior
c. operation
d. message
e. instance
- _____ are information that is sent to objects to tell it to execute one of its behaviors.
a. Attributes
b. Operations
c. Messages
d. Instances
e. use-cases
- Analysts use _____ to show the objects that participate in a use case and the messages that pass between the objects over time for one particular use case.
a. structural models
b. sequence diagrams
c. collaboration diagram
d. class diagrams
e. behavioral state machines
- When arranging actors and objects on a sequence diagram, it is nice to list them _____.
a. in alphabetical order down the side of the diagram
b. in alphabetical order across the top of the diagram
c. in order in which they participate in the sequence down the side of the diagram
d. in order in which they participate in the sequence across the top of the diagram
e. actors and objects are not both shown on a sequence diagram
- Which of the following objects would be most likely to be destroyed at some point in time in a sequence diagram?
a. customer
b. order
c. order item
d. invoice
e. shopping cart
- A systems analyst draws a lifeline with an X at the end. This lifeline represents _____.
a. a message that cannot be delivered
b. an object that is destroyed at a point in time
c. a message that is delivered at that point in time
d. an object that is complete at that point in time
e. an object that arrives at its final destination
- The focus in a sequence diagram is on __________________
a. How actors interact with objects to realize a given use case
b. Messages sent by actors to other objects
c. when an object is being created
d. when messages are being destroyed
e. time ordering of messages being passed between objects
- On a sequence diagram, an object name of Students:List would indicate that _____.
a. Students is an instance of the List class that contains individual student objects
b. List is an instance of the Students class
c. List is a method of the Students class
d. the Students and Lists objects are combined for that step in the sequence diagram
e. a message is being passed from the Students class to the List class
- The order of messages on a sequence diagram goes from ____ to _____.
a. right to left
b. bottom to top
c. left to right
d. top to bottom
e. left to right, top to bottom
- When an object sends a message to itself in a sequence diagram that is referred to as _____.
a. recursive-messaging
b. self-messaging
c. self-delegation
d. recursive-delegation
e. none of these
- The first step in building a sequence diagram is to _____.
a. set the context
b. identify which objects will participate
c. set the lifeline for each object
d. add the focus of control to each object’s lifeline
e. validate the sequence diagram
- The acronym CRUD stands for _____.
a. create, read, update, delete
b. create, reference, underline, delete
c. create, re-do, underline, delete
d. collaborate, read, update, delete
e. collaborate, reference, update, discard
- A behavioral state machine is a dynamic model that shows the different state through which a single _____ passes through its life in response to events, along with its responses and actions.
a. object
b. actor
c. use case
d. sequence diagram
e. communication diagram
- A set of rules are used for performing the verification and validation walkthrough of behavioral model. One of the rules is: if there is a message on the sequence diagram, there must be _________________on the communications diagram, and vice versa.
a. a communication
b. a message
c. a behavior
d. a dependence
e. an association
- A set of rules are used for performing the verification and validation walkthrough of behavioral model. One of the rules is: all entries in a CRUDE matrix imply _____________ being sent from an actor or object to another actor or object.
a. a message
b. a transition
c. an association
d. a guard condition
e. a behavior
- A set of rules are used for performing the verification and validation walkthrough of behavioral model. One of the rules is: all _______________ contained in a behavior state machine must be associated with a message being sent on a sequence and communication diagram, and it must be classified as a (C)reate, (U)pdate, or (D)elete message in a CRUDE matrix.
a. messages
b. behaviors
c. transitions
d. associations
e. dependences
True/False
- Modeling the real world in behavioral models is relatively easy.
- As behavioral models are developed, it is likely that the use cases and structural models will have to be modified.
- Each object can both send and receive messages.
- A sequence diagram can only be drawn to represent a single scenario in a use case.
- Actors and objects are placed on a sequence diagram in no particular order.
- The destruction of temporary objects is shown on sequence diagrams with an X at the end of the lifeline.
- When an object sends a message to itself, it is called self-messaging.
- It is possible for an object to create another object, resulting in the message going directly to the object, not its lifeline.
- If you are interested in the time ordering of the messages in a system, you should use a communication diagram.
- Both the communication diagram and the sequence diagram can show return messages.
- A message with the information [a Student exists] will be sent only when this condition is true.
- The first step in drawing a communication diagram is to identify which objects and associations between the objects participate in the communication.
- In a CRUD matrix, C represents Create.
- When creating a CRUD matrix, you should use the letter U to represent Underline.
- CRUD matrices are created by creating a matrix that lists the classes across the top and down the side.
- Conditions on conditional messages in communication diagrams are placed in [ ] symbols.
- Adding messages is the last step in building a communication diagram?
- If a class represents only temporary objects, then there should be a D in the column of the CRUD matrix.
- CRUD matrices are useful in the step “Set the Context” of building a collaboration diagram?
- Events are the triggers that cause an object to move from one state to another.
- A guard condition is a Boolean expression, which allows a transition to occur only if a condition is satisfied.
- The following symbol represents the destruction of a temporary object in a sequence diagram.
- An execution occurrence in a sequence diagram denotes when an object is sending or receiving messages.
- An execution occurrence in a sequence diagram is represented using thick dashed lines with arrows that are placed on top of the life lines.
- Return messages in a sequence diagram are often shown using dashed lines with arrows labeled with the return value.
- One of the guidelines for creating sequence diagram is: Place the initiator of the scenario on the right of diagram.
- The communication diagram is used for modeling process flow.
- Only create behavioral state machine for “complex” objects.
- Using detail and descriptive names for states when creating behavioral state machine.
- Every actor and object included on a sequence diagram must be included as an actor and an object on a communication diagram, and vice versa.
- If there is a message on the sequence diagram, there must be an association on the communications diagram, and vice versa.
- Some entries in a CRUDE matrix does not imply a message being sent from an actor or object to another actor or object.
- System analysts use behavioral models to depict the internal structural or static view of an information system.
- System analysts use structural models to depict the internal structural or static view of an information system.
Short Answer
- Describe sequence diagrams.
- Describe communication diagrams.
- What is a sequence diagram used for? Why would an analyst choose a sequence diagram over a communication diagram?
- When drawing a sequence diagram, the analyst uses lifelines and a symbol to represent the execution occurrence. It is also possible for an object to be destroyed at some point in time. Explain these three concepts – what is a lifeline, what does the execution occurrence mean, and how it is possible that an object can be destroyed in a use case. Show the diagramming symbols used to represent each of these concepts.
An execution occurrence symbol is placed on the lifeline to represent when that particular object is sending or receiving messages. Thus, it shows when, in the life of the object, it is the focus of the use case. The focus of control is drawn as a long, narrow rectangle that is placed on top of the vertical lifeline.
An object may be destroyed in a use case if it is a temporary object. For example, a web-based shopping cart will disappear once checkout occurs. If there is a temporary object, the lifeline is shortened, and an X is placed at the bottom of the lifeline to represent the end of the life.
- List the steps that an analyst should go through to build a sequence diagram.
- Set the context – is it a system, a use case, a scenario of a use case, or an operation of a class
- Identify which objects will participate
- Set the lifeline for each object
- Lay out the messages from the top to the bottom of the diagram based on the order in which they are sent
- Add the execution occurrence to each object’s lifeline
- Validate the sequence diagram
- How does a communication diagram differ from a sequence diagram? Why would an analyst choose to draw a communication diagram?
- Identify the steps that an analyst would follow in building a communication diagram.
- Set the context, which may be a system, a use case, a scenario of a use case, or an operation of a class
- Identify which objects (actors) and the associations between the objects that participate in the collaboration
- Lay out the communication diagram
- Add the messages
- Validate the communication diagram
- What does the acronym CRUD stand for? Why would an analyst create a CRUD matrix during his analysis?
- When looking at a CRUD matrix, why would it be important to see “D” in a column for a temporary object, or to not see “D” or “U” in a column for objects in a data warehouse?
A data warehouse is supposed to maintain historical information, so one would not expect to see the data deleted (D), and in most cases, it should not be updated either (U), since the data warehouse should be reflecting the historical values, not updated ones. Hence, objects that represent a data warehouse should not have U or D underneath them in the CRUD matrix.
- Think of an employee object. What are several of the possible states that that object may have over time? Which of these states would be the initial state? Which would be the final state?
- New Employee (initial state)
- Former Employee (final state)
- Current Employee
- Probationary Employee
- Explain the term transition.
- Explain the terms event, action and activity.
17. How are guard conditions shown on a behavioral state machine?
The Boolean expression is placed in brackets and located along the relevant transition.
- What kinds of events can lead to state transitions on a behavioral state machine?
- Data value change: a change in one of the data values that collectively describe the state of the object. For example, a patient transitions from “new” to “existing” after the first visit.
- Boolean condition: a Boolean test that is applied at a certain point. For instance, after a patient transitions to “existing” we may ask the question “is the patient insured?” which would lead to state changes based on billing policies.
- Time lapse: after a certain amount of time in a given state, the object may spontaneously change to a different state. For instance, a patient that is in state “inactive” (perhaps because he/she has no future appointments), may be removed from the system after 5 years.
Document Information
Connected Book
Systems Analysis with UML 6th Edition | Test Bank with Key by Dennis and Wixom
By Dennis Wixom, Tegarden