🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Heaps and Heap Sort Internals: all 15 questions

Quiz: Heaps and Heap Sort Internals · Question 1 of 15

In the array form of a heap, what are the children of the node at index 4?

In the array form of a heap, what are the children of the node at index 4?

  1. A.8 and 9
  2. B.9 and 10
  3. C.5 and 6
  4. D.2 and 3
Answer & explanation

Correct answer: 9 and 10

Children are at 2i + 1 = 9 and 2i + 2 = 10.

Can you get the rest right without peeking?

Take the timed Quiz: Heaps and Heap Sort Internals quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →