← Quiz: Testing AI Code: all 10 questions
Quiz: Testing AI Code · Question 1 of 10
Why are tests written before the AI writes code more trustworthy?
Why are tests written before the AI writes code more trustworthy?
- A.They run faster
- B.They describe what you want, instead of what the code happens to do
- C.AI can't read tests
- D.They don't need expected values
Answer & explanation
Correct answer: They describe what you want, instead of what the code happens to do
Tests written afterwards by the same AI often copy its assumptions, including wrong ones.
Can you get the rest right without peeking?
Take the timed Quiz: Testing AI Code quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →