Question: What is the primary purpose of a queue in the context of binary tree traversal?
Options:
Correct Answer: To store nodes for level-order traversal
Solution:
A queue is primarily used for level-order traversal of a binary tree, allowing nodes to be processed in the order they are encountered.