Given : numList = [8, 7, 13, 1, -9, 4] having 6 elements.
How many number of passes required to sort numList using selection sort?
Given : numList = [8, 7, 13, 1, -9, 4] having 6 elements.
How many number of passes required to sort numList using selection sort?
Solution
✅ Correct Option: 4
Selection sort on elements needs passes. In each pass the smallest remaining element is placed in its correct position, and once elements are placed, the last one is already in position.
Here , so passes .
Option 1: 6 passes would be counted if the last element were also treated as a pass, but a single remaining element needs no sorting.
Related questions:
2026: 23 May Shift 1
2025: 30 May Shift 2
2026: 19 May Shift 1
2026: 11 May Shift 2
2025: 27 May Shift 2