← 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?
- A.[75]
- B.[90, 75]
- C.[90]
- 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 →