Single lesson · Written for AQA GCSE Computer Science (8525)

Records – AQA GCSE Computer Science lesson (8525)

Pupils learn to explain what a record is and use records in the class's language and AQA pseudo-code.

Also in a bundle Characters, Images, Sound, Strings and Data Structures – AQA GCSE Computer Science lessons (8525) 11 lessons for £39 · save 11% on buying separately

Lesson 9 of 11 in unit 10.4 Characters, Images, Sound, Strings and Data Structures, taught in Year 10, Spring 2. It answers one big question: How can one variable hold different kinds of data about one thing?

By the end, pupils can explain what a record is and use records in the class's language and AQA pseudo-code.

The Build (the main task)
Write a pseudo-code record definition for a festival ticket with the fields ticketID, name, days and paid. (3 marks) Write a pseudo-code statement that creates a ticket called t1 for Ravi Shah, ticket ID 205, for 2 days, not yet paid. Then write a statement that updates its paid field to True. (2 marks)
Support version
AQA's RECORD … ENDRECORD layout with the first field written, and a statement template.
Challenge
The app also stores food stalls. Write a pseudo-code record definition for a stall with the fields stallName, pitch, vegan and price, then a statement that creates a stall called s1 for Taco Van at pitch 12, vegan, priced 6.50. (4 marks) Explain two reasons why a record suits ticket data better than four separate arrays (one for ticket IDs, one for names, one for days and one for paid). (4 marks) Write a program that defines a record structure for a ticket, creates a ticket for Ravi Shah (205, 2 days, not paid), inputs a new number of days, updates the days field, then outputs the name and the days from the record. (5 marks)
Real-world link
Each festival ticket holds the fan's name, days and whether it is paid.
Key words
Record, Field and Structure, each with a definition, an icon and a common mix-up on the key vocabulary slide.
Misconceptions it tackles
“A record can only hold one type of data, like an array”; “To change one field you create the whole record again”.
AQA 8525 specification
3.2.6 (data structures: one and two-dimensional arrays and records).

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.

Pupils need computers for the main task.

Also sold in the Characters, Images, Sound, Strings and Data Structures unit bundle, which includes the medium term plan, and in the full-year and complete-course bundles.

Choose your school's Paper 1 language when you buy: C#, Python or VB.NET. You get that language's files: every program, code example, worked answer and programming task is written in it, and lessons with no code are the same in all three. Algorithms are also shown in AQA pseudo-code, as in the exam.

An independent resource written for AQA GCSE Computer Science (8525). It is not endorsed by AQA.

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
  • Your choice of Paper 1 language: C#, Python or VB.NET

More for GCSE Computer Science (AQA)

See all

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