In structured programming, a program is decomposed into modules. Coupling and…
2017
In structured programming, a program is decomposed into modules. Coupling and cohesion describe the characteristics of modules. A good decomposition should attempt to:
- A.
Minimize coupling and minimize cohesion
- B.
Maximize coupling and minimize cohesion
- C.
Minimize coupling and maximize cohesion
- D.
Maximize coupling and maximize cohesion
Attempted by 407 students.
Show answer & explanation
Correct answer: C
Coupling measures the degree of interdependence between modules.
Cohesion measures how closely related the functions within a module are.
Good software design aims for: Low coupling (modules are independent)
High cohesion (each module does one well-defined task)
A video solution is available for this question — log in and enroll to watch it.