Black Friday week: every question bank $9 instead of $15. Ends Monday, Nov 30.
Home › OCUP 2 Advanced › Practice questions
OCUP 2 Advanced · OMG · Updated November 2026

OMG OCUP 2 Advanced (UML 2 Advanced) practice questions

Original & expert-reviewed · explanation for every option · no dumps

ExamDeck's OMG OCUP 2 Advanced (UML 2 Advanced) bank has 172 original questions. 65 of them are open without sign-up: 10 on this page and 55 across the 11 knowledge-area pages, each with the correct answer, the reasoning for every option and its source. A free account adds 6 more in study mode; the full bank is $9 (regularly $15) one-time.

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

Try 6 free OCUP 2 Advanced questions → See the OCUP 2 Advanced bank

Free: 6 questions in study mode, no card. Full OCUP 2 Advanced bank with mock exams and the error log: $9 (regularly $15) one-time, or every exam with All-Access for $19/mo or $119/yr.

65
Open, no sign-up
90
On the real exam
11
coverage areas
$0
To begin

What makes these different from dumps

An explanation for every option

Not just the right answer - why each wrong option is wrong, linked to the source. Wrong answers teach the most.

Real-format timed mocks

Sit full 90-question, 105-minute exams and get a readiness report by area - know when you're ready.

Spaced-repetition error log

Every miss comes back on a 1 → 3 → 7 → 16-day schedule, so the fixes actually stick.

Original and reviewed

Every question is written to test the concepts and reviewed before it ships - never copied or leaked “dumps”.

Read 10 OCUP 2 Advanced questions with answers below ↓

Try 10 real OCUP 2 Advanced questions - free, no sign-up

These 10 questions span 10 of the bank's 11 knowledge areas: 0 easy, 3 medium, 7 hard. The answer and the reasoning are shown under every question, with the source to read - no tap, no email wall.

1/10 · Alf · medium
A team writes four unrestricted names in Alf text. Which one breaks the lexical rules for unrestricted names?
A. 'On/Off Switch'
B. 'it\'s on again'
C. 'C:\data\files'
D. 'col\tname list'
Answer: C. Section 7.6 allows printable characters in an unrestricted name, with the single quote, backslash and non-printable characters only through escape sequences. Following a backslash with any character outside the table of escape sequences is an error, so the name containing a backslash followed by d is invalid.
  • A. Slashes and spaces are printable characters, so they are allowed inside the single quotes.
  • B. A single quote inside the name is allowed when written with the backslash escape sequence.
  • C. A backslash followed by d is not one of the allowed escape sequences, which is an error.
  • D. The backslash-t pair is the tab escape sequence, so a tab can be included this way.
Source: OMG Action Language for Foundational UML (Alf) 1.1 (formal/2017-07-04), 7.6 · Alf / 7.6 Names / unrestricted name escape sequences
2/10 · fUML · hard
An activity is executed by an executor at locus L1. Class Sensor has instances at L1 and other instances at L2, which is a separate locus in the same distributed deployment. The activity contains a read extent action for Sensor. What does this action yield when it fires?
A. references to the Sensor objects currently existing at L1
B. references to the Sensor objects existing at L1 and at L2
C. references to the Sensor objects at L1 plus those at L2 that the tool exposes
D. references to the Sensor objects created at L1 during this particular execution
Answer: A. In fUML, every object exists at exactly one locus, and the extent of a class is the set of its instances at that locus. A read extent action therefore queries only the extent at the locus where it runs. Objects at another locus are not visible, and objects that existed before the execution started belong to the extent as well.
  • A. The extent of a class is its extension at one locus, and a read extent action returns only the objects extant at the locus where it executes (8.7.1).
  • B. This treats the class extent as global. The standard limits an extent to a single locus, so objects at L2 are not returned.
  • C. The standard offers no normative mechanism for reaching objects on another locus; remote discovery is only an optional tool extension, not the semantics of read extent (8.3.1).
  • D. Objects persist at the locus unless destroyed, so pre-existing objects at L1 are part of the extent too (8.3.1, 8.8.1); the extent is not limited to this execution.
Source: OMG Semantics of a Foundational Subset for Executable UML Models (fUML) 1.5 (formal/2021-03-01), 8.7.1 · fUML 1.5 / 8.7.1 Overview / Extensional values and locus-bound extents
3/10 · The MOF & Metamodeling · hard
A metaclass defines a single-valued Boolean property named active with a default value of true. A client creates an element, then calls set(active, false), then calls set(active, true). What do isSet(active) calls return, in order: right after creation, after the first set, and after the second set?
A. false, true, false
B. false, true, true
C. true, true, false
D. false, false, false
Answer: A. For a single-valued property with a default, creation gives the default and isSet=false. An explicit set to a different value gives isSet=true. Setting it to the default value again gives isSet=false, as does unset.
  • A. Correct. A fresh element has isSet=false; writing a non-default value makes isSet=true; writing the default value again returns isSet to false (MOF 9.2).
  • B. Assumes any explicit set marks the property as set. For a property with a default, setting it to the default value leaves isSet=false (MOF 9.2).
  • C. Assumes a default value counts as set at creation. At creation isSet is false because the default is only applied, not explicitly written (MOF 9.2).
  • D. Assumes isSet never changes for a property with a default. Writing a value different from the default makes isSet true (MOF 9.2).
Source: OMG Meta Object Facility (MOF) Core Specification 2.5.1 (formal/2019-10-01), 9.2 · MOF Reflection / 9.2 Element / isSet with default values
4/10 · Common Structure · hard
A template Class named Cache has three formal TemplateParameters: Item, Capacity and Policy. Only Policy has a default. A bound Class is created with a single TemplateBinding holding substitutions for Item and Capacity. A reviewer has to classify the resulting bound element. How should it be classified?
A. partially bound, a template whose Policy parameter keeps its default
B. completely bound, with Policy implicitly bound to its default value
C. ill-formed until a substitution for Policy is added explicitly
D. completely bound only after a second binding states Policy's default
Answer: B. A TemplateParameter with a default is never unbound, because it has an implicit binding to the default even without an explicit TemplateParameterSubstitution. The binding that covers Item and Capacity therefore binds all parameters, and the result is a completely bound element, an ordinary element usable, for example, as a type.
  • A. This ignores the default. Policy has no explicit substitution but is not left unbound, so the element is not a template.
  • B. 7.3.3.3 notes that a parameter with a default can never be unbound, since it has an implicit binding to the default. All parameters are thus bound (7.3.3.1).
  • C. A substitution for a parameter with a default is optional; the default is used when no explicit TemplateParameterSubstitution exists (7.3.3.3).
  • D. No second binding is needed. The default already provides the binding for Policy, and extra bindings are not a prerequisite.
Source: OMG Unified Modeling Language 2.5.1 (formal/17-12-05), 7.3.3.3, p. 66-67 · Common Structure / 7.3.3.3 Template Bindings / default parameter and complete binding
5/10 · Classification · medium
A class diagram shows Person specialized as Student and Employee, with both arrows joined at one shared arrowhead. The only label on the set is the constraint {complete}. Which reading follows from the notation rules?
A. every Person is a Student or an Employee, possibly both
B. every Person is a Student or an Employee, and no Person is both
C. some Persons may be neither, and no Person is both
D. some Persons may be neither, and one Person may be both
Answer: A. When a GeneralizationSet shows only one of the constraints, the other one keeps its default value. The defaults are incomplete and overlapping. A set labeled only {complete} is therefore covering and overlapping: every Person falls into at least one specific classifier, and the specific classifiers may share instances.
  • A. Only one constraint is shown, so the other takes its default. The default for the overlapping/disjoint pair is overlapping, so the set is complete and overlapping (9.7.4).
  • B. This reads the set as complete and disjoint. Disjoint would have to be written; the omitted constraint defaults to overlapping (9.7.4).
  • C. This reads the set as incomplete and disjoint, which contradicts the stated {complete} and the default for the omitted side (9.7.4).
  • D. This is the full default pair {incomplete, overlapping}. The explicit {complete} replaces the incomplete default (9.7.4).
Source: OMG Unified Modeling Language 2.5.1 (formal/17-12-05), 9.7.4, p. 162-164 · classification / 9.7.4 Notation / GeneralizationSet constraints and default values
6/10 · StateMachines · medium
A state machine has a composite state Processing with an exit behavior. Its active substate Verifying has its own exit behavior and a doActivity that is still running. A transition from Verifying targets a terminate pseudostate. What happens when that pseudostate is reached?
A. execution stops at once, no exit behavior runs, and the doActivity is aborted
B. Verifying exits first, then Processing exits, and the machine stops afterwards
C. the doActivity finishes first, then the machine stops without any exit behavior
D. only the exit behavior of Verifying runs, and the machine then stops
Answer: A. Entering a terminate pseudostate ends the state machine immediately. It does not exit any states, no exit behaviors are performed, and any running doActivity behaviors are aborted. The model that expects exit behaviors to run confuses terminate with a normal exit or a final state.
  • A. Entering a terminate pseudostate ends execution immediately, with no state exits or exit behaviors, and running doActivity behaviors are aborted (14.2.3.7).
  • B. This describes an ordinary external exit sequence, innermost first. A terminate pseudostate skips all exit behaviors (14.2.3.7).
  • C. Half-true: no exit behaviors run, but the doActivity is aborted automatically rather than allowed to finish (14.2.3.7).
  • D. A partial exit is not defined for terminate; the machine does not exit any state, so no exit behavior runs at all (14.2.3.7).
Source: OMG Unified Modeling Language 2.5.1 (formal/17-12-05), 14.2.3.7, p. 354-355 · StateMachines / 14.2.3.7 Pseudostate and PseudostateKind / terminate
7/10 · Common Behavior · hard
A team models a behavior that must accept sensor readings posted by its caller at any moment while it is running. They mark its input parameter as streaming and leave every other property of the behavior at its default. A reviewer rejects the model as non-conforming. Which change makes the model conform?
A. change the parameter direction to inout
B. add a precondition on the sensor parameter
C. set isReentrant to false on the behavior
D. invoke the behavior only asynchronously
Answer: C. A reentrant Behavior may have many simultaneous executions, so it would be unclear which execution receives or produces streamed values. For that reason a reentrant Behavior shall not have streaming Parameters, and isReentrant defaults to true. Setting isReentrant to false resolves the problem.
  • A. The direction does not affect the rule; a streaming parameter on a reentrant behavior remains ambiguous about which execution receives values (13.2.3.2).
  • B. Preconditions constrain conditions at invocation only and do nothing to the rule about streaming parameters on reentrant behaviors (13.2.3.1, 13.2.3.2).
  • C. Streaming parameters are not allowed on a reentrant behavior, and reentrant is the default (13.2.3.2, 13.2.3.1). Setting isReentrant to false removes the conflict.
  • D. The invocation style does not lift the ban on streaming parameters for reentrant behaviors; it concerns result retrieval, not this rule (13.2.3.2).
Source: OMG Unified Modeling Language 2.5.1 (formal/17-12-05), 13.2.3.2, p. 329-330 · Common Behavior / 13.2.3.2 Behavior Parameters / streaming Parameters and reentrancy
8/10 · Structured Classifiers · hard
A modeler defines a ternary Association among Team, Year and Player. To keep the classes self-contained, each of the three ends is to be defined as a property inside the corresponding class. Every end is navigable, has multiplicity 0..*, and none is marked as composite. Which rule of the metamodel does this break?
A. ends owned by a class must have multiplicity 0..1 in a ternary Association
B. ends owned by a class must be composite aggregations in an n-ary Association
C. ends owned by a class must not occur in an Association with more than two ends
D. ends owned by a class must be non-navigable in a ternary Association
Answer: C. The association_ends constraint says an Association with more than two memberEnds owns all of them itself, so a ternary Association cannot have class-owned ends. Navigability and multiplicity of the ends do not change this, and aggregation is allowed only on binary Associations.
  • A. The standard states no such multiplicity restriction for class-owned ends; the constraint concerns ownership.
  • B. Aggregation is only allowed on binary Associations (11.8.1), so this cannot be required.
  • C. Correct. The association_ends constraint in 11.8.1 requires all ends of Associations with more than two ends to be ownedEnds.
  • D. No such rule exists: an end owned by a class makes the Association navigable from the opposite ends (11.5.3.1).
Source: OMG Unified Modeling Language 2.5.1 (formal/17-12-05), 11.8.1, p. 261-262 · Structured Classifiers / 11.8.1 Association [Class] / association_ends constraint
9/10 · Activities · hard
A plant Activity is modeled with isSingleExecution=true, so one execution handles every incoming order and many orders are in progress at once. A rejected order reaches an ActivityFinalNode placed after Notify Customer. What is the effect on the other orders in progress?
A. they continue and only the arriving token is consumed
B. only those that have not yet passed a ForkNode are aborted
C. they continue until each reaches a final node of its own
D. they are all aborted when the final node accepts the token
Answer: D. A token reaching an ActivityFinalNode terminates the execution of its Activity. With isSingleExecution=true every invocation shares that execution, so all orders in progress are aborted. The standard recommends a FlowFinalNode, or separate executions per invocation, when other flows must survive.
  • A. That describes a FlowFinalNode; an ActivityFinalNode stops all flows of the execution (15.3.3.2).
  • B. The termination covers the whole execution, not a subset defined by position relative to a fork (15.3.3.2).
  • C. Because one execution serves all orders, there is no separate flow per order that could outlive the termination (15.2.3.6).
  • D. The token reaching an ActivityFinalNode terminates the execution, which here is shared by all orders; a FlowFinalNode would be the safer choice (15.3.3.2, 15.2.3.6).
Source: OMG Unified Modeling Language 2.5.1 (formal/17-12-05), 15.3.3.2, p. 430 · Activities / 15.3.3.2 Final Nodes / ActivityFinalNode with isSingleExecution=true
10/10 · Interactions · hard
A sequence diagram contains a seq combined fragment with two operands. The first operand holds message m1 from lifeline A to lifeline B. The second operand holds message m2 from lifeline C to lifeline D. The four lifelines are all different. Which statement about the valid traces is correct?
A. the reception of m1 at B must precede the sending of m2 at C
B. the sending of m2 at C can occur before the reception of m1 at B
C. the sending of m2 at C can occur early only if the fragment is changed to par
D. the sending of m1 must be first, and later events interleave freely
Answer: B. Weak sequencing keeps the order inside each operand and orders operands only for occurrences on the same lifeline. With four distinct lifelines, the operands reduce to a parallel merge, so m2 can be sent before m1 is received.
  • A. Treats seq as strict sequencing. Ordering between operands is enforced only for occurrences on the same lifeline (17.6.3.11).
  • B. Occurrences on different lifelines from different operands may come in any order, so the operands behave like a parallel merge here (17.6.3.11).
  • C. Seq already allows this interleaving when operands share no lifeline; switching to par is unnecessary (17.6.3.11).
  • D. Nothing forces m1 to be sent before m2 when the lifelines are disjoint; the send of m2 can come first (17.6.3.11).
Source: OMG Unified Modeling Language 2.5.1 (formal/17-12-05), 17.6.3.11, p. 625-626 · Interactions / 17.6.3.11 Weak Sequencing / ordering across lifelines in seq operands

Practice by knowledge area

Five more free questions for each section of the OCUP 2 Advanced bank, drawn from that area only, with the answer explained and linked to the source:

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

How OMG weights the OCUP 2 Advanced exam

The official weights of all 11 coverage areas - the note above says which of them this bank covers today:

Start practising OCUP 2 Advanced free

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

Start OCUP 2 Advanced free →

OCUP 2 Advanced practice - FAQ

Do I need OCUP 2 Foundation and Intermediate before taking OMG OCUP 2 Advanced (UML 2 Advanced)?

Yes. OMG's exam info sheet lists passing scores on both the UML 2 Foundation and the UML 2 Intermediate exams as the prerequisites for Advanced.

Which specifications does OMG OCUP 2 Advanced (UML 2 Advanced) test?

UML 2.5.1 in the chapters the exam info sheet names (7-9, 11-17, 19 and 20), and named chapters of Alf 1.1 (Action Language for Foundational UML) and fUML 1.5 (Semantics of a Foundational Subset for Executable UML Models). The sheet also weights The MOF & Metamodeling at 12% without naming a MOF document; ExamDeck uses MOF 2.5.1, OMG's current version, for that area.

How is OMG OCUP 2 Advanced (UML 2 Advanced) different from OCUP 2 Intermediate?

Intermediate weights eight areas of UML 2.5.1 alone. OMG OCUP 2 Advanced (UML 2 Advanced) weights eleven and adds three UML-family specifications: MOF metamodeling (12%), Alf (6%) and fUML (6%). Its pass mark is higher - 57 of 90 correct answers against 51 of 90 - with the same 105 minutes, or 135 outside native English-speaking countries.

How many questions is the OMG OCUP 2 Advanced (UML 2 Advanced) exam and how long is it?

Multiple-choice questions with text and UML diagram images, in 105 minutes in native English-speaking countries or 135 minutes elsewhere, at a Pearson VUE test centre or online.

What is the passing score for OMG OCUP 2 Advanced (UML 2 Advanced)?

The passing score is 57 of 90 correct answers (63%). Aim for a consistent 80-85% on realistic practice exams before booking.

What is the OMG OCUP 2 Advanced (UML 2 Advanced) pass rate?

OMG does not publish official pass rates, so any exact percentage quoted online is unverified. Our rule of thumb, not an official figure: hold 80-85% on realistic, full-length practice exams before you book.

What are the OMG OCUP 2 Advanced (UML 2 Advanced) eligibility requirements?

Passing scores on both the UML 2 Foundation and the UML 2 Intermediate exams are required: OMG's exam info sheet lists them as the prerequisites for Advanced. Training is optional: OMG allows self-preparation with the exam info sheet and the study materials it recommends. OMG says Advanced tests the complete UML palette for modeling structure and behavior in up to the largest system models, plus metamodeling based on the other UML-family specifications - Alf, fUML and MOF.

How much does OMG OCUP 2 Advanced (UML 2 Advanced) cost?

The exam fee is US$350 plus taxes per attempt (charged in the regional currency equivalent), booked and paid through Pearson VUE. If you fail, your score report carries a 20% discount code for the retake. Cancel more than 24 hours before the appointment for a full refund; later cancellations forfeit the fee (OMG UML 2 Advanced exam info sheet, checked 8 Nov 2026).

Does the OMG OCUP 2 Advanced (UML 2 Advanced) certification need recertification?

Expires 3 years after the exam date; passing the same or a higher-level OMG UML exam extends it (OMG UML 2 Advanced exam info sheet, checked 8 Nov 2026).

Are ExamDeck's OMG OCUP 2 Advanced (UML 2 Advanced) questions exam dumps?

No - every question is original, written to test the concepts and reviewed before it ships, with an explanation linked to the source for every option. Dumps are stale, often wrong, and against OMG's policies.

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.