1. Home
  2. Data Science
  3. Python
  4. Which module offers a thread-safe FIFO queue in Python?

Added 25 Nov 2026

Which module offers a thread-safe FIFO queue in Python?

  1. collections.list
  2. heap
  3. queue Correct answer
  4. stack

Correct answer

C. queue

6 views

MCQSEXAM

Explanation

queue.Queue handles locking internally.

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