Difficulty: Easy
Correct Answer: Incorrect
Explanation:
Introduction / Context:
The question probes your knowledge of how UML visually marks derived elements—those whose values are computed from other information rather than stored independently. Consistent notation helps reviewers quickly understand which values are calculated and which are base data.
Given Data / Assumptions:
Concept / Approach:
UML specifies that a derived feature is indicated by a leading forward slash “/” placed before the element’s name. An additional, accepted form is to use a property string such as {derived}. By contrast, a stereotype uses guillemets « » and extends metamodel semantics; «derived» is not the standard way to show a computed property and can be misleading. Therefore, while “/priceWithTax” is correct, claiming that a stereotype before the name is the typical alternative is inaccurate.
Step-by-Step Solution:
Verification / Alternative check:
Inspect UML references and modeling tools: most show derived features using the “/” prefix and optionally {derived}. Few use a stereotype to convey the same idea for attributes.
Why Other Options Are Wrong:
Common Pitfalls:
Confusing stereotypes (which extend metaclasses) with property strings; forgetting the leading slash for computed features in diagrams.
Final Answer:
Incorrect
Discussion & Comments