Examveda

How is the structure of a binary heap affected when you increase the size of the heap?

A. The heap grows by adding nodes to the end.

B. The heap automatically rebalances itself.

C. The heap elements are sorted.

D. The heap size must be manually adjusted.

Answer: Option A


This Question Belongs to Data Structure >> Heaps

Join The Discussion

Related Questions on Heaps

Which of the following is true for a min-heap?

A. The root node is the smallest element, and every parent node is smaller than its children.

B. The root node is the largest element, and every parent node is larger than its children.

C. All nodes are arranged in a complete binary tree.

D. The tree is always balanced.