OMG-OCUP2-FOUND100 practice question 12 of 15

Which semantics differentiate a pseudostate from a regular state in a UML state machine?

Full set: 89 questions
Answer options
A: A pseudostate must have an outgoing transition
B: An outgoing transition from a pseudostate must always terminate on a regular state.
C: A pseudostate is transient and so cannot be the termination point of a run- to-completion step. Correct answer
D: The outgoing transitions of a pseudostate must have triggers that consist exclusively of guard conditions.
Correct Answer:
C. A pseudostate is transient and so cannot be the termination point of a run- to-completion step.
Explanation

The fundamental semantic difference between a pseudostate and a regular state is that a pseudostate is transient. A state machine passes through a pseudostate but never rests in it. This means a pseudostate cannot be the final configuration at the end of a run-to-completion step. A run-to-completion step continues until a stable state configuration (i.e., resting in one or more regular states) is reached. Pseudostates are intermediate vertices used to direct the flow of a transition.

Why Incorrect

A. This is not universally true. For example, the terminate pseudostate has no outgoing transitions by definition.
B. This is false. A transition from one pseudostate (e.g., a choice point) can lead directly to another pseudostate (e.g., a junction point).
D. This is false. While outgoing transitions from a choice pseudostate are distinguished by guards, this is not a requirement for all pseudostate types.

References

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.7, "Pseudostate," p. 319, states, "In contrast to a State, a Pseudostate is a transient Vertex... This means that a Pseudostate cannot be the source or target of a transition in a way that would permit it to become the current state of the StateMachine."

2. Pilone, D., & Pitman, N. (2005). UML 2.0 in a Nutshell. O'Reilly Media. Chapter 10, "State Machine Diagrams," section on "Pseudostates."

Scroll to Top