New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

OMG-OCUP2-FOUND100 Exam - Topic 1 Question 35 Discussion

Actual exam question for OMG's OMG-OCUP2-FOUND100 exam
Question #: 35
Topic #: 1
[All OMG-OCUP2-FOUND100 Questions]

Choose the correct answer: Consider the following diagram:

Is this diagram valid?

Show Suggested Answer Hide Answer
Suggested Answer: A

The provided diagram depicts a DataType named Route with operations, attributes, and associations to a Class named City. In UML, a DataType is a type of classifier that specifies the values that do not have identity (i.e., are not distinguishable from other objects). DataTypes may contain Attributes and Operations, so options B and C are incorrect.

However, DataTypes should not have associations to Classes because DataTypes are meant to be value types without identity, and associations typically imply a relationship between instances (which have identity). Thus, the presence of associations from Route to City is not consistent with the definition of a DataType.


UML 2.x Superstructure Specification: Sections on Classifiers and DataTypes provide definitions of what constitutes a DataType and what features they can have. They specifically mention that DataTypes are kinds of classifiers that do not have identity and are often used to type attributes.

UML 2.x Infrastructure Specification: This foundational document gives additional context on the semantics of different types of classifiers, including DataTypes, and how they relate to other elements in a UML model.

Contribute your Thoughts:

0/2000 characters
Ellsworth
2 months ago
I think it’s formally correct, but I’m not convinced.
upvoted 0 times
...
Kris
2 months ago
Totally agree, that’s a clear no!
upvoted 0 times
...
Yan
3 months ago
Wait, can’t DataTypes have Operations? Not so sure about that.
upvoted 0 times
...
Renea
3 months ago
Attributes in DataTypes? That’s a big no too!
upvoted 0 times
...
Myra
3 months ago
A DataType can’t have Associations to a Class.
upvoted 0 times
...
Filiberto
3 months ago
I’m not confident, but D seems plausible since it says it's formally correct. I need to double-check my notes on this.
upvoted 0 times
...
Gussie
4 months ago
I’m leaning towards C because I recall something about DataTypes not having attributes, but I could be mixing it up.
upvoted 0 times
...
Jarod
4 months ago
I remember a practice question about DataTypes having operations, so I feel like B could be the right choice.
upvoted 0 times
...
Shoshana
4 months ago
I think the answer might be A, but I'm not entirely sure if DataTypes can have associations.
upvoted 0 times
...
Gilma
4 months ago
I'm pretty confident I know the answer to this one. DataTypes are limited to just basic data, so this diagram must be invalid.
upvoted 0 times
...
Brandon
4 months ago
Okay, let me think this through step-by-step. I know DataTypes are supposed to represent primitive data, so the diagram might not be valid. I'll carefully consider each option.
upvoted 0 times
...
Flo
5 months ago
I'm a bit confused by this question. I thought DataTypes were supposed to be simple, so I'm not sure if they can have all those extra features.
upvoted 0 times
...
Bong
5 months ago
Hmm, this looks tricky. I'll need to carefully review the UML rules to determine if a DataType can have Associations, Operations, and Attributes.
upvoted 0 times
...
Celestina
6 months ago
I think the correct answer is D) Yes, it is formally correct. The diagram looks valid to me.
upvoted 0 times
...
Dallas
6 months ago
I'm leaning towards C) No, because a DataType cannot have Attributes.
upvoted 0 times
...
Shelton
7 months ago
I disagree, I believe the answer is B) No, because a DataType cannot have Operations.
upvoted 0 times
...
Rene
7 months ago
Haha, this is a trick question. It's clearly invalid, DataTypes are like the boring cousins of Classes - they don't get to do any of the fun stuff!
upvoted 0 times
Garry
5 months ago
Haha, I agree! DataTypes are definitely missing out on the fun.
upvoted 0 times
...
Tasia
6 months ago
A) No, because a DataType cannot have Associations to a Class.
upvoted 0 times
...
...
Alonzo
7 months ago
I think the answer is A) No, because a DataType cannot have Associations to a Class.
upvoted 0 times
...
Jordan
7 months ago
I'm going with C. DataTypes are supposed to be pure data, no Attributes allowed!
upvoted 0 times
Nicolette
5 months ago
C) No, because a DataType cannot have Attributes.
upvoted 0 times
...
Theron
5 months ago
B) No, because a DataType cannot have Operations.
upvoted 0 times
...
Jeannetta
6 months ago
A) No, because a DataType cannot have Associations to a Class.
upvoted 0 times
...
...
Dominic
7 months ago
Definitely B. A DataType can't have Operations, that's just not how it works!
upvoted 0 times
Paris
6 months ago
I agree with you, it's definitely B. DataTypes cannot have Operations.
upvoted 0 times
...
Tamesha
6 months ago
I think it's A. DataTypes cannot have Associations to a Class.
upvoted 0 times
...
...

Save Cancel