🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← All topics

Quiz: Reviewing AI Code: questions with answers

10 questions, each with the answer and a short explanation.

Take the timed quiz + get a certificate →
  1. Q1. What did the second call addscore(75) return in Bug 1?
  2. Q2. What is the right type for storing rupee amounts?
  3. Q3. In Bug 4, was the contest really still open at 4 PM UTC?
  4. Q4. Why is except Exception: return 0 dangerous?
  5. Q5. Which change fixes the slow duplicate check in Bug 6?
  6. Q6. What does this print? (code)
  7. Q7. An AI's pagination function returns items 21–40 for page 1 when pages start at 1. What kind of bug is this?
  8. Q8. What does this print? (code)
  9. Q9. In getdiscount, what should replace except Exception: return 0?
  10. Q10. Why does the lesson say to review "the diff, not the chat"?