156k views
4 votes
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
r: cohesion is a qualitative indication of the degree to which a module is connected to other modules and the outside 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.
4. a is not correct but r is correct.

User DWright
by
8.0k points

1 Answer

5 votes

Final answer:

Option 2 is the most appropriate answer: both a and r are correct but r is not the correct explanation of a. Option 2 is correct.

Step-by-step explanation:

The most appropriate answer is option 2: both a and r are correct but r is not the correct explanation of a.

The assertion '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' is correct. Cohesion refers to how closely the operations of a module are related to each other. When a module has high cohesion, it means that it performs a single, well-defined task and all of its internal elements work together towards that task.

On the other hand, the reason 'Cohesion is a qualitative indication of the degree to which a module is connected to other modules and the outside' is not the correct explanation of the assertion. This reason describes coupling rather than cohesion. Coupling refers to the degree of interdependence between different modules, while cohesion focuses on the internal relationship within a single module.

User Hemang
by
8.9k points