Skip to main content

Chapter 45 Quiz

Before taking the quiz, verify that you can do each of these without looking at the lessons:

  • Predict output: Read a 5-line Python program with variables and string formatting, and write the exact output before running it
  • Build a trace table: Track every variable's value at every line, catching reassignment errors
  • Find a type bug: Identify a type mismatch in code and explain why Pyright would catch it
  • Read a test: Look at an assert statement and determine whether the test will pass or fail

If any feel uncertain, revisit the specific lesson before continuing.

Test your understanding of the PRIMM method, trace tables, code review, and test reading from Chapter 45.

Checking access...