Question:

Which design concept allows internal code change without affecting the behaviour?

Show Hint

Refactoring = Change the internal structure without Changing external behavior.
Updated On: Jun 25, 2026
  • Refactoring
  • Coupling
  • Cohesion
  • Modularity
Show Solution
collegedunia
Verified By Collegedunia

The Correct Option is A

Solution and Explanation

Concept: Software quality can be improved by restructuring code while preserving its external behavior. This process is called Refactoring.

Step 1:
Understand Refactoring.
Refactoring means:
• Improving code structure
• Removing duplication
• Improving readability
• Enhancing maintainability without changing program functionality.

Step 2:
Analyze other options.
Coupling measures dependency among modules. Cohesion measures relatedness within a module. Modularity divides software into independent modules. None specifically refers to changing internal code while preserving behavior.

Step 3:
Select the answer.
Hence, \[ \boxed{\text{Refactoring}} \] is correct.
Was this answer helpful?
0
0