Chapter 6 Behavioral Modeling Practice Questions PDF

Document Details

PoignantWisdom2930

Uploaded by PoignantWisdom2930

null

Tags

behavioral modeling interaction diagrams state machines software engineering

Summary

This document contains practice questions on the topic of Chapter 6 Behavioral Modeling. It covers various aspects of the subject, such as interaction diagrams, state machines, and their applications in software engineering.

Full Transcript

**Chapter 6 Behavioral Modeling\ Practice Questions** 1. The modeling focus of the interaction diagram is at the \_\_\_\_\_ level a. class b. interaction c. use case d. object e. high 2. A(n) \_\_\_\_\_ describes information about a class. f. attribute...

**Chapter 6 Behavioral Modeling\ Practice Questions** 1. The modeling focus of the interaction diagram is at the \_\_\_\_\_ level a. class b. interaction c. use case d. object e. high 2. A(n) \_\_\_\_\_ describes information about a class. f. attribute g. behavior h. operation i. message j. instance 3. Which of the following are examples of a behavioral model: k. Activity diagram with swimlanes l. Sequence diagram m. Behavioral State Machine diagram n. CRUDE Matrix o. All of them 4. Behavioral state machine diagrams are drawn for all objects in the system. p. True q. False 5. A sequence diagram is used for an use case scenario whereas a behavioral state machine is used for a complex object. r. True s. False Answers: 1\. d, 2.a, 3.e, 4. False, because behavioral state machines are made only for the complex objects, 5. True 1. Behavioral models describe the internal dynamic aspects of an information system that supports the business processes in an organization. Behavioral modeling describes that things that happen and changes that occur during use of a system whereas structural modeling describes the essentially permanent elements of the system. 2. 3. 4. **\ ** 5. 6. 7. Objects have behaviors that are described by operations. The state of an object at a given point in time is the collection of data available. The purpose of behavior is largely to transition the object from one state to a new state. 8. **\ ** 9. 10. 11. **\ ** 12. 1. The context of the sequence diagram must be determined. Usually, this is a scenario from a use case. 2. The objects to be used in the sequence being modeled are identified. 3. The lifeline for each object is set. 4. Messages are added to the diagram. 5. The focus of control on each object\'s lifeline is drawn in. 6. The sequence diagram is validated to make sure that all steps in the process have been accounted for. 13. 14. Most of the time they are. The exceptions are the initial state and the final state. These are shown with a filled in circle for initial state and a \"bullseye\" circle for the final state. 15. **\ ** 16. 1. 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. 2. 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. 3. 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. 17. 1. Determine the context of the behavioral state machine, usually a class. 2. Identify the various states that an object will have over its lifetime including the boundaries of initial and final states. 3. Determine the sequence through the states that the object can pass over its lifetime. 4. Identify events, actions, and guard conditions associated with the transition between states. 5. Validate the behavioral state machine that it is possible to reach the final state and that it is possible to leave each state, except the final state. 18. **\ ** 19. 20. 21.

Use Quizgecko on...
Browser
Browser