MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

SOFTWARE ENGINEERING

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Dependency models the ____ relationship
A
has-a
B
is-a
C
uses-a
D
None of the above
Explanation: 

Detailed explanation-1: -In UML, a dependency relationship is a relationship in which one element, the client, uses or depends on another element, the supplier.

Detailed explanation-2: -A dependency is a relationship that states that one thing uses the information and services of another thing, but not necessarily the reverse. Dependency relationship should be used to show that one thing is using another.

Detailed explanation-3: -Relationships in class diagrams show the interaction between classes and classifiers. Such relationships indicate the classifiers that are associated with each other, those that are generalizations and realizations, and those that have dependencies on other classes and classifiers.

Detailed explanation-4: -A dependency is a relationship between two or more objects in which an object depends on the other object or objects for its implementation. If one of these objects change, the other object(s) can be impacted. The dependency relationship between two or more objects is depicted in UML using dashed arrows.

There is 1 question to complete.