Question
In the context of modular software design, which one of the following combinations is desirable?
Official answer and solution
- Official answer
- B
- From
- Official GATE 2014 answer key
Solution
Recall standard software engineering principles regarding cohesion within modules and coupling between modules.
-
Cohesion:
Cohesion measures the degree to which elements inside a single module belong together and focus on a single, well-defined task or responsibility. High cohesion is desirable because it enhances readability, maintainability, testability, and code reuse. -
Coupling:
Coupling measures the degree of direct interdependence between different software modules. Low coupling is desirable because changes inside one module will not ripple unexpectedly through the rest of the system. -
Hence, the universally accepted design goal in modular software architecture is high cohesion and low coupling (option B).
B
Confusing cohesion with coupling, or mistakenly thinking that high coupling promotes integration.
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2014 Computer Science and Information Technology (CS) Session 3
- Question
- 29 of 65, printed as CS Q.19
- Section
- Computer Science and Information Technology
This question is from a part of the syllabus that is no longer in GATE CS. It is kept because it was in the paper.
Report an error in this question
GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.