OMG-OCUP2-ADV300 Exam Questions & Answers
OMG Certified UML Professional 2 (OCUP 2) - Advanced Level • OMG
100% money-back guarantee
Sample OMG-OCUP2-ADV300 Questions
Practice with real exam-style questions, each with the verified correct answer and explanation.
Choose the correct answer:
A developer wants to make sure that each specialization of Class Bicycle has its own unique set of values for the suitable road surface and average speed
Which diagram imposes these requirements?
A)

B)

C)

D)

In Option C, the properties suitable road surface and average speed have been redefined in the subclasses Recumbent Bike and Racing Bike. The use of the {redefines} keyword in UML signifies that the subclass will provide its own specific values for these properties, overriding the general ones provided by the superclass Bicycle. This is the correct way to enforce that each specialization of Bicycle has a unique set of values for these attributes, as redefinition allows for the customization of inherited properties on a per-subclass basis. The use of {redefines} is specified in the UML 2.x Superstructure Specification, which describes how properties inherited from a superclass can be customized by subclasses.
Choose the correct answer:
Consider the following template Operation:
addElement
Which Operation represents a binding of that template Operation?
The correct representation of a binding of the template operation addElement<E> with E being bound to the type Card is addElement (e : Card). This notation means that the template parameter E is being replaced by the concrete type Card, thus instantiating the template operation with that specific type. In UML, this instantiation does not require the bind keyword or the template brackets <> around the type in the operation signature itself; it is simply represented by using the concrete type as the type of the parameter in the operation. This usage is consistent with the UML 2.x Superstructure Specification, which explains how operations of a template classifier are instantiated when template parameters are bound to actual types.
Choose the correct answer:
Consider the following UML diagram fragments:


The letters X and Y are placeholders. What should X and Y be?
The question is about identifying the correct placeholders X and Y in a UML diagram fragment related to cattle reproduction behavior. The correct answer is option E, where X is ''natural::Reproduction_behav'' and Y is ''assisted::Reproduction_behav''. In UML, the ''::'' notation is used to indicate a namespace or a package. In this context, it separates the types of reproduction behaviors (natural and assisted) from the behavior itself (Reproduction_behav). This naming convention aligns with UML naming standards for clarity and specificity.
Choose the correct answer:
Which capability enables the discovery and manipulation of metaobjects and metadata''
The capability that enables the discovery and manipulation of metaobjects and metadata isReflection. In the context of the Meta-Object Facility (MOF), reflection allows you to examine and interact with the structure and semantics of metamodels, models, and their elements. It provides a way to introspect and dynamically access information about the modeling constructs, such as classes, attributes, relationships, and constraints.
Choose the correct answer:
Consider the following diagram fragment:

Which diagram fragment correctly specifies task behavior based on task priority?
A)

B)



The correct answer is B, which uses a selection edge to specify task behavior based on task priority. In UML, an object flow with a selection property is used to select objects from a collection according to some criterion, which is typically represented by a Boolean expression. In the case of B, the selection criterion is described as 'ordering = the most important first', indicating that tasks are selected to be executed based on their priority.
UML 2.5 Specification: The UML 2.5 specification describes how selection behaviors can be applied to object flows to filter objects according to specific criteria, such as priority in this scenario.
Get access to all 90 verified questions with detailed answers.
Unlock All OMG-OCUP2-ADV300 Questions