Match the following : List – IList – II a. Data coupling i. Module A and…
2013
Match the following :
List – IList – II a. Data coupling i. Module A and Module B have shared data b. Stamp coupling ii. Dependency between modules is based on the fact they communicate by only passing of data c. Common coupling iii. When complete data structure is passed from one module to another d. Content coupling iv. When the control is passed from one module to the middle of anotherCodes :
- A.
a - iii, b - ii, c - i, d -iv
- B.
a - ii, b - iii, c - i, d -iv
- C.
a - ii, b - iii, c - iv, d -i
- D.
a - iii, b - ii, c - iv, d -i
Attempted by 64 students.
Show answer & explanation
Correct answer: B
Correct matching:
Data coupling -> Dependency between modules based on the fact they communicate by only passing of data (ii).
Stamp coupling -> When a complete data structure or record is passed from one module to another (iii).
Common coupling -> Module A and Module B have shared (global) data (i).
Content coupling -> When control is passed from one module to the middle of another or one module depends on the internal workings of another (iv).
Brief explanation:
Data coupling is the loosest desirable coupling: modules exchange only the data required.
Stamp coupling involves passing whole composite structures; modules may use only part of the structure.
Common coupling is undesirable because global shared data creates hidden dependencies.
Content coupling is the worst form of coupling because one module relies on or manipulates the internals of another.
A video solution is available for this question — log in and enroll to watch it.