Which of the following is the worst type of module cohesion?Select one:a.Logical Cohesionb.Temporal Cohesionc.Functional Cohesiond.Coincidental Cohesion
Question
Which of the following is the worst type of module cohesion?
Select one:
- a. Logical Cohesion
- b. Temporal Cohesion
- c. Functional Cohesion
- d. Coincidental Cohesion
Solution
To determine which type of module cohesion is the worst, let's first define each type of cohesion:
-
Logical Cohesion:
- Modules are logically categorized to do the same thing even though they are different by nature. For example, a module that handles all input and output operations.
-
Temporal Cohesion:
- Modules are grouped by when they are processed. For example, a module that initializes a system at start-up.
-
Functional Cohesion:
- Every essential element to a single computation is contained in the module. For example, a module that performs a specific calculation.
-
Coincidental Cohesion:
- Modules have no meaningful relationship to each other. They are grouped arbitrarily. For example, a module that contains a random collection of functions.
Step-by-Step Analysis:
-
Functional Cohesion:
- This is the highest and most desirable level of cohesion. It means that the module performs a single well-defined task.
-
Temporal Cohesion:
- This is less desirable than functional cohesion but still better than logical and coincidental cohesion. It groups tasks that are related by the time they are executed.
-
Logical Cohesion:
- This is less desirable than temporal cohesion. It groups tasks that are logically categorized together but may not be related in terms of functionality.
-
Coincidental Cohesion:
- This is the worst type of cohesion. It means that the elements within the module have no meaningful relationship to each other. This makes the module difficult to understand, maintain, and reuse.
Conclusion: The worst type of module cohesion is d. Coincidental Cohesion.
Similar Questions
Which of the following is the best type of module cohesion?Options :Temporal CohesionSequential CohesionFunctional Cohesionnone of above
Which of the following is not a type of Cohesion?Select one:a.Functional Cohesionb.Temporal Cohesionc.Modular Cohesiond.Sequential Cohesion
Which of the following is the worst type of module coupling?Select one:a.Control Couplingb.Stamp Couplingc.External Couplingd.Content Coupling
Which of the following is NOT an aspect of software design1 pointCouplingCohesionModularityPolymorphism
............................ is a measure of the degree of interdependence between modules.Options :couplingCohesionboth of abovenone of above
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.