The relationship of data elements in a module is called
2013
The relationship of data elements in a module is called
Answer: C. Cohesion — Answer: Cohesion Explanation: Cohesion is the degree to which the elements inside a module (such as data and the routines that operate on that data) are…
- A.
Coupling
- B.
Modularity
- C.
Cohesion
- D.
Granularity
Attempted by 540 students.
Show answer & explanation
Correct answer: C
Answer: Cohesion
Explanation: Cohesion is the degree to which the elements inside a module (such as data and the routines that operate on that data) are related and work together to provide a single, well-defined purpose.
Why high cohesion is desirable: modules with high cohesion are easier to understand, maintain, test, and reuse.
Difference from related terms: coupling describes dependencies between modules, modularity describes the division of a system into modules, and granularity refers to module size or level of detail.
Example: a module that only handles user authentication (validating credentials, issuing tokens) has high cohesion because its internal data and functions all focus on the single task of authentication.
Explore the full course: Mppsc Assistant Professor Computer Science Paper 2