1. Home
  2. Data Science
  3. Python
  4. What is the right way to pause inside a coroutine without…

Added 25 Nov 2026

What is the right way to pause inside a coroutine without blocking the event loop in Python?

  1. time.sleep()
  2. os.sleep()
  3. await asyncio.sleep() Correct answer
  4. input()

Correct answer

C. await asyncio.sleep()

5 views

MCQSEXAM

Explanation

time.sleep blocks the whole thread, asyncio.sleep yields control.

Reference

Asked in: Python Interview Advanced

https://docs.python.org/3/library/index.html

Preparing for an exam?

Doubts & discussion

Not sure why the answer is C? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Python MCQs

Practise all Python MCQs

Similar MCQs