Records, tuples, lists and 3D arrays – OCR A Level Computer Science lesson (H446)
Students learn to choose a record, tuple, list or array of up to three dimensions for given data, and declare each.
Lesson 1 of 15 in unit 12.8 Data Structures, taught in Year 12, Spring 2. It answers one big question: How should one parcel's details be grouped together?
By the end, students can choose a record, tuple, list or array of up to three dimensions for given data, and declare each.
- The Build (the main task)
- Write a record structure for a Tillbrook Parcels parcel with four fields of different data types, then declare a 3D array of parcel counts for 4 depots, 6 vans and 7 days and state how many elements it holds (6 marks).
- Support version
- A field table (name · data type · example value) with two rows filled, and the 3D array drawn as seven 4 × 6 grids labelled depot, van and day.
- Challenge
- Explain why a depot's fixed map coordinates suit a tuple but a van's list of parcels suits a list.
- Real-world link
- Students meet Tillbrook Parcels, a fictional regional parcel-delivery firm with depots, vans and routes: the unit's running context.
- Key words
- Record, Tuple and Structure, each with a definition, an icon and a common mix-up on the key vocabulary slide.
- Misconceptions it tackles
- “A record is a row in a database table”; “A tuple is a list with round brackets, so its items can be changed”.
- OCR H446 specification
- 1.4.2 (a).
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 Data Structures 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 allStudents learn to compare static and dynamic data structures and justify one for a given use.
Students learn to trace push, pop and peek on an array-based stack and write a pop that checks for an empty stack and moves the top pointer before returning.
Students learn to trace enqueue and dequeue on linear and circular queues, using front and rear pointers and MOD to wrap round.
Written for the specifications named. Not endorsed by or affiliated with any exam board.