Skills101
← All practice quizzes

Quiz: Reviewing AI Code

5 questionsNo time limitPass: 60%+10 XP on first pass

The review checklist professionals use on AI-generated code, and six runnable examples of plausible-looking bugs — mutable defaults, floating-point money, off-by-one pagination, timezone-naive dates, swallowed exceptions and quadratic loops — with the fixes.

Log in to take the quiz

Free account · see your score, answers and explanations, earn XP

  1. Question 1

    What did the second call add_score(75) return in Bug 1?

  2. Question 2

    What is the right type for storing rupee amounts?

  3. Question 3

    In Bug 4, was the contest really still open at 4 PM UTC?

  4. Question 4

    Why is except Exception: return 0 dangerous?

  5. Question 5

    Which change fixes the slow duplicate check in Bug 6?