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

Quiz: Reviewing AI Code · Question 1 of 10

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

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

  1. A.[75]
  2. B.[90, 75]
  3. C.[90]
  4. D.An error
Answer & explanation

Correct answer: [90, 75]

The default list is shared between calls, so student B got student A's score too.

Can you get the rest right without peeking?

Take the timed Quiz: Reviewing AI Code quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →