Question
Which statement about asyncio Event Loop and Tasks is the strongest interview answer?
- asyncio Event Loop and Tasks is mostly a naming style choice and has little effect on runtime behavior or design tradeoffs.
- asyncio Event Loop and Tasks exists mainly to reduce the number of files in a Python project.
- asyncio Event Loop and Tasks matters only for frontend scripting and not for backend or automation code.
- The asyncio event loop coordinates cooperative tasks that suspend with await instead of blocking the whole process on I/O.
Hint
Start with the core rule behind asyncio Event Loop and Tasks.
Answer and rationale
Correct answer: D. The asyncio event loop coordinates cooperative tasks that suspend with await instead of blocking the whole process on I/O.
The asyncio event loop coordinates cooperative tasks that suspend with await instead of blocking the whole process on I/O. This is the base concept interviewers commonly test first.
Track: Python