15 Generators & Async questions from the Python bank, written for Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd.
Free to start: the 2-minute IT readiness check — six questions and a result.
A.a keyword that pauses a function and emits a value, resuming from the same point on the next request
B.a function containing yield that returns a lazy producer of values instead of computing them all at once
C.the asyncio scheduler that runs coroutines, manages I/O readiness, and drives concurrency on a single thread
D.a keyword that suspends a coroutine until the operand it precedes completes, yielding control to the event loop
Answer + AI explanation with Pro
2. Which term means: "a keyword that pauses a function and emits a value, resuming from the same point on the next request"?
Junior
A.coroutine
B.event loop
C.await
D.yield
Answer + AI explanation with Pro
3. Which statement is correct?
Junior
A.yield — the asyncio scheduler that runs coroutines, manages I/O readiness, and drives concurrency on a single thread
B.yield — a keyword that pauses a function and emits a value, resuming from the same point on the next request
C.yield — a function declared with async def whose execution can be suspended and resumed at await points
D.yield — a keyword that suspends a coroutine until the operand it precedes completes, yielding control to the event loop
Answer + AI explanation with Pro
4. What is generator function?
Mid
A.a function declared with async def whose execution can be suspended and resumed at await points
B.a keyword that pauses a function and emits a value, resuming from the same point on the next request
C.a keyword that suspends a coroutine until the operand it precedes completes, yielding control to the event loop
D.a function containing yield that returns a lazy producer of values instead of computing them all at once
Answer + AI explanation with Pro
5. Which term means: "a function containing yield that returns a lazy producer of values instead of computing them all at once"?
Mid
A.event loop
B.generator function
C.coroutine
D.yield
Answer + AI explanation with Pro
6. Which statement is correct?
Mid
A.generator function — a function containing yield that returns a lazy producer of values instead of computing them all at once
B.generator function — a function declared with async def whose execution can be suspended and resumed at await points
C.generator function — a keyword that pauses a function and emits a value, resuming from the same point on the next request
D.generator function — a keyword that suspends a coroutine until the operand it precedes completes, yielding control to the event loop
Answer + AI explanation with Pro
7. What is coroutine?
Mid
A.a function containing yield that returns a lazy producer of values instead of computing them all at once
B.a function declared with async def whose execution can be suspended and resumed at await points
C.a keyword that pauses a function and emits a value, resuming from the same point on the next request
D.a keyword that suspends a coroutine until the operand it precedes completes, yielding control to the event loop
Answer + AI explanation with Pro
8. Which term means: "a function declared with async def whose execution can be suspended and resumed at await points"?
Mid
A.generator function
B.coroutine
C.yield
D.event loop
Answer + AI explanation with Pro
9. Which statement is correct?
Mid
A.coroutine — a keyword that pauses a function and emits a value, resuming from the same point on the next request
B.coroutine — a function containing yield that returns a lazy producer of values instead of computing them all at once
C.coroutine — the asyncio scheduler that runs coroutines, manages I/O readiness, and drives concurrency on a single thread
D.coroutine — a function declared with async def whose execution can be suspended and resumed at await points
Answer + AI explanation with Pro
10. What is await?
Mid
A.a keyword that suspends a coroutine until the operand it precedes completes, yielding control to the event loop
B.a function containing yield that returns a lazy producer of values instead of computing them all at once
C.a function declared with async def whose execution can be suspended and resumed at await points
D.a keyword that pauses a function and emits a value, resuming from the same point on the next request
Answer + AI explanation with Pro
11. Which term means: "a keyword that suspends a coroutine until the operand it precedes completes, yielding control to the event loop"?
Mid
A.yield
B.coroutine
C.generator function
D.await
Answer + AI explanation with Pro
12. Which statement is correct?
Mid
A.await — a function declared with async def whose execution can be suspended and resumed at await points
B.await — a function containing yield that returns a lazy producer of values instead of computing them all at once
C.await — a keyword that suspends a coroutine until the operand it precedes completes, yielding control to the event loop
D.await — the asyncio scheduler that runs coroutines, manages I/O readiness, and drives concurrency on a single thread
Answer + AI explanation with Pro
13. What is event loop?
Senior
A.the asyncio scheduler that runs coroutines, manages I/O readiness, and drives concurrency on a single thread
B.a function containing yield that returns a lazy producer of values instead of computing them all at once
C.a keyword that suspends a coroutine until the operand it precedes completes, yielding control to the event loop
D.a keyword that pauses a function and emits a value, resuming from the same point on the next request
Answer + AI explanation with Pro
14. Which term means: "the asyncio scheduler that runs coroutines, manages I/O readiness, and drives concurrency on a single thread"?
Senior
A.generator function
B.event loop
C.await
D.coroutine
Answer + AI explanation with Pro
15. Which statement is correct?
Senior
A.event loop — a keyword that suspends a coroutine until the operand it precedes completes, yielding control to the event loop
B.event loop — the asyncio scheduler that runs coroutines, manages I/O readiness, and drives concurrency on a single thread
C.event loop — a function containing yield that returns a lazy producer of values instead of computing them all at once
D.event loop — a function declared with async def whose execution can be suspended and resumed at await points
Answer + AI explanation with Pro
Free to start
Start with a free readiness check
Sign up free for the 2-minute IT readiness check and a scored result. Answers, explanations and the AI tutor on every Generators & Async question come with Pro.