Black Friday Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 70percent

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

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

Question 1

Choose the correct answer:

Consider the following diagram:

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 2

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 3

Choose the correct answer:

Which statement describes the semantics of a Property that has the aggregation kind composite9

Options:

A.

The aggregation kind composite is semantically equivalent to namespace containment

B.

Instances of the composed object's type can exist only in the context of the composite object.

C.

When the Property's composite object ceases to exist, all of its composed objects also cease to exist.

D.

The Property's composed objects are part of a subset and the composite object is a union of the defined subsets.

Question 4

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)

B)

C)

D)

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Question 5

Choose the correct answer:

Consider the following diagram:

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 6

Choose the correct answer: OpaqueExpression can use which languages?

Options:

A.

onlyOCL

B.

only programming languages

C.

only Mathematical Expressions

D.

any language

Question 7

Choose the correct answer: Consider the following diagram:

Options:

A.

0

B.

1

C.

2

D.

3

E.

5

Question 8

Choose the correct answer:

Consider the following diagram:

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 9

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 10

Choose the correct answer: Consider the following scenario:

Activity Act1 shall be carried out. then activity Act2. and then activity Acl1 again.

Which diagram shows this?

A)

B)

C)

D)

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Question 11

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 12

Choose the correct answer:

Consider the following diagram;

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 13

Choose the correct answer:

Which statement is true about the following diagram?

Options:

A.

E waits for an Event.

B.

E is always executed faster than B

C.

The valid trace is A. E, C (without B).

D.

C waits for tokens on both incoming edges

Question 14

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 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)

B)

C)

D)

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Question 16

Choose the correct answer:

Consider the following diagram:

How many event occurrences are specified in InteractionP?

Options:

A.

2

B.

3

C.

4

D.

5

E.

6

F.

8

G.

10

Question 17

Choose the correct answer: Consider the following diagram:

How many object nodes in total are shown?

Options:

A.

1

B.

2

C.

3

D.

4

E.

5

F.

6

G.

8

Question 18

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 19

Choose the correct answer: Consider the following diagram:

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 20

Choose the correct answer:

Which sequence of behavior executions occurs if the state machine below is in state S11 and an event of type E occurs?

Options:

A.

actnE; exS1; exS11: entS21; entS2

B.

actnE; exS1; exS11: entS2; entS21

C.

exS11; actnE; entS2

D.

gxSH; exS1; actnE; entS2

E.

exS11; exS1; actnE; entS2; entS21

Question 21

Choose the correct answer:

What is the defining characteristic of a domain model?

Options:

A.

It is a model that is specified using UML diagrams.

B.

It is a model that focuses on the domain requirements of the system

C.

It is a model that captures the main domain concepts and their relationships.

D.

It is a model that represents the domain architecture of the implementation of the system.

Question 22

Choose the correct answer:

Which statement is always true about the following sequence diagram?

Options:

A.

Sending message x is the first occurrence that happens.

B.

Sending message z will happen after receiving message x.

C.

Sending message y will happen before sending message z.

D.

Sending message p will happen before receiving message y.

Question 23

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 24

Choose the correct answer:

Which category of stakeholders should have prime responsibility for making decisions on the contents of a domain model, and why?

Options:

A.

The customers, as they will own the system when it is delivered

B.

The users, as they will be using the system when it is operational.

C.

All involved stakeholders, as they are knowledgeable and concerned.

D.

The development team, as they are responsible for the final implementation.

E.

Project managers, as they are responsible for delivering the right product to the customer

F.

The testing team, as test-driven design is proven to be an effective approach to development

G.

The system architects, as they are responsible for the design of the system and its proper functioning.

Question 25

Choose the correct answer:

Consider the following diagram:

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 26

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 27

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.