Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

OMG Exam OMG-OCUP2-FOUND100 Topic 5 Question 33 Discussion

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

Choose the correct answer:

Consider the following diagram:

According to the diagram, which statement describes the property db?

Show Suggested Answer Hide Answer
Suggested Answer: B

In UML, a static property is one that belongs to the class itself rather than any instance of the class. In UML diagrams, static properties are denoted by underlining the property name.

Now, let's review the options:

A . There is no UML notation in the diagram that specifies whether the property db is a primary key. Primary keys are a database concept and UML does not have a standard way to denote them.

B . The property db is underlined, which indicates that it is a static property. This is the correct UML notation for depicting a class-level attribute.

C . There is no indication in the diagram that db is inherited from a superclass. Inherited properties typically are not underlined (unless they are also static), and there is no superclass shown in the diagram.

D . Underlining in UML does not signify importance or emphasis by the modeler, it indicates that a property is static.

Therefore, the answer is B: The property db is a static property. This is based on standard UML notation as outlined in the UML 2.5 Specification by the Object Management Group (OMG), which dictates that static members (attributes or operations) are underlined in class diagrams.


Contribute your Thoughts:

Valentin
25 days ago
Hmm, that makes sense too. Let's review the diagram again.
upvoted 0 times
...
Isadora
29 days ago
I disagree, I believe the answer is A because it's a primary key.
upvoted 0 times
...
Olga
1 months ago
I think the correct answer is C. The property db is inherited from a superclass. The diagram shows it as an inherited property, so that makes the most sense.
upvoted 0 times
Gregg
20 hours ago
C) The property db is inherited from a superclass.
upvoted 0 times
...
Kenda
2 days ago
B) The property db is a static property.
upvoted 0 times
...
Rene
26 days ago
A) The property db is a primary key
upvoted 0 times
...
...
Valentin
1 months ago
I think the answer is D because it's emphasized by the modeler.
upvoted 0 times
...

Save Cancel