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

Arrays – AQA GCSE Computer Science lesson (8525)

Pupils learn to explain what a data structure is and use a one-dimensional array 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 5 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 name hold a whole list of values?

By the end, pupils can explain what a data structure is and use a one-dimensional array in the class's language and AQA pseudo-code.

The Build (the main task)
Write a program that stores the five acts on the main stage in an array, outputs the act at index 2, changes the last act to Red Kites, then uses a loop to output every act. Use the acts Echo Vale, The Lumens, Kai Rivers, Sola and Night Owls. (5 marks)
Support version
Part-filled code with the array created and the loop line written.
Challenge
Write a program that stores the set lengths 45, 60, 30 and 90 in an array, uses a loop to add them up, and outputs the total. (4 marks) Write an algorithm in AQA pseudo-code that does the same as the Build program. Use LEN to change the last act, and a FOR … IN loop to output every act. (4 marks) Write a program that inputs an index and the name of a new act. If the index is from 0 to 4, it changes that element of the Build's array and then outputs every act; otherwise it outputs Not a valid index. (6 marks)
Real-world link
The main stage line-up stored as an array.
Key words
Array, Index and Data structure, each with a definition, an icon and a common mix-up on the key vocabulary slide.
Misconceptions it tackles
“The first item in an array is at index 1”; “An array can only be printed one item at a time by hand”.
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.