Question:

________ data type is used to implement a Queue data structure in Python?

Updated On: Nov 4, 2024
  • Sets
  • Dictionary
  • Tuple
  • List
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is D

Solution and Explanation

In Python, queues can be implemented using a list, which supports append to add and pop to remove elements. For efficiency, collections.deque is recommended for double-ended queues.
Was this answer helpful?
0
0