adplus-dvertising
frame-decoration

Question

What is the difference between an attribute and an association in UML?

a.

No difference, they both denote properties of a class

b.

Attributes are simple properties, while associations are complex

c.

Attributes are relationships between classes, while associations are properties

d.

Attributes are class properties, while associations are relationships

Answer: (a).No difference, they both denote properties of a class Explanation:In UML, there is technically no difference between an attribute and an association. They both denote properties of a class and can be used to model the properties of a class. However, in practice, it is common to model simple properties such as numbers and dates as attributes and more significant concepts as associations.

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the difference between an attribute and an association in UML?

Similar Questions

Discover Related MCQs

Q. What is an association class in UML?

Q. What is the difference between aggregation and composition in UML?

Q. How is aggregation denoted in UML?

Q. How is composition denoted in UML?

Q. What is the multiplicity at the whole end of composition in UML?

Q. What is the relationship between a class and its attributes in UML?

Q. What is an abstract class in UML?

Q. What is the purpose of abstract classes in UML?

Q. What is an interface in UML?

Q. What is the purpose of interfaces in UML?

Q. What does the State Machine Diagram model?

Q. How is the classical finite state machine model extended when used to model the behavior of objects over time?

Q. What is the purpose of local variables in the extended finite state machine model?

Q. What is a state transition diagram used for in modeling an object's life cycle?

Q. How are local variables used in the extended finite state machine model?

Q. What triggers the initial transition in a finite state machine?

Q. What do input events do in a finite state machine?

Q. How are output actions associated with a finite state machine?

Q. What is the expressive power of Mealy and Moore machines?

Q. What is used to add structure to a finite state machine to make it less unwieldy?