Skip to main contentSkip to solution

Which sorting algorithm involves repeatedly selecting the smallest element and placing it in its correct position?

Solution

✅ Correct Option: 2

Selection Sort scans the unsorted part of the list, picks the smallest element, and swaps it into the next position of the sorted part. Repeating this for every position sorts the whole list.


Bubble Sort: repeatedly swaps adjacent out-of-order elements, so the largest values "bubble" to the end; it does not select a minimum.

Insertion Sort: takes the next element and inserts it into its right place within the already sorted part; it does not search for the smallest element.

Quick Sort: picks a pivot and partitions the list around it, then sorts each part recursively.

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question