🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Tries (Prefix Trees): all 15 questions

Quiz: Tries (Prefix Trees) · Question 1 of 15

What does the end-of-word flag in a trie node tell you?

What does the end-of-word flag in a trie node tell you?

  1. A.That the node has no children
  2. B.That some stored word finishes exactly at this node
  3. C.That the node is a leaf in every case
  4. D.That the prefix is unique
Answer & explanation

Correct answer: That some stored word finishes exactly at this node

"car" ends at a node that still has children ("card", "care"), so ending and being a leaf are different things.

Can you get the rest right without peeking?

Take the timed Quiz: Tries (Prefix Trees) quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →