Memory, Storage and Selection – OCR GCSE Computer Science lessons (J277)
14 OCR J277 lessons on RAM, ROM, virtual memory and secondary storage, with IF, ELSE IF, CASE and Boolean conditions.
The second GCSE unit keeps both papers running side by side. On the Paper 1 track pupils follow data out of the CPU: why it needs fast, volatile primary storage, how RAM, ROM and virtual memory share the work, and why every device also needs non-volatile secondary storage – optical, magnetic or solid state – chosen for capacity, speed, portability, durability, reliability and cost. On the Paper 2 track pupils learn selection: IF, ELSE IF, nested IF and CASE, built from comparison and Boolean operators, growing one leisure centre booking program across the unit. Two Bebras lessons open the half-term in the Challenge's November window.
Unit 10.2 is taught in Year 10, Autumn 2, and answers one big question: Where does a computer keep things, and how does it decide? Every lesson uses the same real-world context (a leisure centre's booking kiosk for the programming lessons, and real people choosing devices and storage – gamers, photographers, festivals and hospitals – for the Paper 1 lessons), and pupils make a leisure centre ticket program that prices a visit by age, membership and activity, tested with normal and boundary values. The careers link is a data centre technician: a data centre technician chooses, fits and replaces the RAM, SSDs, hard drives and tape that keep cloud services running – the trade-offs pupils weigh in this unit.
What happens in each lesson:
Lesson 1, Bebras practice: How can we solve a problem we have never seen before? By the end, pupils can use algorithmic thinking, pattern recognition and logical checking to solve unfamiliar Bebras tasks, and choose which tasks to attempt first.
Lesson 2, Bebras Challenge: How do we use our strategies under real challenge conditions? By the end, pupils can take the 45-minute UK Bebras Challenge under test conditions, using abstraction, decomposition and a deliberate strategy to manage their time.
Lesson 3, Why computers need primary storage: Why can't the CPU work straight from the hard drive? Main task: explain why a games console needs primary storage to run a game that is saved on its hard drive, using the words volatile and temporary.
Lesson 4, Selection: IF and ELSE IF: How can a program make a different choice for different users? Main task: write a Python program that inputs a visitor's age and uses if, elif and else to print the swim price: under 5 free, 5 to 15 £3.00, 16 to 64 £5.50, 65 and over £3.50.
Lesson 5, RAM and ROM: Why does a computer need both RAM and ROM? Main task: complete a table comparing RAM and ROM (what it holds, volatile or non-volatile, can it be changed, an example), then explain why a laptop's start-up instructions are stored in ROM.
Lesson 6, Comparison and Boolean operators in conditions: How can one IF statement test more than one thing? Main task: write a Python program that inputs a visitor's age and whether they have done the gym induction (Y or N), and uses comparison and Boolean operators to print 'Gym allowed' only if they are 16 or over and have done the induction.
Lesson 7, Virtual memory: What happens when a computer runs out of RAM? Main task: explain how virtual memory lets a laptop with 8 GB of RAM keep 40 browser tabs and a game open, and why the laptop slows down.
Lesson 8, Nested selection and CASE: How can a program handle many choices neatly? Main task: write a Python program that inputs an activity code (S, G or C) and uses a CASE statement (match) to set the price, then uses nested selection to take £1 off for members.
Lesson 9, Why secondary storage is needed: Why do we need storage as well as memory? Main task: explain two reasons why a smartphone needs secondary storage as well as RAM, using the words non-volatile and capacity.
Lesson 10, Optical, magnetic and solid state: How do different storage devices actually hold our data? Main task: complete a table for optical, magnetic and solid state storage (how data is stored, one device, one strength, one weakness), then describe how data is read from an optical disc.
Lesson 11, Choosing storage: capacity, speed, portability, durability, reliability, cost: How do we choose the right storage for the job? Main task: explain which type of storage a wildlife photographer should use in the field and which for back-ups at home, using at least three characteristics for each. The photographer works outdoors in rain and mud for days at a time, then backs up thousands of photos at home.
Lesson 12, Programming practice: selection: How do we build and test a program that makes decisions? Main task: write the complete leisure centre ticket program: input age, activity and membership, use selection to work out the price, then test it with a normal and a boundary value for each branch. Start from your kiosk program from the Guided Practice. (The gym desk checks inductions, so the kiosk checks age only.)
Lesson 13, Exam practice: storage scenarios: How do we justify a storage choice for full marks? Main task: justify a choice of storage for a music festival's 60 handheld ticket scanners, which staff carry all day in rain and mud, and a different choice for its ten-year archive of performance videos (about 40 TB of new video each year, watched only now and then).
Lesson 14, Progress Check: 23 multiple-choice questions (assigned as homework or in the next lesson) + a 40-mark written paper in the lesson (40 minutes)
- Misconceptions it tackles include
- “The CPU can run a program straight from the hard drive or SSD”; “Every branch whose condition is True runs, not just the first one”; “ROM is where saved files and installed apps are kept”. Each is planned into a hinge question before the main task or an exit question, so you find out who still holds it.
- OCR J277 specification coverage
- 1.2.1, primary storage (memory): why computers need primary storage, the difference between RAM and ROM, the purpose of ROM, virtual memory; 1.2.2, secondary storage: why it is needed, optical, magnetic and solid state storage, choosing a device by capacity, speed, portability, durability, reliability and cost; 2.2.1, programming fundamentals: selection (IF, ELSE IF, nested IF and CASE), comparison operators and Boolean operators AND, OR, NOT.
It builds on 10.1 Systems Architecture and First Programs (the CPU, registers, embedded systems, variables, casting and operators), and KS3 9.4 Inside the CPU and 8.1 Python: Iteration and Boolean Operators. It leads on to 10.3 Binary, Boolean Logic and Iteration (units of data, logic gates, loops that use conditions), 10.4 file sizes and compression, 11.1 input validation, 11.2 operating systems and memory management.
- Adapting it for your school
- Lessons 1–2 (Bebras) are flex lessons: if you do not enter the UK Bebras Challenge, use them for storage content or cut them. Check this year's challenge dates and categories at bebras.uk. Lesson 13 (Exam practice: storage scenarios) is a flex lesson: cut it and set its Build as homework. Lesson 8 uses Python's match … case, which needs Python 3.10 or later. On an older version, teach CASE in OCR Exam Reference Language on paper and write it as IF and ELIF in Python. Any Python 3 editor works for the other programming lessons. Swap the leisure centre for any pricing system your pupils know, such as a cinema or a bus pass. Python and OCR Exam Reference Language differ: elif is elseif, and/or/not are AND/OR/NOT, and match/case is switch/case/default.
Two versions in one download. The "With quiz" folder is for schools with a Code & Commerce Quizzes subscription: wherever the lessons use a Progress Check, its multiple-choice questions are ready-made on the quiz site for you to set, with a printed version as the backup. The "Without quiz" folder is the same teaching for standalone use, with no mention of the quiz site and every check on paper. You don't need a quiz subscription to use it.
What's included
- 14 lesson slide decks (PowerPoint)
- 14 lesson plans (Word)
- 14 worksheets, plus 11 support versions with scaffolds (Word)
- 1 exam-style paper with mark scheme (Word)
- Medium term plan with intent, key words, misconceptions and adaptive teaching notes (Word)
- Progress Check lesson to assess the unit
- Python starter program and teacher copy for the kiosk
- Exam practice - storage scenarios - Quiz Quiz Trade Cards
- Department licence: every teacher in your department can use and adapt it
- Two versions of the files: one for Code & Commerce Quizzes subscribers and one for standalone teaching, no quiz site needed
In this bundle
Worth £56 bought separately at £4 a lesson. The bundle saves you 30%.
More for GCSE Computer Science (OCR)
See all13 OCR J277 lessons on the CPU, von Neumann architecture, fetch–execute and embedded systems, with first Python programs.
Free sample lesson11 OCR J277 lessons on units, binary, hex, binary shifts and logic gates, with FOR and WHILE loops in Python.
Free sample lesson11 OCR J277 lessons on ASCII and Unicode, images, sound, compression and file size calculations, with strings and arrays.
Free sample lessonWritten for the specifications named. Not endorsed by or affiliated with any exam board.