QuestionQ82

VerifiedStatic and Dynamic Analysis

Static-analysis tools have been run against four large, complex code components (А, В, С, and D), producing the following measures:

Question Image

You must determine which component should be selected FIRST for maintainability improvements. The Cohesion-and-Coupling combination is considered the MOST important factor, followed by the number of repeated code sections.

Which component should you select?

Explanation

Low cohesion combined with high coupling is the least maintainable design combination, because such a component both mixes unrelated responsibilities internally and is tightly entangled with other components externally, making any change costly and error-prone; among components sharing that same poor combination, the one with the higher count of repeated (duplicated) code sections carries a greater maintenance and defect-propagation burden and therefore takes priority for improvement first.

Community Discussion

No comments yet. Be the first to start the discussion!