Generators & Async interview questions

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.

Take the free IT readiness check

or take a mock interview set up for this area

1. What is yield?

Junior
  1. A.a keyword that pauses a function and emits a value, resuming from the same point on the next request
  2. B.a function containing yield that returns a lazy producer of values instead of computing them all at once
  3. C.the asyncio scheduler that runs coroutines, manages I/O readiness, and drives concurrency on a single thread
  4. 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
  1. A.coroutine
  2. B.event loop
  3. C.await
  4. D.yield

Answer + AI explanation with Pro

3. Which statement is correct?

Junior
  1. A.yield — the asyncio scheduler that runs coroutines, manages I/O readiness, and drives concurrency on a single thread
  2. B.yield — a keyword that pauses a function and emits a value, resuming from the same point on the next request
  3. C.yield — a function declared with async def whose execution can be suspended and resumed at await points
  4. 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
  1. A.a function declared with async def whose execution can be suspended and resumed at await points
  2. B.a keyword that pauses a function and emits a value, resuming from the same point on the next request
  3. C.a keyword that suspends a coroutine until the operand it precedes completes, yielding control to the event loop
  4. 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
  1. A.event loop
  2. B.generator function
  3. C.coroutine
  4. D.yield

Answer + AI explanation with Pro

6. Which statement is correct?

Mid
  1. A.generator function — a function containing yield that returns a lazy producer of values instead of computing them all at once
  2. B.generator function — a function declared with async def whose execution can be suspended and resumed at await points
  3. C.generator function — a keyword that pauses a function and emits a value, resuming from the same point on the next request
  4. 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
  1. A.a function containing yield that returns a lazy producer of values instead of computing them all at once
  2. B.a function declared with async def whose execution can be suspended and resumed at await points
  3. C.a keyword that pauses a function and emits a value, resuming from the same point on the next request
  4. 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
  1. A.generator function
  2. B.coroutine
  3. C.yield
  4. D.event loop

Answer + AI explanation with Pro

9. Which statement is correct?

Mid
  1. A.coroutine — a keyword that pauses a function and emits a value, resuming from the same point on the next request
  2. B.coroutine — a function containing yield that returns a lazy producer of values instead of computing them all at once
  3. C.coroutine — the asyncio scheduler that runs coroutines, manages I/O readiness, and drives concurrency on a single thread
  4. 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
  1. A.a keyword that suspends a coroutine until the operand it precedes completes, yielding control to the event loop
  2. B.a function containing yield that returns a lazy producer of values instead of computing them all at once
  3. C.a function declared with async def whose execution can be suspended and resumed at await points
  4. 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
  1. A.yield
  2. B.coroutine
  3. C.generator function
  4. D.await

Answer + AI explanation with Pro

12. Which statement is correct?

Mid
  1. A.await — a function declared with async def whose execution can be suspended and resumed at await points
  2. B.await — a function containing yield that returns a lazy producer of values instead of computing them all at once
  3. C.await — a keyword that suspends a coroutine until the operand it precedes completes, yielding control to the event loop
  4. 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
  1. A.the asyncio scheduler that runs coroutines, manages I/O readiness, and drives concurrency on a single thread
  2. B.a function containing yield that returns a lazy producer of values instead of computing them all at once
  3. C.a keyword that suspends a coroutine until the operand it precedes completes, yielding control to the event loop
  4. 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
  1. A.generator function
  2. B.event loop
  3. C.await
  4. D.coroutine

Answer + AI explanation with Pro

15. Which statement is correct?

Senior
  1. A.event loop — a keyword that suspends a coroutine until the operand it precedes completes, yielding control to the event loop
  2. B.event loop — the asyncio scheduler that runs coroutines, manages I/O readiness, and drives concurrency on a single thread
  3. C.event loop — a function containing yield that returns a lazy producer of values instead of computing them all at once
  4. 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.

Take the free IT readiness check

or take a mock interview set up for this area

24,000+ questions & coding problemsSoftware & IT16,274 questionsGovernment jobs26 examsAptitudenew questions every timeAI practice interviewwith feedback65 topics to practiseMechanical1,149 questionsGATE ME9 papersEngineering Mathematics381 questions2-minute checkfreeDSA Problems1,422Civil1,005 questionsGATE CE9 papersCS Fundamentals1,209 questionsYour scores6 skillsSystem Design25Electrical / EEE1,047 questionsGATE EE9 papersRun your codeC++ · Java · PythonLow-Level Design144Electronics & Comm.975 questionsGATE EC9 papersAI help on every questionFull-Stack6,282Chemical1,005 questionsGATE CH9 papersAI whiteboardsystem designWork abroadEurope · remote · transfersESE ME1 paperGATE practice papers2019–2026ESE CE1 paperDate alertsbefore the last dateESE EE1 paperBehavioural courseHR round practiceESE ET1 paperResume optimizerProSSC JE ME1 paperApplication trackerSSC JE CE1 paperCompany-wise prepSSC JE EE1 paperRole roadmapsRRB JE1 subjectPriced in ₹UPI · cardsISRO SC1 paperGATE CS9 papersIBPS SO IT1 paperUGC NET CS1 paperSSC CGL26 papersIBPS PO26 papersRRB NTPC26 papersSSC CHSL26 papersIBPS Clerk26 papersSBI Clerk26 papersRRB Group D26 papersSSC CPO26 papersSSC GD26 papers