Match the following with respect to relationship between objects and classes :…
2013
Match the following with respect to relationship between objects and classes :
List – I List – II
a. State diagram i. Useful for both abstract modelling and for designing actual program
b. Object diagram ii. Describes object classes
c. Class diagram iii. Useful for documenting test cases
d. Instance diagram iv. Describing the behaviour of a single class of objects.
Codes :
- A.
a - iv, b - i, c - ii, d - iii
- B.
a - ii, b - iii, c - iv, d - i
- C.
a - iii, b - iv, c - ii, d - i
- D.
a - ii, b - iv, c - i, d - iii
Attempted by 186 students.
Show answer & explanation
Correct answer: A
Correct matching: a → iv, b → i, c → ii, d → iii
a. State diagram: Describing the behaviour of a single class of objects (shows states and transitions for instances).
b. Object diagram: Useful for both abstract modelling and for designing actual programs (shows objects and links at a particular moment, helpful as concrete examples).
c. Class diagram: Describes object classes (their attributes, operations and relationships), used to model the system structure.
d. Instance diagram: Useful for documenting test cases and specific scenarios by illustrating concrete instances.
Tip: Match items by purpose — behaviour diagrams show dynamic behaviour, class diagrams show type structure, and object/instance diagrams show concrete examples.