🎙 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 2 of 10

What does a characterization (golden master) test check?

What does a characterization (golden master) test check?

  1. A.That the code matches the official specification
  2. B.That the code is fast enough
  3. C.That the code still produces exactly what it produced before, for many recorded inputs
  4. D.That the code has no style warnings
Answer & explanation

Correct answer: That the code still produces exactly what it produced before, for many recorded inputs

It pins current behaviour, right or wrong, so any change is detected.

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 →