All mock tests are FREE till 31 December — register to save your progress

Given below are two statements:
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 correct answer from the options given below:

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: C. A is correct but R is not correct

Explanation

Reason R is a word-for-word statement of the textbook definition of coupling, not cohesion: Pressman defines coupling as "a qualitative indication of the degree to which a module is connected to other modules and to the outside world". Cohesion is an intra-module property (how single-minded a module is), whereas coupling is an inter-module property, so R is false. Assertion A is the statement of cohesion accepted by the paper – a highly cohesive module does one job, so it stays compact and completes that job on its own. Hence A is correct but R is not correct, option 3.

More Programming Languages and Computer Graphics questions