OMG-OCUP2-FOUND100 practice question 4 of 15
Which scenario would be modeled most appropriately in a state machine?
Full set: 89 questionsA state machine captures an entity whose behavior is governed by a finite set of discrete, mutually-exclusive states and well-defined transitions among them. Phase changes of H₂O—ice → water → steam—are exactly such a phenomena: clear physical states, deterministic transitions triggered by temperature/pressure conditions. Therefore this scenario is most naturally represented by a UML state machine.
A. Button interactions are better modelled by a user-interface activity or sequence diagram.
B. Client-server message exchanges are protocol interactions; sequence or communication diagrams suit better.
C. Data flows are modelled with activity or data-flow diagrams.
E. System-level overview with many collaborating components exceeds the focus of a single state machine; composite interaction diagrams are preferable.
1. OMG UML 2.5.1, §14 “State Machines”, p. 301 (definition and intent).
2. Fowler, M. “UML Distilled”, 3 rd ed., §9 (examples of physical-state modelling).
3. University of Toronto CSC407 course notes, “Using State Machines for Physical State Modelling”, 2018, pp. 4-5.
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 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 13When is a state machine for an object created and ready to accept events?
- Question 14Which UML term pair captures complementary ways of looking at a relationship?
