Question 150

In a max-heap, the root node contains:

  1. AThe smallest element
  2. BThe largest element
  3. CA random element
  4. DThe median
Show answerHide answer

Correct answer: (B) The largest element

Explanation

Every parent is ≥ its children.

From DSSSB TGT Computer Science Full Mock Test 3

This is question 150 of DSSSB TGT Computer Science Full Mock Test 3. 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.