Consider the following list of element: 13, 8, 24, 1, 5, 30, 98, 7.
What will be the output of the third pass if the selection sort is applied?
(A) 1, 8, 13, 24, 5, 30, 98, 7
(B) 8, 13 ,24, 1, 5, 30, 98, 7
(C) 8, 1, 5, 13, 24, 30, 98, 7
(D) 1, 5, 7, 13, 8, 30, 98, 24


Answer: (D)

Explanation:

Quiz of this Question


  • Last Updated : 25 Dec, 2018

Share your thoughts in the comments