OpenExamsFREE PRACTICE — ANY EXAM

Free UML 2 INTERMEDIATE EXAM Practice Questions

100 free questions · Answer explanations · No signup required

View examination details, outline and sources

Loading selected examination banks…

Sample Practice Questions

Try these 10 sample questions from the UML 2 INTERMEDIATE EXAM practice bank. Each includes the answer and explanation. Continue with the interactive practice above to review the full question set.

  1. 1An activity starts with three initially enabled InitialNodes. What initial control-token offers do these nodes make?

    1. A.Each node offers one control token on becoming enabled.Correct answer: A
    2. B.Only the first enabled node offers a control token.
    3. C.The three nodes jointly offer one shared control token.
    4. D.Each node first receives a token on an incoming edge.

    Explanation: The Eclipse UML2 API describes the UML node as follows: "An InitialNode is a ControlNode that offers a single control token when initially enabled." Applied separately to the three initially enabled nodes, this means one initial control-token offer from each node. They do not select a single active node or pool their offers into one shared token. The documented constraint is: "An InitialNode has no incoming ActivityEdges." An InitialNode therefore does not first receive a token through an incoming edge. These rules agree with the initialization semantics checked in UML 2.5.1 clause 15.3.3.1.

    Reference: Eclipse UML2 API — InitialNode — InitialNode interface, model-object description

  2. 2A namespace N contains a member named x. Which UML qualified name identifies that member through N?

    1. A.N.x
    2. B.N/x
    3. C.N::xCorrect answer: C
    4. D.N->x

    Explanation: UML 2.5.1 states: "the member can be referred to by a qualified name of the form N::x." UML uses the double-colon separator for namespace qualification.

    Reference: OMG Unified Modeling Language 2.5.1 — 7.4.3.1, Namespaces

  3. 3Two events lie on one Lifeline outside any parallel CombinedFragment or coregion, with no timing constraints. What does their vertical spacing establish?

    1. A.Their exact elapsed duration in milliseconds
    2. B.Their execution on different processor threads
    3. C.Their relative order, not a literal duration measurementCorrect answer: C
    4. D.Their minimum required delay in scheduler cycles

    Explanation: UML 2.5.1 states: "The distance between two events on a time-line does not represent any literal measurement of time" Time runs down the lifeline, but drawing distance is not a quantitative time scale.

    Reference: OMG Unified Modeling Language 2.5.1 — 17.3.3.1, Lifelines

  4. 4A StateMachine is processing an event. Under run-to-completion, when is another pending event dispatched, absent exceptions or asynchronous destruction?

    1. A.When any enabled transition begins its effect
    2. B.When its triggering event enters the event pool
    3. C.After the current event completes and a stable configuration is reachedCorrect answer: C
    4. D.As soon as a higher-priority event is detected by the context object

    Explanation: UML 2.5.1 states: "a pending Event occurrence is dispatched only after the processing of the previous occurrence is completed and a stable state configuration has been reached." Run-to-completion serializes event processing at stable configurations; it does not define priority-based interruption by a new event.

    Reference: OMG Unified Modeling Language 2.5.1 — 14.2.3.9.1, The run-to-completion paradigm

  5. 5A replacement Component is proposed for an existing system. What provides UML's stated basis for substitutability?

    1. A.Reusing exactly the original Component's realizing Classifiers
    2. B.Keeping the original Component's artifact packaging unchanged
    3. C.Offering equivalent functionality through compatible InterfacesCorrect answer: C
    4. D.Using the original Component's deployment target and location

    Explanation: UML 2.5.1 states: "A Component is a substitutable unit that can be replaced at design time or run-time by a Component that offers equivalent functionality based on compatibility of its Interfaces." Compatibility of the external contract permits replacement without requiring identical realizing classifiers, packaging or deployment location.

    Reference: OMG Unified Modeling Language 2.5.1 — 11.6.3.1, Components

  6. 6An object receives a message invoking an Operation. Which event concept models that receipt?

    1. A.A TimeEvent for a relative instant
    2. B.A CallEvent for the invoked OperationCorrect answer: B
    3. C.A ChangeEvent for a Boolean condition
    4. D.A SignalEvent for an asynchronous Signal

    Explanation: UML 2.5.1 states: "A CallEvent models the receipt by an object of a message invoking a call of an Operation." A call event concerns receipt of an operation invocation, unlike a signal reception, time instant or condition change.

    Reference: OMG Unified Modeling Language 2.5.1 — 13.4.3.1, CallEvent description

  7. 7Within a StructuredClassifier, which owned attributes are specifically called parts?

    1. A.Those whose isComposite property is trueCorrect answer: A
    2. B.Those whose isReadOnly property is true
    3. C.Those whose visibility is public
    4. D.Those whose multiplicity is unlimited

    Explanation: UML 2.5.1 states: "Those ownedAttributes of a StructuredClassifier that have isComposite = true (see 9.5.3) are called its parts." Parts are the composite subset of roles; read-only status, visibility and multiplicity do not define that subset.

    Reference: OMG Unified Modeling Language 2.5.1 — 11.2.3.2, Parts and Roles

  8. 8Classifier S specializes Classifier G. Which instance-classification statement follows from that Generalization?

    1. A.Every G instance must also be a direct instance of S.
    2. B.S and G must have exactly the same direct instances.
    3. C.Every S instance is also an indirect instance of G.Correct answer: C
    4. D.An S instance ceases to be an instance of G.

    Explanation: UML 2.5.1 states: "An instance of a Classifier is also an (indirect) instance of each of its generalizations." The instance relationship follows from specific to general; it does not require every general instance to belong to that specialization.

    Reference: OMG Unified Modeling Language 2.5.1 — 9.2.3.2, Generalization

  9. 9One branch of an activity should end without stopping its other branches. Which control node expresses this intent?

    1. A.An ActivityFinalNode at the end of the branch
    2. B.A FlowFinalNode at the end of the branchCorrect answer: B
    3. C.A JoinNode at the end of the branch
    4. D.A MergeNode at the end of the branch

    Explanation: The publisher's FlowFinalNode description states: "A FlowFinalNode is a FinalNode that terminates a flow by consuming the tokens offered to it." It consumes the tokens offered to this branch-ending node. The contrasting ActivityFinalNode description states: "An ActivityFinalNode is a FinalNode that terminates the execution of its owning Activity or StructuredActivityNode." Ending the branch without terminating the owning activity therefore calls for FlowFinalNode. JoinNode synchronizes flows and MergeNode combines alternate flows; neither is a final node.

    Reference: Eclipse UML2 API — FlowFinalNode — FlowFinalNode interface, model-object description

  10. 10What does UML permit regarding the name of a NamedElement?

    1. A.It must be unique across the entire model.
    2. B.It must be a nonempty string for every element.
    3. C.It must be calculated from the element's owning type.
    4. D.It may be absent, which differs from an empty name.Correct answer: D

    Explanation: UML 2.5.1 states: "The name of a NamedElement is optional, which provides for the possibility of the absence of a name (which is different from the empty name)." The metaclass name does not make a supplied name mandatory; absence and an empty string are distinct.

    Reference: OMG Unified Modeling Language 2.5.1 — 7.4.3.2, Named Elements

Exam Review

About UML 2 INTERMEDIATE EXAM

UML 2 INTERMEDIATE EXAM · US

Key exam facts

Provider
Object Management Group (OMG) UML certification examination; administered by Pearson VUE at secure test centers or online through Pearson OnVUE.
Format
Multiple choice (text and images), at a secure test center or online; English. Passing the UML 2 Foundation exam is a prerequisite; training is optional.
Exam questions
Total questions: 90.
Time limit
105 minutes in native English-speaking countries, including the US; 135 minutes in all others. Extra time is confirmed by email after exam order completion.
Passing score
At least 51/90 correct answers; the official sheet also expresses this as at least 57% correct answers.
Exam fee
US$350 plus taxes, or regional currency equivalent and taxes. Applicable discounts/promotions may apply; the score report offers a 20% retake discount.

Topics covered

  • Activities & Actions (20%)

  • Basic Structure (16%)

  • Interactions (14%)

  • StateMachines & Use Cases (13%)

  • Components (12%)

  • Common Behavior (10%)

  • Structured Classifiers (9%)

  • Classification (6%)

How to prepare

Work through the topics, read the explanation after each answer, and revisit the areas where you miss questions. Use the official outline and reference materials below to guide your study.

These independent practice questions are not actual exam items and do not guarantee a passing result.

Frequently asked questions

What is the exam format?

Multiple choice (text and images), at a secure test center or online; English. Passing the UML 2 Foundation exam is a prerequisite; training is optional.

How many questions are on the exam?

Total questions: 90.

How long is the exam?

105 minutes in native English-speaking countries, including the US; 135 minutes in all others. Extra time is confirmed by email after exam order completion.

What is the passing score?

At least 51/90 correct answers; the official sheet also expresses this as at least 57% correct answers.

How much does the exam cost?

US$350 plus taxes, or regional currency equivalent and taxes. Applicable discounts/promotions may apply; the score report offers a 20% retake discount.

Official sources and references

Confirm current exam arrangements with the exam provider.