If a list is having 'n' elements, then how many passes 'Selection Sort' will require to sort the list?
If a list is having 'n' elements, then how many passes 'Selection Sort' will require to sort the list?
Solution
✅ Correct Option: 2
Selection sort picks the smallest element from the unsorted part and swaps it into its correct position, one position per pass. After passes, the first positions hold the correct elements, so the last element is automatically in place and no extra pass is needed.
Number of passes
Option 3: is a common trap, but the th pass would have only one element left to compare, so it does nothing.
Related questions:
2025: 20 May Shift 1
2026: 31 May Shift 1
2026: 24 May Shift 1
2026: 23 May Shift 2