Start learning →

In selection sort, the smallest element is swapped with which element?

AThe leftmost unsorted
BThe lightest unsorted
CThe largest unsorted
DThe latest unsorted
Answer & Solution
Correct answer: A. The leftmost unsorted
1. The minimum has to move to the front of the unsorted part. 2. Whatever sits there is displaced. 3. The smallest element is swapped with the leftmost element of the unsorted list. 4. So the answer is the leftmost unsorted. _Source: syllabus Computer Science, Ch 5 'Sorting' and Ch 6 'Searching'_
Practise this question with Quill — IGNOU MCA →

Keep practising Sorting and Searching

Browse all Sorting and Searching questions for IGNOU MCA, or explore more Computer Science topics.

Start a Sorting and Searching lesson →
Related questions