🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Rooted Trees and Huffman Coding: all 10 questions

Quiz: Rooted Trees and Huffman Coding · Question 1 of 10

In a rooted tree, what is a leaf?

In a rooted tree, what is a leaf?

  1. A.The root
  2. B.A vertex with exactly one child
  3. C.A vertex with no children
  4. D.Any vertex at level 1
Answer & explanation

Correct answer: A vertex with no children

Leaves are the vertices at the bottom; internal vertices have at least one child.

Can you get the rest right without peeking?

Take the timed Quiz: Rooted Trees and Huffman Coding quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →