Free November promotion: everything is free until 30 November 2026 — every subject, unlimited practice.
Subjects / LC Computer Science / Strand 2: Core concepts

Sorting algorithms

Bubble sort, insertion sort, selection sort and the idea behind quicksort.

5th Year6th Year HigherOrdinary
Helps to know first: Strings, lists and dictionaries
15practice questions

Match the pairs: 2 · Multiple choice: 7 · Select all that apply: 1 · Numeric answer: 3 · Put in order: 1 · Written answer (self/teacher assessed): 1

Each question has up to three hints, a worked explanation, and is tracked in your progress and review plan.

Practise this topic

Try a question

Multiple choice
Which sorting algorithm builds up a sorted section one item at a time, taking each new item and sliding it into its correct position among the items already sorted?
Choose one answer
Hint 1

Think of how many people sort a hand of playing cards.

Create a free account to save your progress.