A developer is reviewing a code that was written by a colleague. It runs fine, but there are many lines of code to do a seemingly simple task repeatedly. Which action organizes the code?

By | November 20, 2022

  • A. Refactor the code by removing any unnecessary tests.
  • B. Reverse engineer and rewrite the code logic.
  • C. Using functions, rewrite any pieces of code that are repeated.
  • D. Modify the code to use loops.
Answer: Option C.
Explanation: 

No answer description available for this question.

The post A developer is reviewing a code that was written by a colleague. It runs fine, but there are many lines of code to do a seemingly simple task repeatedly. Which action organizes the code? appeared first on Majanto.