Black Friday week: every question bank $9 instead of $15. Ends Monday, Nov 30.
Home › OCUP 2 Advanced › Practice questions › Actions
OCUP 2 Advanced · OMG · Actions · Bank updated 2026-11-28

OMG OCUP 2 Advanced (UML 2 Advanced) practice questions: Actions

5 free questions from 15 on this area · answer and explanation for each · no sign-up

These 5 questions come from the Actions section of ExamDeck's OMG OCUP 2 Advanced (UML 2 Advanced) bank: 15 of its 172 original questions are on this area, which carries 7% of the real exam. Each is open without sign-up, with the correct answer, the reasoning for every option and its source. In all, 65 OMG OCUP 2 Advanced (UML 2 Advanced) questions are open on the practice pages; a free account adds 6 more in study mode.

Questions on this page last changed 28 Nov 2026. Exam facts checked 8 Nov 2026.

Try 6 free OCUP 2 Advanced questions → All OCUP 2 Advanced sample questions

Free: 6 questions in study mode, no card. All 15 Actions questions and the full OCUP 2 Advanced bank: $9 (regularly $15) one-time.

How this bank fits the current exam. The bank has questions in all eleven of OMG's areas, but not yet in the exam's proportions: Common Structure (21% of the exam), The MOF & Metamodeling (12%) and Interactions (9%) are covered more thinly than their weight. Our questions come only from the open OMG specifications - UML 2.5.1, MOF 2.5.1, fUML 1.5 and Alf 1.1 - not from the books on the info sheet's study list. The full exam blueprint → Source: OMG UML 2 Advanced exam info sheet
1/5 · Actions · hard
A class Account has an attribute balance with a default value of 0 and also has a classifierBehavior. An Activity runs a CreateObjectAction for Account and passes the result to a later action. What is true of the object on the result pin right after the CreateObjectAction completes?
A. it is a direct instance of Account with no value for balance and no running behavior
B. it is a direct instance of Account with balance set to 0 and no running behavior
C. it is a direct instance of Account with balance set to 0 and its classifierBehavior executing
D. it is a direct instance of Account with no value for balance and its classifierBehavior executing
Answer: A. Instantiation by a CreateObjectAction is all that happens: the result is a direct instance of the classifier, but nothing runs, defaults are not evaluated and no state machine transitions fire. The new object therefore holds no feature values, and its behavior stays idle until it is explicitly started.
  • A. UML 2.5.1, 16.4.3.1: no behaviors execute, no default value expressions are evaluated, and the new instance has no values for its structural features.
  • B. Half-truth: the classifierBehavior is not started, but default value expressions are not evaluated either, so balance has no value (16.4.3.1).
  • C. Mirrors ordinary constructor semantics; the action has no other effect than creating the instance (16.4.3.1).
  • D. Behaviors do not start on instantiation; a start action must be used explicitly (16.4.3.1, 16.3.3.1).
Source: OMG Unified Modeling Language 2.5.1 (formal/17-12-05), 16.4.3.1, p. 500 · Actions / 16.4.3.1 Create Object Actions / effect of instantiation
2/5 · Actions · hard
A StructuredActivityNode is nested in an Activity whose other nodes are still running. Inside the structured node, a token reaches an ActivityFinalNode. What is the result?
A. the structured node ends and all its tokens are destroyed, OutputPins included
B. the structured node and its contents terminate, and the surrounding Activity continues
C. only the flow that reached the final node ends, and other nodes inside the structured node continue
D. the whole Activity terminates, including the nodes outside the structured node
Answer: B. An ActivityFinalNode inside a StructuredActivityNode terminates only the immediately containing structured node and its contents. When it completes, executions within it end and tokens are destroyed except those on its OutputPins; the enclosing Activity is unaffected.
  • A. Tokens on the OutputPins of the structured node survive completion and are offered on outgoing edges; the others are destroyed (16.11.3.1).
  • B. 16.11.3.1: the final node terminates only the immediately containing StructuredActivityNode and its contents.
  • C. Ongoing executions within the node are all terminated on completion (16.11.3.1).
  • D. In an Activity, a final node ends the Activity, but one inside a structured node ends only that node (16.11.3.1).
Source: OMG Unified Modeling Language 2.5.1 (formal/17-12-05), 16.11.3.1, p. 518-519 · Actions / 16.11.3.1 Structured Activity Nodes / ActivityFinalNode scope
3/5 · Actions · hard
An OutputPin of an Action has multiplicity 2..*. Two values from an earlier execution of the Action are still on the pin because nothing downstream has accepted them. The current execution has so far produced one value for the pin. What applies to the current execution?
A. it may terminate now, with the pin's three values counted toward the lower bound
B. it may terminate now, adding a null token that stands in for the second value
C. it may terminate once downstream nodes have accepted the two earlier values
D. it cannot terminate itself until it can put two values of its own on the pin
Answer: D. Pin multiplicity bounds constrain the values input or output by a single execution of an Action. An Action cannot terminate itself unless it can put at least the lower-bound number of values into its outputs, and leftovers from previous executions are excluded from that count.
  • A. Values left over from previous executions are not included when the minimum for the current execution is checked.
  • B. A null token contains no values, so it does not make up the number of values required by the lower bound.
  • C. Removing the earlier values changes nothing: the current execution still has supplied fewer values than the lower bound requires.
  • D. The lower bound applies to each execution, and values remaining from earlier executions do not count toward it (16.2.3.3).
Source: OMG Unified Modeling Language 2.5.1 (formal/17-12-05), 16.2.3.3, p. 444-445 · Actions / 16.2.3.3 Pins / OutputPin lower multiplicity per execution
4/5 · Actions
An Activity invokes a Behavior through a CallBehaviorAction with isSynchronous=false. Later, while the invoked Behavior is executing, it raises an exception. How does the call affect the calling Activity at that moment?
A. the exception propagates out of the CallBehaviorAction into the calling Activity
B. the calling Activity proceeds independently and does not receive it through the call
C. the exception is held back and raised in the calling Activity when that Activity ends
D. the CallBehaviorAction delivers the exception as a value on a result OutputPin
Answer: B. An asynchronous CallAction completes as soon as the Behavior has been invoked. From then on the containing Behavior executes independently and concurrently, and exceptional conditions in the invoked Behavior are handled apart from the caller. Only a synchronous call passes an exception out of the CallAction.
  • A. Propagation out of the CallAction is the rule for a synchronous call, where the Action is still waiting for the invoked Behavior.
  • B. After an asynchronous call completes, the caller runs independently of the invoked Behavior, including its handling of exceptional conditions (16.3.3.1).
  • C. The standard defines no deferred delivery. Exception handling of the invoked Behavior is separate from the caller after an asynchronous call.
  • D. An asynchronous call cannot return result values, and only synchronous CallActions can have result OutputPins.
Source: OMG Unified Modeling Language 2.5.1 (formal/17-12-05), 16.3.3.1, p. 450-452 · Actions / 16.3.3.1 Call Actions / exceptions in asynchronous calls
5/5 · Actions · hard
The classifierBehavior of a part inside a Printer object executes a SendSignalAction that targets that Printer with onPort set to its Port ctl. A provided Interface and a required Interface of ctl both have a Reception for the Signal. Where is the invocation directed?
A. into the Printer through the Port, by way of its provided Interface
B. both into and out of the Printer, with one Signal instance each way
C. out of the Printer through the Port, by way of its required Interface
D. to no defined destination, with the semantics of the case left open
Answer: C. An Action executes inside an object when its context object is that object or is owned by it through composition, which covers behaviors of its parts. If the invoked feature is on both a provided and a required Interface of the Port, an invocation from inside goes out through the Port; otherwise it goes in.
  • A. With the Reception on both sides, the invocation goes inward only when the Action executes other than inside the target object. A part's behavior counts as inside.
  • B. The invocation takes one direction. No rule duplicates the Signal when both kinds of Interface have the Reception.
  • C. The part belongs to the Printer, so the Action executes inside it, and a feature on both sides is then sent outward (16.3.3.3).
  • D. Undefined semantics arise for a feature found only on a required Interface when the Action runs outside the target, which is not this case.
Source: OMG Unified Modeling Language 2.5.1 (formal/17-12-05), 16.3.3.3, p. 453 · Actions / 16.3.3.3 Invocation Actions and Ports / feature on provided and required Interfaces
Try 6 more free OCUP 2 Advanced questions → See the whole OCUP 2 Advanced bank

Other OCUP 2 Advanced areas

The same kind of free sample for every other section of the OCUP 2 Advanced bank:

Alf14 qfUML15 qThe MOF & Metamodeling12 qCommon Structure37 qClassification8 qStateMachines14 qCommon Behavior12 qStructured Classifiers14 qActivities18 qInteractions13 q

Practise OCUP 2 Advanced with instant feedback

6 free questions in study mode · no card · full OCUP 2 Advanced bank with area filters and the error log: $9 (regularly $15) one-time · no dumps, no ads.

Start OCUP 2 Advanced free →
Read next
OCUP 2 Advanced: Who Needs the Top UML Certification and How It Differs from Intermediate OCUP 2 Advanced costs $350, needs Foundation and Intermediate and puts 24% of the exam on MOF, fUML and Alf. Who needs the top UML level and who can stop.
ExamDeck is an independent study tool, not affiliated with, endorsed by, or sponsored by OMG. OCUP 2 Advanced and related marks are trademarks of their respective owners, used for identification only. Exam facts checked against official OMG materials (as of November 2026); always confirm current details with the vendor before booking.