New Year Special 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: save70

Free and Premium OMG OMG-OCUP2-FOUND100 Dumps Questions Answers

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

Question 1

Choose the correct answer:

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

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*.

Buy Now
Question 2

Choose the correct answer:

Which statement is true about the following diagram?

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 3

Choose the correct answer:

Consider the following diagram:

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 4

Choose the correct answer:

Consider the following class diagram:

Which statement is true about the class diagram?

Options:

A.

The preferred age to open a bank account is 18 years old or older

B.

Only customers who are 18 years old or older can open a bank account.

C.

The age condition should only hold when the setAge(Integer) function is called

D.

An object of Customer with age set to 18 or greater will raise an exception.

Question 5

Choose the correct answer:

Which statement is correct about Activity precondition and postcondition constraints?

Options:

A.

They apply to all invocations of the Activity

B.

They apply only to specific invocations of the Activity.

C.

They are used to constrain specific actions within the Activity.

D.

They are used to constrain only the flow of objects within the Activity.

Question 6

Choose the correct answer: Consider the following scenario:

The "Withdraw Money" action can only be executed after the amount to withdraw is entered and the account contains sufficient funds. After the action is executed, the account balance is updated.

Which diagram models this scenario

A)

B)

C)

D)

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Question 7

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 8

Choose the correct answer:

Consider the following diagram:

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.

Question 9

Choose the correct answer:

Which statement is correct regarding the diagram below?

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 10

Choose the correct answer:

Consider the following diagram fragment:

Which slot's value is hidden outside of the current Employee9

Options:

A.

age

B.

name

C.

salary

D.

title

E.

gender

F.

company

Question 11

Choose the correct answer:

Consider the following diagram:

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

A)

B)

C)

D)

Options:

A.

OptionA

B.

OptionB

C.

OptionC

D.

OptionD

Question 12

Choose the correct answer:

The stale machine below is in state1:

When does it transition to state2?

Options:

A.

When all of el. e2. and e3 occur in any order.

B.

When any one of the events e1. e2. or e3 occurs.

C.

Only when e1. e2. and e3 occur in exactly this order

D.

Never, because a transition cannot have more than one trigger.

Question 13

Choose the correct answer:

Consider the following invalid state machine fragment:

Why is the diagram invalid?

Options:

A.

A transition requires a trigger or guard.

B.

A guard condition is not allowed on the initial transition.

C.

A trigger is not allowed on the transition to the final state.

D.

A transition is not allowed to leave and enter the same state.

Question 14

Choose the correct answer:

How many class instances can be shown on an Object Diagram?

Options:

A.

0

B.

1

C.

1..*

D.

0..*

Question 15

Choose the correct answer:

Consider the following diagram fragment:

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 16

Choose the correct answer:

Which object has the highest value that is properly assigned to a salary slot?

A)

B)

C)

D)

E)

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

E.

Option E

Question 17

Choose the correct answer:

How would you refer lo element One of Package PI. when inside Package P2?

Options:

A.

One

B.

PLOne

C.

P1:One

D.

P1::One

E.

"One

F.

One/P1

Question 18

Choose the correct answer:

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

Options:

A.

v

B.

B

C.

m

D.

p

Question 19

Choose the correct answer:

Which elements in the diagram are Features of the Car class?

Options:

A.

drive(), Car

B.

stop(). driver

C.

name. stop()

D.

driveO, stop(). Person

Question 20

Choose the correct answer:

In UMLmodeling, what is a Constraint?

Options:

A.

a condition that must be satisfied when it is evaluated

B.

a condition that should be met depending on system operation

C.

a condition that causes the state of the objects to change over time

D.

a condition that constrains what can or cannot be put in a class diagram

Question 21

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:

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

A)

B)

C)

D)

Options:

A.

Option

B.

Option

C.

Option

D.

Option

Question 22

Choose the correct answer:

What is a reason to have all the UML diagrams of a model have the same amount of detail?

Options:

A.

This is typically required by management for planning purposes

B.

This is typically required by the implementers for coding purposes

C.

This is typically required by the system engineers to write requirements.

D.

This is typically required by tools that automatically transform the model.

Question 23

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 24

Choose the correct answer:

Consider the following diagram fragment:

What makes this fragment invalid?

Options:

A.

A list of elements is not allowed in a package body.

B.

«class»one is missing a visibility.

C.

An *interface» is not allowed in a package

D.

Private elements are not allowed on the list.

E.

Protected elements are not allowed in a package.

F.

Element six is missing its stereotype.

Question 25

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 26

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 27

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.