Free OMG-OCUP2-ADV300 Exam Braindumps
OMG Certified UML Professional 2 (OCUP 2) - Advanced Level Questions 31–35 (page: 8)

Updated On: 10-Feb-2026

Choose the correct answer :
What characterizes the generalization relationship between two Classifiers where the child can NOT be substituted for the parent?

  1. It has the stereotype "nonSubstitutable".
  2. It has the property "Substitute" set to false
  3. It has the property `'isSubstitutable" set to false.
  4. It has the property "substitutingClassifier" set to false.

Answer(s): C

Explanation:

In UML, the isSubstitutable property of a generalization relationship indicates whether instances of the child classifier can be used wherever instances of the parent classifier are expected, that is, whether the subclass is substitutable for the superclass.
When this property is set to false, it means that the child classifier cannot be substituted for the parent classifier. This property is part of the UML metamodel for generalization and affects how inheritance is interpreted in terms of substitutability, as described in the UML 2.x Superstructure Specification.



Choose the correct answer :
Consider the following diagram fragment:



Which statement is correct?

  1. The set named "b" is contained in a set named "part".
  2. The set named "b" has one subset, that contains the parts of
  3. The property "subsets part" specifies that b only partially defines A
  4. The constraint limits the elements of b to be from a predefined set of parts

Answer(s): A

Explanation:

In UML, the {subsets} keyword is used to indicate that one property is a subset of another property. In the provided diagram fragment, the association end -b {subsets part} indicates that the property b on class A is a subset of the property part on class B. This means that the elements associated with A through b are contained within the larger set associated with B through part. This kind of relationship is typically used in more complex class models where a part-whole hierarchy is represented, and it allows the model to show that certain associations are more specific subsets of a more general association. This usage is explained in the UML 2.x Superstructure Specification, where the semantics of association subsets are defined.



Choose the correct answer :
What does a lower multiplicity of one for an end of an n-ary Association imply?

  1. Links combining the values of the other ends may exist or may not exist
  2. Exactly one link exists combining the values of the other ends.
  3. A link for every possible combination of values for the other ends must exist.
  4. Links combining the values of one or many other ends may exist.

Answer(s): A

Explanation:

In UML, the multiplicity of an association end specifies how many instances of the class at that end can participate in a single association. A lower multiplicity of one (1) at one end of an n-ary (where n > 2) association implies that there must be at least one link that combines the values of the other ends, but it doesn't require that a link exists for every possible combination. Therefore, it's possible for some combinations to exist as links, while others do not, which is indicated by the option that links combining the values of the other ends may exist or may not exist. This interpretation is consistent with the definition of multiplicity in associations as outlined in the UML 2.x Superstructure Specification.



Choose the correct answer :
A modeler wants to develop a customization for a standard UML tool that provides the ability to specify CORBA physical Components.
Which approach should the modeler use?

  1. Create a profile for the CORBA component technologies and apply it to the model.
  2. Create a MOF metamodel for the CORBA component technology and add It to the UML metamodel.
  3. Create CORBA component instances that can be used as Parts in a composite structure compartment.
  4. Create a set of execution semantic definitions for the CORBA component assembly Connectors and apply them to the model.

Answer(s): A

Explanation:

To provide the ability to specify CORBA physical components within a UML tool, the most appropriate approach is to create a UML profile that includes stereotypes, tagged values, and constraints that reflect the characteristics and requirements of CORBA components. Applying this profile to a UML model would extend the semantics of UML to support CORBA-specific concepts without modifying the UML metamodel itself. This approach allows the modeler to leverage the existing UML tooling while incorporating the additional semantics required for CORBA components. This practice is supported by the extensibility mechanisms provided by UML, as described in the UML 2.x Superstructure Specification, which outlines how to create and apply profiles.



Choose the correct answer :
What should a modeler do lo represent specific hardware environments In a deployment model?

  1. Create a profile with the applicable details
  2. Create an instance of a deployment manifest with the applicable details
  3. Create an instance of a deployment specification with the applicable details.
  4. Create a mapping between the logical hardware description and the physical hardware description with the applicable details.

Answer(s): A

Explanation:

To represent specific hardware environments in a deployment model, a modeler should create a UML profile that includes the necessary hardware stereotypes with applicable details. A profile allows the modeler to extend the standard UML metamodel to include domain-specific elements that can be applied to deployment models. These stereotypes can represent different types of hardware components and their attributes, which can then be used to model the physical aspects of the deployment environment. The creation and application of profiles are supported by the UML 2.x Superstructure Specification, which details how to tailor UML to particular domains or platforms using profiles.



Viewing page 8 of 19
Viewing questions 36 - 40 out of 90 questions


Post your Comments and Discuss OMG OMG-OCUP2-ADV300 exam prep with other Community members:

AI Tutor AI Tutor 👋 I’m here to help!