Black Friday Biggest Discount Flat 70% Offer - Ends in 0d 00h 00m 00s - Coupon code: 70diswrap

OMG OMG-OCUP2-ADV300 Dumps

OMG Certified UML Professional 2 (OCUP 2) - Advanced Level Questions and Answers

Question 1

Choose the correct answer:

What must a modeler do to use an Action that coordinates other Actions?

Options:

A.

extend Behavior and add the desired Actions

B.

use one of the StructuredActivityNodes in UML

C.

use the standard Action and add desired tag values

D.

extend Action and specify the constraints to be relaxed or removed

Question 2

Choose the correct answer:

Which capability Is provided by the Profile mechanism?

Options:

A.

storing user-specific configurations of model settings

B.

creating new metamodel elements for specific purposes

C.

adapting existing metamodel elements for specific purposes

D.

configuring model libraries and a set of keywords to be used for a model

Question 3

Choose the correct answer:

Given the following diagram fragment:

as

Which review comment is valid and applicable?

Options:

A.

The Realization relationships should be reversed

B.

The Generalization relationships should be replaced by Realization relationships.

C.

The Realization relationships should be replaced by Generalization relationships.

D.

The UML syntax rules do not allow the use of Realization relationships between Components and Classes without the application of the stereotypes in a profile.

Question 4

Choose the correct answer:

You are asked to provide UML model content such that other modelers may use the Classes of your model as modular, partial specifications to be more fully specified by their models. You decide to provide a Vehicle Class that represents a partial specification of automobiles and allows tailoring of this class through the other modelers' choices of kinds of propulsion such as a gasoline motor, an electric engine, or a manual cyclesystem. You want to limit whichClass kinds the other modelers can choose as their propulsion system.

Which tactic appropriately exploits UML's syntax and semantics for modular reification?

Options:

A.

Model GasolineMotorVehicle. ElectricEngineVehicle. and ManualCyclingVehicle as specialized versions of your Abstract Class Automobile.

B.

Model Vehicle as a Template Classifier with a Class Parameter named Thrustor that is constrained to be a derivative of an Abstract Class PropulsionSystem

C.

Model Vehicle as a Class with a Property named thrustor of Type Enumeration Class Thrustor that has Enumeration Literals GasolmeMotor. ElectncEngme. and ManualCycler.

D.

Model three separate Packages named GasolineMotor Vehicles. ElectricEngme Vehicles, and ManualCyclmg Vehicles and Package Import into each of these the Package with your Vehicle Class.

Question 5

Choose the correct answer:

In a model of a commercial transaction, actors might exchange euros, pesos, and dollars

Which figure illustrates compliant use of UML information items for these currency exchanges?

as

as

Options:

A.

Figure 1

B.

Figure 2

C.

Figure 3

D.

Figure 4

Question 6

Choose the correct answer:

What two protocol state machine interpretations can be defined?

Options:

A.

behavioral and protocol

B.

declarative and procedural

C.

declarative and executable

D.

executable and non-executable

Question 7

Choose the correct answer:

Consider the following diagram:

as

Which statement is correct about the diagram?

Options:

A.

Each subclass of Electronic Device Kind must have a set of required Certifications defined.

B.

Each subclass of Electronic Device in the shown Generalization Set must have a set of required Certifications defined.

C.

The "Electronic Device Kind" Class and the "Electronic Device Kind" Generalization Set have the same name, but no semantic connection is implied by this.

D.

These are two alternative but incompatible ways to specify Electronic Device Kinds, either as Class "Electronic Device Kind" or as Specialization of "Electronic Device".

Question 8

Choose the correct answer:

Which statement defines Alf Input text?

Options:

A.

It is a concrete representation tor UML model elements in fUML.

B.

It is a language used with OCL for writing sound and valid constraints.

C.

It is a representation of UML model elements in a programming language.

D.

It is usually used to enhance the expressiveness of UML profile stereotypes.

Question 9

Choose the correct answer:

Consider the following diagram:

as

action 1 executes the classifier Behavior of the input object What kind of Action is action 1?

Options:

A.

CallBehaviorAction

B.

CallOperationAction

C.

StartObjectBehaviorAction

D.

CallClassifierBehaviorAction

Question 10

Choose the correct answer:

Consider the following diagram:

as

When this behavior is executed, which event will occur last?

Options:

A.

finalizing HH

B.

reception of z

C.

reception of w

D.

We cannot determine the last event from this diagram alone.

Question 11

Choose the correct answer:

A group of programming language designers want to create classes that model typical data collections such as arrays, lists, maps. etc.

Their design must satisfy three conditions:

1. The collections must be parameterizable to support any data type.

2. Some collections must inherit from other collections to leverage reuse of functionality.

3. The implementation of the collection functions cannot be overridden.

Which UML concept should these designers use?

Options:

A.

Classes

B.

Interfaces

C.

Power Types

D.

Class Templates

Question 12

Choose the correct answer:

Which can be added to a redefined operation?

Options:

A.

scope

B.

templates

C.

parameters

D.

preconditions

Question 13

Choose the correct answer:

Where does UML explicitly intend String Expression elements to be used?

Options:

A.

as (he ValueSpecifications for the nameExpressions of ParameterableElements within Template specifications

B.

as the model the author chooses for the specification of custom dynamically-generated names for any NamedElement

C.

whenever an OpaqueExpression form of a ValueSpecification needs to specify an expression that operates on String instances

D.

The specification has no metaclass StnngExpression and so no use of StringExpression is explicitly intended.

Question 14

Choose the correct answer: Consider the following definition:

as

Which statement is correct about elements referred to in the illustration?

Options:

A.

mycar is a classifier.

B.

rear is a property of Wheel.

C.

frontleft must have a void type.

D.

wheels is a property of Vehicle.

Question 15

Choose the correct answer:

Consider the following diagram:

as

What does the string {guarded} mean?

Options:

A.

The execution of op1 is guarded by one or more exceptions which it will handle if they arise.

B.

Multiple invocations of op1 that overlap in time may occur to one instance, but only the first one will get handled.

C.

Multiple invocations of op1 that overlap in time may occur to one instance, but only one is allowed to commence.

D.

The execution of op1 Is guarded by one or more exceptions. Behaviors invoking it are required to handle these exceptions

Question 16

Choose the correct answer:

An organization has determined that they want to add the capability to create and add requirement elements to their UML models. They also want to create a unique relationship for tracing requirements to other model elements.

What is the appropriate approach to do this?

Options:

A.

Use the requirement element and relationship defined in the UML specification.

B.

Create a profile that stereotypes Class as requirement and Dependency as the relationship.

C.

Create a new MOF metamodel that includes UML and adds the desired requirement element and relationship.

D.

Assign tag values that ascribe the desired requirement type to a UML Requirement and Dependency relationship.

Question 17

Choose the correct answer:

What happens when an exception is raised by an Action within an Activity that has been invoked asynchronously?

Options:

A.

The exception is propagated to the caller

B.

That kind of exception cannot be handled.

C.

The catching exception handler has exactly one output pin.

D.

The exception is lost if there is no matching handler within the Activity.

Question 18

Choose the correct answer:

What is the difference between a ValueSpecificattonActlon and a CreateObjectAction?

Options:

A.

There is no difference between the possible results of the CreateObjectAction and the ValueSpecificationAction

B.

A ValueSpecificationAction cannot produce instances of Classifiers, but a CreateObjectAction only produces instances of Classifiers

C.

When an InstanceValue is produced by a CreateObjectAction. the Structural Features can be assigned values, but when an InstanceValue is produced by a ValueSpecificationAction, the Structural Features have no values.

D.

When an InstanceValue is produced by a ValueSpecificationAction, the Structural Features can be assigned values, but when an InstanceValue is produced by a CreateObjectAction, the Structural Features have no values.

Question 19

Choose the correct answer:

Consider the following diagram fragment:

as

Assume that the system is in StateAl

Which sequence of behaviors could be executed in moving the system to StateC?

Options:

A.

a6, a2, a7, al2

B.

a4, a3, a1, a2, a7, a8, a12

C.

a4, a6, a3, a1, a7, a8, a11

D.

a4,a4, a3, a2, a7, a7, a9, a9,a12

Question 20

Choose the correct answer:

Given the following fragment from a profile definition:

as

Which statement is correct regarding the application of the profile?

Options:

A.

A class stereotyped as an «architecture decision» must contain attributes named Complexity. Risk, and Status with the designated Enumeration types

B.

A class stereotyped as an «architecture decisions will have Stereotype Properties named Complexity. Risk, and Status with the Enumeration types designated in the profile.

C.

A class stereotyped as an «architecture decision» must contain attributes named Complexity. Risk, and Status and they may be any user-defined type.

D.

A class stereotyped as an «architecture decisions must contain exactly three attributes with user-defined names, two of which are of type Rank, and one of type Status.

Question 21

Choose the correct answer:

What is the main purpose of the concept of Extent in MOF?

Options:

A.

To allow an Element to access its meta class in order to obtain a reflective description of that Element.

B.

To define a set of Tags that represent information to be associated by any number of model Elements.

C.

To provide a context in which an Element can be identified independently from any value in the Element.

D.

To provide an extension mechanism to dynamically annotate model Elements with additional information.

Question 22

Choose the correct answer:

Consider the following profile:

as

Which statement is true?

Options:

A.

Each instance of Class must be linked to exactly one instance ofDisplayArea, Frame, or Form.

B.

Each instance of Class must be linked to at most one instance of DisplayArea. Frame, or Form.

C.

Each instance of Class must be linked to exactly one instance of DisplayArea. Frame, and Form.

D.

Instances of Class or its subclasses do not have to be linked to instances of DisplayArea. Frame, or Form.

E.

The diagram is incorrect because a required extension cannot be applied to a stereotype inheritance hierarchy.

Question 23

Choose the correct answer:

What characterizes the generalization relationship between two Classifiers wherethe child can NOT be substituted for the parent?

Options:

A.

It has the stereotype "nonSubstitutable".

B.

It has the property "Substitute" set to false

C.

It has the property‘’isSubstitutable" set to false.

D.

It has the property "substitutingClassifier" set to false.

Question 24

Choose the correct answer:

Which statement should be taken into consideration when extending a UML metaclass with a stereotype?

Options:

A.

UML recommends to start extending the metaclass "Class" and then other metaclasses depending on the expected qualities of the profile.

B.

The choice of the extended metaclass is not that important since tools can always apply a profile's filtering rules to hide unneeded metaclasses.

C.

The metaclass and the stereotype that extends it should be semantically related to each other to avoid having to constrain the metamodel excessively.

D.

UML specifies rules on how the mapping between stereotypes and UML metaclasses should be done; these rules must be followed to identify the best metaclasses.

Question 25

Choose the correct answer:

Which class sits at the top of the MOF class hierarchy?

Options:

A.

Root

B.

Element

C.

Classifier

D.

Metaclass

Question 26

Choose the correct answer: Consider the following piece of UML definition:

as

What is the typing of xx. xy and result?

Options:

A.

xx Cattle. xy:Bull. resultCattle

B.

xx:Cow, xy:CattlG, result;Donor

C.

xx:Cow. xy:Cattle. result:Cattle

D.

xxCow. xv Bull. resultCattle

Question 27

Choose the correct answer:

Consider the following diagram:

as

What could be substituted for myTypel?

Options:

A.

Number

B.

Short or Long

C.

any subtype of Number

D.

any Type, there is no restriction

Page: 1 / 9
Total 90 questions