Question: What is the result of performing a heap sort on an array?
Options:
Correct Answer: A sorted array
Solution:
Heap sort transforms the array into a max-heap and then repeatedly extracts the maximum element, resulting in a sorted array.