← Binary Trees & BST Quiz: all 8 questions
Binary Trees & BST Quiz · Question 5 of 8
Which data structure does level-order (BFS) traversal use?
Which data structure does level-order (BFS) traversal use?
- A.Queue
- B.Stack
- C.Heap
- D.Hash set
Answer & explanation
Correct answer: Queue
Nodes are processed in the order they're discovered, level by level — first in, first out.
Can you get the rest right without peeking?
Take the timed Binary Trees & BST Quiz quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →