OMG-OCUP2-FOUND100 practice question 13 of 15
When is a state machine for an object created and ready to accept events?
Full set: 89 questionsA state machine is an integral part of an object's behavior, defining its lifecycle and responses to events. The state machine is instantiated and becomes active as part of the creation process of its context object. This process is complete only after the object's attributes are initialized and its constructor has finished execution. At this point, the state machine's initial transition is taken, placing the object in its first stable state. From this moment, the object and its state machine are ready to accept and process events from the environment.
A. The end of the last state signifies the termination of the object's lifecycle or a specific behavior, not its creation or readiness to accept events.
B. Sequence diagrams model interactions between objects; they do not govern the lifecycle or creation time of an object's state machine.
D. Object lifecycles are typically independent. An object's state machine becomes active when that specific object is ready, not when all objects in the entire system are.
1. Object Management Group. (2017). OMG Unified Modeling Language (OMG UML), Version 2.5.1. OMG Document Number formal/2017-12-05. Section 14.2.3.1, "StateMachines," p. 306, describes a state machine as specifying the behavior of its context classifier throughout its lifetime.
2. Douglass, B. P. (2004). Real-Time UML, Third Edition: Advances in The UML for Real-Time Systems. Addison-Wesley Professional. Chapter 11, "State-Oriented Analysis and Design," explains that an object enters its initial state as the last step of its construction process.
Keep practicing
Take the free OMG-OCUP2-FOUND100 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other OMG-OCUP2-FOUND100 practice questions
- Question 4Which scenario would be modeled most appropriately in a state machine?
- Question 5In UML modeling, what is a Constraint?
- Question 7Which statement is correct regarding object (lows and control flows?
- Question 11Which category of stakeholders should have prime responsibility for making decisions on t…
- Question 12Which semantics differentiate a pseudostate from a regular state in a UML state machine?
- Question 14Which UML term pair captures complementary ways of looking at a relationship?
