Multiple Choice
Sorting a preexisting sequence of n elements can be accomplished with the heapsort algorithm by:
A) Calling make_heap on the entire sequence and then calling pop_heap on the entire sequence n times.
B) Calling push_heap on the entire sequence n times and then calling pop_heap on the entire sequence n times.
C) Calling make_heap on the entire sequence and then calling sort_heap on the entire sequence.
D) Calling push_heap on the entire sequence n times and then calling sort_heap on the entire sequence.
Correct Answer:

Verified
Correct Answer:
Verified
Q4: Which of the following is not a
Q18: Which category of iterators combines the capabilities
Q26: If pairs is a map containing int
Q32: Part of the functionality of member function
Q46: Which of the following is not an
Q49: Given that v1 and v2 are vectors,
Q50: The _ function would produce a sequence
Q51: Which of the following statements produces the
Q53: Functions partial_sum and partial_sort are similar in
Q55: Which of the following is not a