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

Page: 1 / 14
Total 90 questions
Question 1
Question 2
Question 3

Choose the correct answer: What is the scope of fUML?



Question 4

Choose the correct answer:

What is a reason for fUML lo be compact?



Question 5

Choose the correct answer:

What does "computationally complete" mean in the context of fUML?



Question 6

Choose the correct answer:

What happens when an exception is raised by an Action within an Activity that has been invoked asynchronously?



Answer : D

For asynchronous invocations in UML, when an exception is thrown and there is no matching exception handler within the activity, the exception is effectively lost because there is no direct mechanism to propagate it back to the caller. This reflects the nature of asynchronous communication where the calling process does not wait for the completion of the called process and, thus, may not be designed to handle exceptions that occur during the called process.


UML 2.5 Specification: The UML specification describes the behavior of actions within activities and how exceptions are handled, or not handled, in the case of asynchronous calls. It specifically states that for asynchronous calls, the exception is not propagated back to the caller as there is no return flow defined for such invocations.

Question 7

Choose the correct answer:

A behavior A is specified by an Activity. A specialized version B of the behavior shall also be specified

Which is a correct approach to model that scenario?

A)

B)

C)



Answer : A

In UML, a specialized behavior that is an extension or modification of a more general behavior is typically shown using the generalization relationship. Option A correctly models this scenario by showing behavior B as a specialization of behavior A, which is indicated by the containment within the package and a nesting of B inside A without any stereotype on the relationship. This representation implies that B inherits the characteristics of A while potentially adding or overriding some aspects of it.


UML 2.5 Specification: Generalization is defined in the UML 2.5 Specification, where a more specific classifier may override the behaviors of a more general classifier.

Page:    1 / 14   
Total 90 questions