Why is low coupling and high cohesion desirable in software design?Options :It makes the code longerIt facilitates maintainability and understandabilityIt increases code complexityIt hinders code reuse
Question
Why is low coupling and high cohesion desirable in software design?Options :It makes the code longerIt facilitates maintainability and understandabilityIt increases code complexityIt hinders code reuse
Solution
The desirable aspect in software design is low coupling and high cohesion because it facilitates maintainability and understandability. Low coupling means that each module or class in a system has a high level of independence, which makes it easier to understand and modify without affecting other parts of the system. High cohesion means that each module or class has a single, well-defined responsibility, which makes it easier to understand and maintain. This combination of low coupling and high cohesion also promotes code reuse, as modules or classes can be used in different contexts without modification.
Similar Questions
Discuss 2 reasons as to why low Coupling and high Cohesion result in systems that are easier to reuse and maintain. One to two sentences for each reason.
Explain different types of cohesion and coupling in system design
Which of the following is an advantage of high modularity in software design?Options :Increased complexityDifficult maintenanceEase of debugging and testingLimited reuse of code
How does encapsulation contribute to achieving both high cohesion and loose coupling in a software system?
High coupling, low cohesion
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.