Difficulty: Easy
Correct Answer: Both module strength and module coupling
Explanation:
Introduction / Context:
Modular design aims to build software as a set of well-structured, maintainable modules. Two foundational quality measures are cohesion (often called module strength) and coupling (the degree of interdependence). This question asks which measures evaluate modular design quality.
Given Data / Assumptions:
Concept / Approach:
High cohesion and low coupling are widely accepted goals. Measuring cohesion and coupling gives actionable insight: high cohesion suggests focused, understandable modules; low coupling reduces ripple effects of change and eases testing. Combining both yields a balanced picture of design quality.
Step-by-Step Solution:
Verification / Alternative check:
Textbook guidelines (e.g., structured design, object-oriented design) consistently emphasize maximizing cohesion and minimizing coupling as core design principles, validating the combined use of these measures.
Why Other Options Are Wrong:
Common Pitfalls:
Optimizing one metric at the expense of the other; for example, extremely high cohesion with hidden tight coupling through global state. Also, assuming cohesion can be perfectly quantified—often qualitative judgment is required.
Final Answer:
Both module strength and module coupling
Discussion & Comments