Machine-translated by Google. Questions are authored in English.
Top

Discussion

In the context of software engineering, what is "refactoring" ?

  • A.Adding new features to the software
  • B.Removing unnecessary features from the software
  • C.Modifying code to improve performance or readability without changing its functionality
  • D.Rewriting the entire software

Answer: C

Refactoring is modifying code to improve performance or readability without changing its functionality.

Refactoring restructures existing code, for example renaming, extracting methods or removing duplication, to make it cleaner and easier to maintain, while its external behaviour stays the same. Tests are run before and after to confirm nothing changed.

Adding or removing features changes the functionality, and rewriting the entire software is a rewrite, not a refactoring.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.