糖心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, 254.79 KB
pptx, 254.79 KB
docx, 91.46 KB
docx, 91.46 KB
pdf, 133.28 KB
pdf, 133.28 KB
docx, 91.8 KB
docx, 91.8 KB
pdf, 138.59 KB
pdf, 138.59 KB
docx, 91.02 KB
docx, 91.02 KB
jpg, 143.85 KB
jpg, 143.85 KB

Stacks look simple until students have to write Push and Pop from scratch in a Paper 4 exam. That鈥檚 where the marks go: the missing global, the pointer moved in the wrong order, the full-stack check that鈥檚 out by one. This lesson tackles exactly those mistakes.

Everything is in Python and uses a fixed-size array with a TopPointer, the way exam questions describe it, with Push and Pop broken into numbered steps alongside the code.

What鈥檚 included

  • 19-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 ReverseWord extension)
  • Student worksheet (40 marks) in Word and PDF: 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 starter using a pile of books to introduce LIFO
  • Key vocabulary: push, pop, peek, TopPointer, overflow and underflow
  • Push and Pop broken into numbered steps alongside the Python code
  • A spot-the-bug slide on the order of operations
  • A trace-table mini task with answers
  • Helper functions: Peek, IsEmpty and IsFull
  • 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.