nerdexam
PMI

DASSM · Question #107

When changing legacy code, you should:

The correct answer is D. Change the code, then add a test. See the full explanation below for the reasoning.

Question

When changing legacy code, you should:

Options

  • AAdd a test first, then change it
  • BRewrite the code instead of changing it
  • CDelegate the task to someone else
  • DChange the code, then add a test

How the community answered

(53 responses)
  • A
    13% (7)
  • B
    8% (4)
  • C
    4% (2)
  • D
    75% (40)

Community Discussion

No community discussion yet for this question.

Full DASSM Practice