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

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

Testing Engine

  • Product Type: Testing Engine
$37.5  $124.99

PDF Study Guide

  • Product Type: PDF Study Guide
$33  $109.99
Question 1

Choose the correct answer:

The Sensor Controller state machine shown below is at rest in the Ready state. The acquireData event occurs.

What Is the complete sequence of behaviors that executes before the state machine comes to rest in the Acquiring Data state?

Options:

A.

deploy

B.

logStatus. deploy

C.

deploy, scanTarget

D.

logStatus. deploy. scanTarget

E.

logStatus. deploy. scanTarget. logStatus

Question 2

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 3

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 4

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 5

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 6

Choose the correct answer:

Consider the following diagram:

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 7

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 8

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 9

Choose the correct answer:

The Use Case "Manage customer information" is a high-level description of how to handle customers and their data. Specific descriptions of how to add or delete a customer, or update a customer's information, are represented by the Use Cases "Add new customer", "Delete customer", and "Update customer information".

Which diagram depicts this scenario?

A)

B)

C)

D)

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Question 10

Choose the correct answer:

Which diagram is invalid?

A)

B)

C)

D)

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Question 11

Choose the correct answer:

In UML modeling, what is the (unction of Comments?

Options:

A.

to provide additional semantics to the model elements

B.

to provide useful information to the reader of the model

C.

to enable automatic generation of comments in the code

D.

to add UML constraints to one or more model elements of the diagrams

Question 12

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 13

Choose the correct answer:

How many valid Action notations are shown below?

Options:

A.

0

B.

1

C.

2

D.

3

E.

4

Question 14

Choose the correct answer:

Consider the following model

Where is v visible?

Options:

A.

Only inside S

B.

Only inside T

C.

Only inside S and T

D.

Inside the whole P

Question 15

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 16

Choose the correct answer:

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 17

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 18

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 19

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 20

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 21

Choose the correct answer:

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

Options:

A.

0

B.

1

C.

2

D.

3

E.

4

F.

5

G.

7

Question 22

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 23

Choose the correct answer:

Which diagram shows inherited properties?

A)

B)

C)

D)Inherited properties cannot be shown In a specialized class.

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Question 24

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 25

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 26

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 27

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