🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Tree Traversals: all 13 questions

Quiz: Tree Traversals · Question 10 of 13

Which data structure does level-order traversal use?

Which data structure does level-order traversal use?

  1. A.A stack
  2. B.A hash map
  3. C.A queue
  4. D.A heap
Answer & explanation

Correct answer: A queue

Nodes are taken out in the order they were added, so all nodes of one level come before the next level.

Can you get the rest right without peeking?

Take the timed Quiz: Tree Traversals quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →