Algorithms Quiz | SP Contest 4 | Question 9
What should you strive for with reference to cohesion and coupling while designing software?
(A) High Coupling with High Cohesion
(B) Low coupling with Low Cohesion
(C) High Cohesion with Low Coupling
(D) Low Cohesion with High Coupling
Explanation: Coupling refers to the relationship of a module with another module. A module is said to be highly coupled with another module if changes to it will result to changes in other module. And a module is said to be loosely coupled if a module is independent of any other modules.
Cohesion refers to the measure of how strongly-related the functions of a module are. Low cohesion refers to modules that have different unrelated responsibilities. High cohesion refers to modules that have functions that are similar in many aspects.
Quiz of this Question