Skip to main content

Chapter 66 Quiz

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

  • Explain why sequential I/O total time equals the sum of individual wait times
  • Create a thread with threading.Thread, start it, and join it
  • Write an async def function, await a coroutine, and run it with asyncio.run
  • Use asyncio.gather to run multiple coroutines concurrently
  • Use asyncio.create_task to start background work
  • Read and write files with aiofiles using async with
  • Write async tests with pytest-asyncio

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

Test your understanding of async Python by predicting timing, diagnosing bugs, choosing concurrency patterns, and applying the async toolkit to SmartNotes scenarios.

Checking access...