Reading & Directing AI-Written Code · Advanced
Reading & Directing AI-Written Code — Advanced
38 practice questions on Reading & Directing AI-Written Code. Every question is written from a specific moment in a real lecture, and after you answer it links to that exact timestamp so you can check it yourself.
What this pack asks
The free questions in this pack. Answer choices and explanations appear as you play.
A squaring helper came back implemented as return n + n, and its test file asserts square(0) == 0 and square(2) == 4. Both assertions pass. One reviewer proposes adding float cases square(0.0) == 0.0 and square(2.0) == 4.0; another proposes adding square(3) == 9. Which proposal exposes the bug, and at what cost to the other?
Answer this one →
Written from lectures by Harvard CS50. Not affiliated with or endorsed by any university, channel, creator or certification program.