OMG Certified UML Professional 2 (OCUP 2) - Advanced Level OMG-OCUP2-ADV300 Exam Questions

Page: 1 / 14
Total 90 questions
Question 1

Choose the correct answer:

When an Order is closed, a Customer of that Order must be notified

Which diagram fragment correctly models this scenario?

A)

B)

C)



Answer : C

The correct answer is C, which uses a transformation edge to indicate that when an order is closed, information is transformed or processed to notify the customer. This is expressed in UML with an object flow that has a transformation property, which specifies how an object is transformed from one state to another as it flows along the edge. This is appropriate for a scenario where closing an order leads to the creation of a customer notice, implying some form of transformation or processing of the order information to generate the notice.


UML 2.5 Specification: The UML 2.5 specification details how object flows with transformations can be used to show that one piece of data is transformed into another as it flows from one action to another.

Question 2

Choose the correct answer:

Consider the following sequence diagram GO:

What is always true according to the diagram?



Answer : A

In the sequence diagram 'GO', the event 'h receives x' is depicted before 'k sends q', as indicated by the solid arrow from 'g' to 'h' labeled 'x' and the dashed arrow from 'k' labeled 'q'. Since messages are processed in the order they are depicted from top to bottom, 'h' must receive 'x' before 'k' can send 'q'.

The other options (B, C, and D) cannot be determined to be always true based on the information provided in the diagram alone. Especially with asynchronous messages, the send event may occur before the corresponding receive event, and the diagram does not contain sufficient information about timing constraints or message processing durations to ascertain the exact ordering of these events.

Reference include:

UML 2.5 Specification (formal/2017-12-05), specifically the sections regarding message sends and receives, lifelines, and the semantics of sequence diagrams.

Introduction to UML 2 Sequence Diagrams by Scott W. Ambler, which provides insights into the interpretation of sequence diagrams and the flow of messages.


Question 3

Choose the correct answer:

What happens when an Exception Handler completes execution?



Answer : C

For question number 50, the correct answer is C: Control tokens are offered on the outgoing Control Flows of the ExceptionHandler. According to the UML 2.5 specification, when an Exception Handler completes its execution, it does not halt the execution of the thread or retain control tokens internally; instead, it passes control tokens along the outgoing Control Flows. This behavior allows the activity to continue processing other behaviors or activities, based on the exception handling outcome.


UML 2.5 Specification: Provides a detailed description of the behavior of Exception Handlers within activity diagrams, including how control tokens are managed upon the completion of an exception handling sequence.

Question 4

Choose the correct answer:

A group of programming language designers want to create classes that model typical data collections such as arrays, lists, maps. etc.

Their design must satisfy three conditions:

1. The collections must be parameterizable to support any data type.

2. Some collections must inherit from other collections to leverage reuse of functionality.

3. The implementation of the collection functions cannot be overridden.

Which UML concept should these designers use?



Answer : D

In UML, class templates are the concept used to create classes that can be parameterized with different data types. This feature satisfies the first condition, allowing collections to support any data type. Class templates can be specialized, fulfilling the second condition, where some collections can inherit from others, thus enabling the reuse of functionality. Additionally, UML allows for operations to be defined in such a way that they cannot be overridden, by specifying them as non-virtual or final, which meets the third condition. Therefore, the use of class templates would be the most suitable approach for the design criteria specified by the programming language designers. This approach is consistent with the capabilities of class templates as described in the UML 2.x Superstructure Specification.


Question 5

Choose the correct answer:

Consider the following diagram:

Which statement is correct about the diagram?



Answer : A

The diagram depicts Electronic Device Kind as a class that requires a set of Certifications (required : Certification[1..*]). This implies that any subclass of Electronic Device Kind must provide a set of required Certifications because the multiplicity [1..*] indicates that at least one Certification is mandatory for each instance of Electronic Device Kind or its subclasses. Therefore, when a subclass is created, it inherits the requirement to specify what Certifications are needed. This is a standard UML generalization, where the subclass inherits the attributes and constraints of its superclass. This interpretation is consistent with the rules defined in the UML 2.x Superstructure Specification, which includes the semantics of class generalization and attribute inheritance.


Question 6

Choose the correct answer:

An organization has determined that they want to add the capability to create and add requirement elements to their UML models. They also want to create a unique relationship for tracing requirements to other model elements.

What is the appropriate approach to do this?



Answer : B

UML allows the introduction of new concepts that are not part of the standard UML metamodel by creating a profile. To add capabilities for modeling requirements and tracing relationships in UML, a profile can be created where a Class is stereotyped to represent a requirement, and a Dependency is stereotyped to represent the trace relationship. This approach is both practical and conforms to the UML standard's mechanisms for extending the language. It is a common practice to create such profiles for requirements engineering within the UML framework. This conforms to the UML 2 Superstructure Specification, which provides guidelines on creating and applying profiles and stereotypes.


Question 7

Choose the correct answer:

How is the semantics (or the MOF elements represented?



Answer : B

The semantics of MOF elements are typically provided in the specification as natural language descriptions1. This approach allows for a clear and understandable explanation of the elements and their intended use within the framework.


Page:    1 / 14   
Total 90 questions