Q: Which data structure is commonly used to implement a queue?
-
A
Array
-
B
Linked list
-
C
Binary tree
-
D
Hash table
B
Answer:
B
Explanation:
Answer: b) Linked list
Explanation: A linked list is commonly used to implement a queue since it allows for efficient insertion and deletion at both ends of the list.
Related Topic:
Share Above MCQ