Question 42Asked in BEL PE Computer Science, 17 Dec 2023 (8:30 AM)

Which of the following array representation is CORRECT for the max heap of the following data elements?

Which of the following array representation is CORRECT for the max heap of the following data elements? 20, 30, 70, 10, 5, 50, 80
  1. A80, 20, 70, 10, 5, 30, 50
  2. B80, 70, 50, 30, 20, 10, 5
  3. C5, 10, 20, 30, 50, 70, 80
  4. D70, 20, 80, 10, 5, 30, 50
Show answerHide answer

Correct answer: (A) 80, 20, 70, 10, 5, 30, 50

From BEL PE Computer Science PYQ, 17 Dec 2023 (8:30 AM)

This is question 42 of BEL PE Computer Science PYQ, 17 Dec 2023 (8:30 AM). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.