Back to the 2025 paper

Module 5: Software Maintenance

20252m

Regression testing is performed to:

(i) Test a new module
(ii) Ensure recent changes didn't affect existing functionality
(iii) Improve system performance
(iv) Identify hardware errors

Worked SolutionAI Assisted

Answer: (ii) Ensure recent changes didn't affect existing functionality

Regression testing re-runs previously passed test cases (and adds new ones) after a change — a bug fix, enhancement, or integration — to verify that the modifications have not broken existing, already-working functionality. It guards against "regressions": defects introduced in code that used to work.

Why the others are wrong:

  • (i) Test a new module — testing new code alone is unit/development testing; regression testing focuses on existing behaviour after a change.
  • (iii) Improve system performance — performance tuning is not the purpose of regression testing.
  • (iv) Identify hardware errors — hardware faults are outside the scope of software regression testing.

So regression testing ensures recent changes didn't affect existing functionality — option (ii).

Similar questions

Free AppAndroid App

Coursify Android App

Generate AI courses, take quick quizzes between classes, and master complex engineering concepts on the go.