In structured programming, a program is decomposed into modules.

In structured programming, a program is decomposed into modules.
| In structured programming, a program is decomposed into modules. Coupling and cohesion describe the decomposition should attempt to :

A. Maximize coupling and minimize cohesion.  

B. Maximize coupling and maximize cohesion. 

C. Minimize coupling and maximize cohesion. 

D. Minimize coupling and minimize cohesion.

Please scroll down to see the correct answer and solution guide.

Right Answer is: C

SOLUTION

Concept:

A design solution is said to be highly modular, if the different modules in the solution have high cohesion and their inter-module couplings are low.

Minimize coupling​ or Weak coupling or Low coupling

Since objects do not directly change each other’s internal data, they are weakly coupled. Weak coupling among objects enhances the understandability of the design since each object can be studied and understood in isolation from other objects.

Therefore, it is one of the desirable property of a good module.

Maximize cohesion or High cohesion:

The cohesiveness of methods within a class is desirable since it promotes the encapsulation of the objects so high cohesion is a desirable property for the module.

Therefore, in structured programming, a program is decomposed into modules. to minimize coupling and maximize cohesion.