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

Page: 1 / 14
Total 90 questions
Question 1

Choose the correct answer:

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



Answer : B

In UML, Comments are annotations that can be attached to most elements within UML diagrams. Their primary function is not to affect the semantics of the model directly but to provide useful information to anyone reading the model. Comments can help explain or clarify design decisions, make notes about specific parts of the model, or provide any other context necessary for understanding the model better.

The role of Comments in UML is not to enable automatic generation of code comments or to add constraints or semantics to model elements, although they can be associated with model elements to highlight or explain specific attributes or relationships.


UML 2.x Superstructure Specification: This document describes Comments as a way to provide human-readable descriptions and notes that do not impact the execution or structure of the model but are crucial for documentation and understanding.

UML 2.x Infrastructure Specification: Further delineates the role of comments in providing clarifications and additional information useful for model interpretation.

Question 2

Choose the correct answer:

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



Answer : B

In the development of a domain model, the prime responsibility for decision-making should ideally rest with the users, as they are the ones who will be using the system operationally. Users have the most direct and frequent interactions with the system, making them best positioned to provide relevant insights into what the system should do and how it should behave to meet their needs effectively. While other stakeholders such as customers, project managers, and developers play significant roles, the users' intimate knowledge of the domain processes and their requirements make them key contributors to ensuring that the domain model aligns closely with real-world application and utility.


Question 3

Choose the correct answer:

Why are abstractions in a model helpful?



Answer : B

Abstractions in a model are helpful because they can express or suppress detail as needed. This capability is essential in managing complexity in a model by focusing on the high-level, essential aspects of the system while omitting or simplifying the less critical details. This selective detail management aids in understanding and analyzing the system's core functionality without getting overwhelmed by its intricacies. Abstractions facilitate clearer communication, more focused analysis, and more efficient system design by highlighting the most relevant aspects of the system in various contexts.


Question 4

Choose the correct answer:

Which characteristic should apply to any useful model?



Answer : C

A key characteristic that should apply to any useful model, including those created with UML, is that it abstracts away irrelevant details. This abstraction is crucial for managing complexity by focusing on the essential aspects of the system that are relevant to the current perspective or analysis task. By removing unnecessary information, the model remains understandable and manageable, even as the underlying system grows in complexity. This principle helps maintain a clear and concise representation of the system, enabling stakeholders to focus on strategic decisions without being overwhelmed by details.


Question 5

Choose the correct answer:

Given the diagram fragment below:

What are the possible values for the attribute response in the class Query?



Answer : B

The second diagram fragment you provided includes two enumeration types, YesNo and Answer, where YesNo is a generalization of Answer. The class Query has an attribute 'response' of type Answer. Given that YesNo is a generalization of Answer, the possible values for 'response' include the literals of Answer plus those inherited from YesNo. Since Answer includes 'Maybe', and YesNo includes 'Yes' and 'No', all three are valid values for 'response'.


UML 2.x Superstructure Specification: Discusses attributes and their types, the concept of generalization, and how attributes of a generalized type can take on values from their own literals as well as those from their parent in the hierarchy.

UML 2.x Infrastructure Specification: Explains the foundational modeling constructs related to enumeration, classes, and attributes, which provides the basis for determining the legal values of an attribute based on its type's enumeration literals.

Question 6

Choose the correct answer:

What is the key difference between DataTypes and Classes?



Answer : C

DataTypes in UML are a type of classifier that represents a set of values that do not have identity, which means that two instances of a DataType are indistinguishable if all their attributes are equal. This is in contrast to instances of Classes, which are distinguishable by their identity - each instance is considered unique even if their attributes have the same values.

Option A is incorrect because DataTypes can indeed have operations in UML. Option B is also incorrect; DataTypes can have attributes of any complexity. Option D is incorrect because DataTypes can also have features inherited from their super DataTypes; it is not solely about instantiation.

The UML 2.5 specification discusses DataTypes in section 10.5.8, stating that DataTypes do not have an identity and are often used to type attributes and operation parameters. The equality of DataType instances is based on the equality of their attribute values. Classes, however, are described in section 9.2 of the UML 2.5 specification as elements that can have identity, and instances of a Class are distinguished based on that identity.


Question 7

Choose the correct answer:

Consider the following diagram:

What does the filled diamond mean?



Answer : A

In UML, a filled diamond represents a composite aggregation, also known as a composition. It indicates a whole-part relationship with strong ownership and coincident lifetime of the parts with the whole. Here's what it means in relation to the options provided:

A . This is partially correct. A filled diamond indeed indicates that the Ship instance is responsible for the existence of the associated Person instances, but it is not complete as it does not explicitly state that the Person instances will be deleted when the Ship instance is deleted.

B . This option is the most accurate. A filled diamond represents a composite aggregation, which means that the existence of the Person instances (parts) is dependent on the Ship instance (whole). When the Ship instance is deleted, so are the Person instances it contains.

C . The filled diamond is not a placebo; it has a well-defined meaning in UML, indicating strong ownership and lifecycle dependency between the whole and the part.

D . While the filled diamond does indicate ownership, it specifies more than just an attribute relationship; it indicates that the Ship class has a composition relationship with the Person class. This means that the Ship object contains Person objects as parts of itself, not just as an attribute reference.

E . The filled diamond is connected to the Ship class, not the Person class, so this statement is incorrect. The composition relationship is from Ship to Person, not the other way around.

Based on the UML specification for composite aggregation, the most accurate statement is B: Class Person's existence depends on the ship. It will get deleted when the ship gets deleted. This aligns with the definition of composite aggregation, where the part's lifecycle is dependent on the whole's lifecycle.


Page:    1 / 14   
Total 90 questions