Question discussion

Refactoring of a program means

2525Medium DSSSB TGT Computer Science 0 replies 1 views
0

Refactoring of a program means

  • Arestructuring the code to improve its internal design without changing its external behaviour
  • Badding new features to the program
  • Ctranslating the program into another programming language
  • Dremoving all the comments from the program
Correct answer: A

Explanation

Refactoring cleans up the structure of working code, for example by renaming, extracting methods or removing duplication, while the observable behaviour stays the same, which is usually checked by automated tests.

Discussion 0

Nobody has replied yet. Start the discussion!