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

Quiz: Testing AI Code · Question 5 of 10

An AI-written test fails. The AI suggests changing the expected value so it passes. What should you do?

An AI-written test fails. The AI suggests changing the expected value so it passes. What should you do?

  1. A.Accept the change
  2. B.Check the requirement yourself — usually the code, not the test, needs fixing
  3. C.Delete the test
  4. D.Disable CI
Answer & explanation

Correct answer: Check the requirement yourself — usually the code, not the test, needs fixing

The test encodes the requirement. Only change it if the requirement itself was misunderstood.

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 →