New Year Special Limited Time Flat 70% Discount offer - Ends in 0d 00h 00m 00s - Coupon code: 70spcl

OMG OMG-OCUP2-FOUND100 OMG Certified UML Professional 2 (OCUP 2) - Foundation Level Exam Practice Test

Page: 1 / 9
Total 90 questions

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

Question 1

Choose the correct answer:

How many valid Action notations are shown below?

Question # 1

Options:

A.

0

B.

1

C.

2

D.

3

E.

4

Question 2

Choose the correct answer:

Which statement is correct regarding Enumeration Literals?

Options:

A.

EnumerationLiterals are immutable

B.

EnumerationLiterals may be anonymous.

C.

EnumerationLiterals may not be compared for equality.

D.

Enumeration Literal names may appear more than once within an Enumeration.

Question 3

Choose the correct answer:

How is the abstract syntax of UML specified?

Options:

A.

using a MOF metamodel

B.

using the Backus-Naur Form (BNF)

C.

using natural language (e.g.. English)

D.

using UML structure and behavior diagrams

Question 4

Choose the correct answer:

What is the name of the property represented by the leftmost lifeline in the following diagram?

Question # 4

Options:

A.

v[1]

B.

B

C.

v

D.

m

Question 5

Choose the correct answer:

A structured class called System has two parts called Subsystem 1 and Subsystem2 respectively, as shown in the class diagram fragment below:

Question # 5

Which of the following diagrams contains an equivalent definition of System?

A)

Question # 5

B)

Question # 5

C)

Question # 5

D)

Question # 5

Options:

A.

Option

B.

Option

C.

Option

D.

Option

Question 6

Choose the correct answer:

Which scenario would be modeled most appropriately in a state machine?

Options:

A.

the use of buttons to control a digital watch

B.

the exchange of messages in a client-server system

C.

the data flows and processes in an office automation system

D.

the nature of the transitions from ice to water to steam in a physical system

E.

the overview ofbehavior and message exchange in a distributed medical insurance system

Question 7

Choose the correct answer:

Consider the following diagram:

Question # 7

Whichdiagram presents a view of interactionA thatis consistent with the one shown above?

A)

Question # 7

B)

Question # 7

C)

Question # 7

D)

Question # 7

Options:

A.

OptionA

B.

OptionB

C.

OptionC

D.

OptionD

Question 8

Choose the correct answer:

Consider the following diagram:

Question # 8

Which statement is true about the diagram?

Options:

A.

Within G you may refer to v:K by gh.H::v. .

B.

From within H it is impossible to reach the v within G.

C.

The package Pckg cannot have two definitions of v as shown in the diagram.

D.

v will indicate different elements depending on where you refer to v within Pckg

Question 9

Choose the correct answer:

Question # 9

The state machine in the diagram below is in the Start state when an event of type Ev occurs. At that time, the value of local variable VAR is equal to zero.

Which stale will the state machine be in after the run-to-completion step triggered by this event completes?

Options:

A.

End1

B.

End2

C.

End3

D.

Start

Question 10

Choose the correct answer: Consider the following diagram:

Question # 10

Is this diagram valid?

Options:

A.

No, because a DataType cannot have Associations to a Class.

B.

No, because a DataType cannot have Operations.

C.

No, because a DataType cannot have Attributes.

D.

Yes, it is formally correct.

Question 11

Choose the correct answer:

What is an advantage of modeling as a part of the software analysis and design process?

Options:

A.

It reduces the risk of inconsistent or improper implementations.

B.

It reduces the risk of incorporating technology constraints into a design.

C.

It reduces the risk of using an incorrect or improper programming language.

D.

It reduces the risk of the solution being strongly related to business practices.

Question 12

Choose the correct answer:

Consider the following diagram fragment:

Question # 12

Which statement is correct about the parameter part?

Options:

A.

It is optional.

B.

It accepts a collection of items.

C.

It accepts only values either 0 or 1.

D.

It accepts only values between 0 and 1.

Question 13

Choose the correct answer:

Consider the following diagram:

Question # 13

Which change could the modeler make to fix the UML error in this model?

Options:

A.

Specify a unique value in the position slot for each instance specification

B.

Add a description slot to a 1.

C.

Change the type of ClassB.version from Real to Integer

D.

Change the type of ClassA.position from Integer to Real.

Question 14

Choose the correct answer:

Exactly two Player Instances are involved in the "Play Tennis" Use Case.

Which diagram depicts this scenario correctly?

A)

Question # 14

B)

Question # 14

C)

Question # 14

D)

Question # 14

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Question 15

Choose the correct answer:

Which one of the following is a Behavioral Feature?

Options:

A.

Method

B.

Function

C.

Operation

D.

Constraint

E.

Method Invocation

F.

Classifier behavior

Question 16

Choose the correct answer:

The BchaviorA state machine shown below is at rest in state s1 and the value of x Is 0.

Question # 16

If a signalA event occurs, what is the state machine's subsequent behavior?

Options:

A.

The state machine will transition to state s2 and execute ActivityA during the transition.

B.

The state machine will execute ActivityA and remain in state sf.

C.

The state machine will remain in state s1. and the signalA event occurrence will be consumed without effect

D.

The state machine will remain in state s1. and processing of the signalA event occurrence will be deferred until either the value of x changes or the state machine changes state.

Question 17

Choose the correct answer:

Which statement is true about the following diagram?

Question # 17

Options:

A.

D has an invalid notation.

B.

A. B. C. and D are actions.

C.

C will be executed when B or D finishes.

D.

After A finishes, either B or D will be executed, but not both.

Question 18

Choose the correct answer:

Consider the following diagram:

Question # 18

Which statement is true about the execution of Action c?

Options:

A.

It will never get executed, since the parallel flow is not synchronized.

B.

It will get executed one time, since it has one incoming control flow.

C.

It will get executed two times, since two tokens are offered to it

D.

Nothing can be said. The diagram is invalid.

Question 19

Choose the correct answer:

Consider the following diagram:

Question # 19

Which statement is true about the execution of Action c?

Options:

A.

After one Signal is received and either a or b is executed, depending on x. it will get executed once

B.

Two or more Signals must be received, depending on x. before c will get executed once.

C.

Action c will get executed twice, since a and b will eventually offer a token.

D.

Nothing can be said The diagram is invalid.

Question 20

Choose the correct answer:

In the model shown below, what is gained by using the Extend relationship?

Question # 20

Options:

A.

The Extend relationships avoid the need for behavior descriptions such as Activities.

B.

The Extend relationship is used here to perform a functional decomposition of the Use case behavior.

C.

This Use Case model could be updated with further payment methods without changing the main Use Cases "Book a car" and "Charge account".

D.

Extend is a taxonomic relationship between Use Cases that extracts general descriptions into the super Use Case "Charge account" to avoid redundant descriptions in the sub Use Cases "Charge credit card" and "Pay with PayPal*.

Question 21

Choose the correct answer:

Which statement is correct about a FlowFmalNode in an Activity?

Options:

A.

FlowFinalNodes do not appear in activities: they are used in State Machines.

B.

FlowFinalNodes do not appear in activities; the proper element for this use is NoneEndEvent.

C.

A token that reaches a FlowFinalNode causes all execution within the activity to cease.

D.

A token that reaches a FlowFmalNode signifies the conclusion of execution along that flow although execution elsewhere within the activity may continue.

Question 22

Choose the correct answer:

Consider the following diagram:

Question # 22

Which statement is true based on this specification ofInteractionF?

Options:

A.

An execution of InteractionF is valid only if the o3 lifeline receives ml before the o2 lifeline receives m2.

B.

An execution of InteractionF is valid only if the o2 lifeline receives m2 before the o3 lifeline receives m 1.

C.

An execution of InteractionF can be valid no matter the order in which o2 and o3 receive their respective messages.

D.

InteractionF is an ill-formed model of a behavior.

Question 23

Choose the correct answer:

In your model, you need to represent accounts.

Which statement supports using a Class, rather than a DataType. lor this purpose''

Options:

A.

The account is uniquely identified by its account number.

B.

The account number can change, but it would still be the same account.

C.

The account needs operations to transfer money into it or to withdraw money

D.

The account has attributes typed by Classes like account_holder; Person or bank_in_Charge Company

Question 24

Choose the correct answer:

Which statement is correct regarding the diagram below?

Question # 24

Options:

A.

All of the elements in Package G depend on all of the elements in Package F

B.

All of the elements in Package F depend on all of the elements in Package G.

C.

One or more of the elements in Package G depends on one or more of the elements in Package F.

D.

One or more of the elements in Package F depends on one or more of the elements in Package G.

Question 25

Choose the correct answer:

What is the key difference between DataTypes and Classes?

Options:

A.

Classes can have operations that show that a class reacts to invocations sent by other classes DataTypes do not have this feature.

B.

DataTypes can only be very simple structures with attributes that are Datatypes as well, whereas Classes can be of arbitrary complexity.

C.

Two instances of a Datatype are considered to be equal when all their attributes have the same values, unlike instances of classes.

D.

Classes can inherit attributes, operations and other features of their super classes. DataTypes can only get instantiated.

Question 26

Choose the correct answer:

Which element in the following sequence diagram could correspond to a signal?

Question # 26

Options:

A.

v

B.

B

C.

m

D.

p

Question 27

Choose the correct answer:

Consider the following diagram:

Question # 27

Which statement is always true about this diagram?

Options:

A.

There are infinitely many H objects inside Pckg.

B.

There are between 1 and 5 G objects inside Pckg

C.

For every H object, there are fewer than 5 G objects associated with it.

D.

There may be an G object which has no H object associated with it through gh.

Page: 1 / 9
Total 90 questions