Single lesson · Written for OCR A Level (H446)

Caching and its trade-offs – OCR A Level Computer Science lesson (H446)

Students learn to explain the nature, benefits and drawbacks of caching and why programmers reuse tested components.

Also in a bundle Computational Methods and Year 12 Exams – OCR A Level Computer Science lessons (H446) 13 lessons for £45 · save 13% on buying separately

Lesson 3 of 13 in unit 12.10 Computational Methods and Year 12 Exams, taught in Year 12, Summer 1. It answers one big question: When does keeping a copy help, and when does it hurt?

By the end, students can explain the nature, benefits and drawbacks of caching and why programmers reuse tested components.

The Build (the main task)
Explain two benefits and two drawbacks of the Brackenmoor Buses app caching timetables on passengers' phones (4 marks), and one reason its developers should reuse a tested fare-calculation component (2 marks).
Support version
A benefit · drawback table with the cache's job described and one row done, and the sentence starter 'Because the copy is on the phone, …'.
Challenge
Explain how the app could tell whether a cached timetable is stale, and the trade-off in choosing how often to check.
Real-world link
Brackenmoor's journey-planner app, used on buses where the mobile signal drops between villages.
Key words
Caching, Cache and Trade-off, each with a definition, an icon and a common mix-up on the key vocabulary slide.
Misconceptions it tackles
“A cached copy is always up to date”; “Caching only means the cache memory inside the processor”.
OCR H446 specification
2.1.2 (c); (d).

Every lesson follows the same Code & Commerce structure: a Bell Task recall starter, key vocabulary with definitions and icons, short teaching chunks with a check before pupils move on, The Build (one main task), challenge questions that get harder, and an exit question. Answers reveal one at a time on the slides, and everything is editable PowerPoint and Word.

Students can do it all on paper.

Also sold in the Computational Methods and Year 12 Exams unit bundle, which includes the medium term plan, and in the full-year and complete-course bundles.

An independent resource written for OCR A Level Computer Science (H446). It is not endorsed by OCR or Cambridge University Press & Assessment. Programming project (NEA) lessons teach general skills on a made-up example project and give supervised time, within JCQ's rules on the help a centre may give.

What's included

  • Slide deck (PowerPoint)
  • Lesson plan (Word)
  • Worksheet (Word)
  • Support worksheet with scaffolds (Word)
  • Single-teacher licence: use and adapt it with your own classes

More for A Level Computer Science

See all

Written for the specifications named. Not endorsed by or affiliated with any exam board.