Multiple choice

Which of the following statements is/are not true?

  1. Quick sort uses a pivot element to sort the array.

  2. Heap sort is a stable sort.

  3. Merge sort is a stable sort.

  4. Both (2) and (3)

  5. None of the above

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

This is a wrong statement as heap sort does not preserve the order of values while sorting, hence it is an unstable sort.