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
- Modules X and Y operate on the same input and output, then the cohesion is
- Arrange the following types of Cohesion from best to worst type. A. Logical Cohesion B. Sequential Cohesion C. Communication Cohesion D. Te…
- Which of the following UML diagrams has a static view?
- Which of the following statements is/are TRUE? P: In software engineering, defects that are discovered earlier are more expensive to fix. Q…
- Software coupling involves dependencies among pieces of software called modules. Which of the following are correct statements with respect…
- Match each UML diagram in List-I with the appropriate description in List-II: List-I (a) State Diagram (b) Use-Case Diagram (c) Class Diagr…