×

Multiple-Choice Questions

Web Technologies MCQs

Computer Science Subjects MCQs

Databases MCQs

Programming MCQs

Testing Software MCQs

Digital Marketing Subjects MCQs

Cloud Computing Softwares MCQs

AI/ML Subjects MCQs

Engineering Subjects MCQs

Office Related Programs MCQs

Management MCQs

More

Which of the following replaces the root in deletion operation of max heap?

19. Which of the following replaces the root in deletion operation of max heap?

  1. Next value of left subtree
  2. Next value of right subtree
  3. Any random value of tree
  4. Last element of last level

Answer

The correct answer is: D) Last element of last level

Explanation

Root level is always replaced by the last element of the last level regardless of max heap or min heap deletion operation.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.