ÌÇÐÄVlog

Please consent to cookies to view content.

' ); iframeDoc.close(); } } } } } const observer = new MutationObserver(switchSrc); observer.observe(document.documentElement, { childList: true, subtree: true, }); })();

ÌÇÐÄVlog

Last updated

28 November 2026

pptx, 220.63 KB
pptx, 220.63 KB
docx, 90.92 KB
docx, 90.92 KB
pdf, 109.18 KB
pdf, 109.18 KB
docx, 91.21 KB
docx, 91.21 KB
pdf, 121.82 KB
pdf, 121.82 KB
docx, 89.77 KB
docx, 89.77 KB
jpg, 147.24 KB
jpg, 147.24 KB

Bubble sort is easy to describe and surprisingly easy to get wrong in code. The range of the inner loop, the swap with a Temp variable, and the Swapped flag are where students lose marks, so this lesson takes each one slowly.

Students build the basic version first, then improve it so it stops as soon as the list is sorted. That’s the version Paper 4 questions usually expect.

What’s included

  • 15-slide editable teacher PowerPoint, with speaker notes on every slide
  • Python starter code with guided TODOs and the full tested solution, in a Word file ready to copy into your editor (including a descending-order extension)
  • Student worksheet (36 marks) in Word and PDF: key terms, a trace table, fill-the-gap code, spot-the-errors and exam-style questions
  • Full answer key in Word and PDF

How the lesson runs

  • A ‘line up by height’ starter
  • What a bubble sort is, with a visual of the first pass
  • Key vocabulary: pass, swap, Temp, Swapped flag and boundary
  • The basic sort and the improved early-exit sort, step by step
  • A spot-the-bug slide on swapping without Temp
  • A trace-table mini task with answers
  • Basic versus improved comparison
  • A coding task, exam-style question with mark scheme, and exit ticket

Written for Cambridge International AS & A Level Computer Science (9618), Paper 4 Practical, and pitched at A Level (Year 13). Everything is editable, so you can adapt it for your own classes.

Please leave a review if you find it useful. It really helps!

Reviews

Something went wrong, please try again later.

This resource hasn't been reviewed yet

To ensure quality for our reviews, only customers who have purchased this resource can review it

to let us know if it violates our terms and conditions.
Our customer service team will review your report and will be in touch.