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

OMG OMG-OCUP2-FOUND100 Dumps

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

Question 1

Choose the correct answer:

Consider the following class diagram:

as

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 2

Choose the correct answer:

Consider the following diagram:

as

Which statement is always true in the diagram?

Options:

A.

Receiving m{C) must come before sending m(D).

B.

Sending m(D) is the first occurrence of this scenario.

C.

Receiving m{D) is the last occurrence of this scenario.

D.

All occurrences of v[11 will happen before all occurrences of v[3]

Question 3

Choose the correct answer:

When is a state machine for an object created and ready to accept events?

Options:

A.

by the time the last state ends

B.

immediately after the sequence diagrams start

C.

by the time the object has finished its initialization

D.

when all objects in the system are ready to receive events

Question 4

Choose the correct answer:

Consider the following diagram:

as

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 5

Choose the correct answer:

Which diagram is invalid?

A)

as

B)

as

C)

as

D)

as

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Question 6

Choose the correct answer:

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

Which diagram depicts this scenario correctly?

A)

as

B)

as

C)

as

D)

as

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Question 7

Choose the correct answer:

Consider the following class diagram:

as

Which object diagram corresponds to it?

A)

as

B)

as

C)

as

D)

as

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Question 8

Choose the correct answer: Which technique does Abstraction incorporate?

Options:

A.

agile modeling

B.

information hiding

C.

complexity coupling

D.

context-driven decision making

Question 9

Choose the correct answer:

Consider the following diagram:

as

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

A)

as

B)

as

C)

as

D)

as

Options:

A.

OptionA

B.

OptionB

C.

OptionC

D.

OptionD

Question 10

Choose the correct answer:

Consider the following diagram;

as

What is the minimum number of occurrences that must happen before the reception of m(200)?

Options:

A.

0

B.

2

C.

4

D.

5

E.

6

Question 11

Choose the correct answer:

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

as

Options:

A.

v

B.

B

C.

m

D.

p

Question 12

Choose the correct answer:

as

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 13

Choose the correct answer:

Consider the following diagram:

as

According to the diagram, which statement describes the property db?

Options:

A.

The property db is a primary key

B.

The property db is a static property.

C.

The property db is inherited from a superclass.

D.

The property db is important and is emphasized by the modeler with an underline.

Question 14

Choose the correct answer:

Why are abstractions in a model helpful?

Options:

A.

Abstractions add the full detail to the model.

B.

Abstractions can express or suppress detail as needed.

C.

Abstractions can be taken out and the model still makes sense.

D.

Abstractions are not helpful, but rather a distraction in models.

Question 15

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)

as

as

B)

as

C)

as

D)

as

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Question 16

Choose the correct answer:

as

Consider the following two diagrams:

Which description of these diagrams is true?

Options:

A.

In both diagrams, the activity will end after action READY and no further signals will be accepted.

B.

Initial and final nodes are optional. Therefore the execution semantics of both diagrams are equivalent.

C.

In diagram Act1. action a can get executed once. In diagram Act2. action a can get executed many times.

D.

Diagram Act2 is incomplete: It should get completed with exactly one start and at minimum one final node. If this would be done, both diagrams become equivalent.

Question 17

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 18

Choose the correct answer:

as

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 19

Choose the correct answer:

Which UML term pair captures complementary ways of looking at a relationship?

Options:

A.

include / extend

B.

use / implement

C.

dependency / trace

D.

aggregation / composition

E.

generalization / specialization

Question 20

Choose the correct answer:

Consider the following diagram:

as

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 21

Choose the correct answer:

Consider the following diagram:

as

What does the filled diamond mean?

Options:

A.

A Ship-instance is responsible for the existence of the Person-instances linked to it.

B.

Class Person's existence depends on the ship. It will get deleted when the ship gets deleted.

C.

It is a modeling placebo It does not have any influence on the structure of the instances of Ship or Person.

D.

Class Ship owns an attribute passenger of Type Person. The ownership of attribute my_ship is undefined.

E.

Class Person owns an attribute my_ship of Type Ship. The ownership of attribute passenger is undefined.

Question 22

Choose the correct answer:

Suppose you are using a programming language that knows the following basic types: byte, short, and long.

Which diagram defines them:

A)

as

B)

as

C)

as

D)

as

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Question 23

Choose the correct answer:

How many execution occurrence specifications are there in total on the diagram below?

as

Options:

A.

0

B.

1

C.

2

D.

3

E.

4

F.

5

G.

7

Question 24

Choose the correct answer:

Consider the following diagram:

as

Which element(s) from P3 are visible inside P2 without using a qualified name?

Options:

A.

None

B.

One

C.

TWo

D.

One and Two

Question 25

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 26

Choose the correct answer: Consider the following diagram:

as

Options:

A.

0

B.

1

C.

2

D.

3

E.

5

Question 27

Choose the correct answer: Consider the following diagram:

as

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.

Page: 1 / 9
Total 90 questions