The number of passes, selection sort makes to sort a list of 'n' elements is ____.
The number of passes, selection sort makes to sort a list of 'n' elements is ____.
Solution
✅ Correct Option: 3
Selection sort finds the smallest element in the unsorted part in each pass and swaps it into its correct position. After passes, elements are in their final places, so the last element is automatically in place and no extra pass is needed.
For example, a list of 5 elements needs 4 passes.
Option 2: passes is a common guess, but the last pass would compare the single remaining element with nothing, so it is not needed.
Related questions:
2026: 23 May Shift 2
2026: 21 May Shift 1
2026: 11 May Shift 2
2026: 11 May Shift 2
2025: 20 May Shift 1