35 minutes. Instant-marked. Unlimited attempts. Each answer is marked as soon as you choose it, with an explanation. Nothing is saved in this course.
P1. The error 10 / 0 gives is:
Division by zero.
P2. int("x") gives:
Unusable value.
P3. d = {}; d["a"] gives:
Key not present.
P4. A traceback is read from:
The last line names the error.
P5. A bare except: is poor because it:
Name the error.
P6. assert 2 + 2 == 5 gives:
The test fails.
P7. A boundary test for a pass mark of 50 includes:
Test either side.
P8. The best first step in debugging is to:
Same input each time.