🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A.Queue
  2. B.Stack
  3. C.Heap
  4. 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 →