← Quiz: Refactoring with AI: all 10 questions
Quiz: Refactoring with AI · Question 10 of 10
Which request is risky to give an AI in one go during a refactor?
Which request is risky to give an AI in one go during a refactor?
- A."Extract the numbers into named constants"
- B."Add type hints and a docstring"
- C."Clean this up and fix any bugs you notice"
- D."Replace the nested if with an early return"
Answer & explanation
Correct answer: "Clean this up and fix any bugs you notice"
It mixes refactoring with behaviour changes, so you cannot tell them apart.
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 →