How many comparisons are needed to sort an array of length 5 if a straight…

ISRO Scientist/Engineer SC · 2008 · Computer Science

How many comparisons are needed to sort an array of length 5 if a straight selection sort is used and array is already in the opposite order?

  1. A.

    1

  2. B.

    10

  3. C.

    15

  4. D.

    20

Attempted by 1550 students.

Show answer

Correct answer: B

The worked solution is available to enrolled students.

Explore the full course: Iocl Engineers Officers Grade A Paper 2

Loading lesson…