← 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?
- A.8 and 9
- B.9 and 10
- C.5 and 6
- 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 →