Consider the following array. Which algorithm out of the following options…

2025

Consider the following array.

image.png

Which algorithm out of the following options uses the least number of comparisons (among the array elements) to sort the above array in ascending order ?

Answer: C. Insertion sort

  1. A.

    Selection sort

  2. B.

    Merge sort

  3. C.

    Insertion sort

  4. D.

    Quicksort using the last element as pivot

Attempted by 344 students.

Show answer & explanation

Correct answer: C

Explore the full course: Tpsc Assistant Technical Officer

Loading lesson…