Skip to content

Course home

Sorting algorithms

Sorting algorithms

EasyMediumHard
123456789101112131415161718192021222324252627
Question 8

An agricultural scientist is analyzing five soil samples and has recorded their pH levels. She wants to sort these levels in ascending order using the bubble sort algorithm.

Complete the table to show the steps involved in applying the bubble sort algorithm to sort the list [3.4, 4.5, 5.2, 1.1, 2.3] into ascending order. You only need to show the state of the list after each individual swap is completed.

3.44.55.21.12.3
1.12.33.44.55.2
[5]
Markscheme

Sorting algorithms Questions

  1. GCSE
  2. /Computer Science
  3. /Sorting algorithms

52 exam-style questions on AQA GCSE Computer Science Sorting algorithms. Each one has a worked solution and a mark scheme showing where the marks go.

Question bank