Answer :
Final answer:
The function build-max-heap(a) is used to build a max heap from an array. The updated array after calling the function is <90, 70, 30, 60, 15, 25, 6, 50, 10, 3>.
Explanation:
The function build-max-heap(a) is used to build a max heap from an array. In a max heap, the value of each parent node is greater than or equal to the values of its children. To build a max heap, we start from the last non-leaf node and move up the tree. For the given array a = <3, 60, 25, 15, 10, 30, 6, 50, 90, 70>, the updated array after calling the function build-max-heap(a) is <90, 70, 30, 60, 15, 25, 6, 50, 10, 3>. So, the correct answer is d) <90, 70, 30, 60, 15, 25, 6, 50, 10, 3>.