Q65.Marks: +2.0UGC NET Paper 2: Computer Science 11 March 2023
Given below are two statements: one is labeled as Assertion A and the other is labelled as Reason R.
Assertion A: Cohesion is a qualitative indication of the degree to which a module can be written more compactly and is able to complete its function in a timely manner.
Reason R: Cohesion is a qualitative indication of the degree to which a module is connected to other modules and the outside world.
In the light of the above statements, choose the most appropriate answer from the options given below.
1.Both A and R are correct and R is the correct explanation of A.
2.Both A and R are correct but R is NOT the correct explanation of A.
3.A is correct but R is not correct.✓ Correct
4.A is not correct but R is correct.
Solution
The correct answer is A is correct but R is not correct.
Key Points
Assertion A: Cohesion in software engineering is the measure of how closely the responsibilities of a module or a component are related to each other. It's about how focused a module is on what it should do. Modules that perform one very specific task are considered highly cohesive. This statement is correct as more cohesive modules tend to be more compact and efficient.
Reason R: The statement is incorrect. The definition provided in this statement describes 'coupling', not 'cohesion'. Coupling is the degree to which one module depends on other modules. In contrast, cohesion refers to how closely all tasks performed by a module are related to each other.
So, "A is correct but R is not correct" which corresponds to option 3 is the right answer.