🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Refactoring with AI: all 10 questions

Quiz: Refactoring with AI · Question 6 of 10

A golden-master comparison shows the AI's refactor gives sports students a different fee. The old rule may even be wron…

A golden-master comparison shows the AI's refactor gives sports students a different fee. The old rule may even be wrong. What should you do?

  1. A.Keep the AI version, because it is probably right
  2. B.Make the refactor reproduce the old behaviour, and raise the rule question with the owner as a separate change
  3. C.Delete the sports concession
  4. D.Remove those cases from the test
Answer & explanation

Correct answer: Make the refactor reproduce the old behaviour, and raise the rule question with the owner as a separate change

Refactors must not silently change behaviour that people rely on.

Can you get the rest right without peeking?

Take the timed Quiz: Refactoring with AI quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →