Community

Community resources

Computer science Worksheets and Python Workspaces shared by Coding Pathway teachers. Worksheets cover exam board theory as well as programming. Read any of them in full here. Teachers can copy one into their own lessons and edit it before setting it to a class.

Planning a whole course or unit? Our mapped pages put the teaching sequence in order with the Worksheets that cover it: OCR GCSE Computer Science (J277), Pearson Edexcel GCSE Computer Science (1CP2), OCR A Level Computer Science (H446), Python Turtle for Key Stage 3.

  • 438 resources
  • 3 teachers sharing
  • Creative Commons licensed

Data structures

10 resources match. Newest first. Opening a resource shows the whole thing, with answers and marking held back.

WorksheetSeries · 4 parts

H446 2.3.1 · Algorithms

Includes OCR H446 2.3.1 Stack and queue algorithms

Here H446 2.3.1 algorithm work meets the structures from 1.4.2: push, pop, enqueue and dequeue, all of which depend on stated pointer conventions before a trace can be marked. The worksheet is the longest in the series because students both trace circular wrap-around and implement the operations, including the overflow and underflow checks. Students will: - state head, tail, top and count conventions before performing any operation - trace a circular queue across a wrap-around, giving the state after each operation - explain why a circular dequeue should not shift the remaining items - implement array stack push and pop, and circular queue enqueue and dequeue - diagnose faulty operation order and the effect of calling a helper twice Inside: 6 explanation cells, 1 multiple-choice question, 1 fill-in-the-blanks cell, 2 written answers, 2 Python tasks and 1 trace table. 37 marks, about 45 to 70 minutes. Series: H446 2.3.1 · Algorithms, part 9 of 16.

By Coding Pathway · 13 cells · 60 min · CC BY-SA 4.0 · Shared 31 Aug 2026

A LevelOCRData structuresTrace tables
Worksheet

OCR H446 2.2.1 Inheritance and polymorphism

Part 11 · H446 2.2.1 · Programming techniques

Not every relationship deserves inheritance, and H446 2.2.1 expects that test to be applied before a hierarchy is written. A digital exhibition with image and audio exhibits supplies shared identity and type-specific behaviour, so overriding and a single polymorphic call can be traced first and then built. Students will: - test whether a relationship is genuinely is-a rather than containment - reuse the parent constructor when initialising a child class - override an inherited method so one common call gives type-specific results - predict the output of a loop over a mixed list of related objects - explain how the type of the object decides which method runs Inside: 6 explanation cells, 2 multiple-choice questions, 1 fill-in-the-blanks cell, 1 written answer and 2 Python tasks. 17 marks, about 25 to 35 minutes. Series: H446 2.2.1 · Programming techniques, part 11 of 14.

By Coding Pathway · 12 cells · 30 min · CC BY-SA 4.0 · Shared 31 Aug 2026

A LevelOCRData structuresObject-oriented programming
WorksheetSeries · 14 parts

H446 1.4.2 · Data structures

Includes OCR H446 1.4.2 Arrays, records, lists and tuples

OCR H446 1.4.2 expects students to choose between arrays, records, lists and tuples rather than reach for whichever structure is most familiar. This worksheet builds that choice from shape, meaning, mutability and the operations a program actually performs, using a creative-events app that holds seat grids, performer details, editable set lists and fixed colour values. Students will: - describe arrays, records, lists and tuples in terms of shape, access and whether values may change - choose a structure for a described requirement and reject one close alternative with reasons - explain how traversal, update, addition and removal differ across the four structures - design storage for a changing ordered collection of player records with named fields - complete closed-book sentences on structure choice without an answer bank Inside: 8 explanation cells, 3 multiple-choice questions, 1 fill-in-the-blanks cell and 2 written answers. 21 marks, about 40 to 50 minutes. Series: H446 1.4.2 · Data structures, part 1 of 14.

By Coding Pathway · 14 cells · 45 min · CC BY-SA 4.0 · Shared 31 Aug 2026

A LevelOCRLists and arraysData structures
WorksheetSeries · 5 parts

H446 1.3.2 · Databases

Includes OCR H446 1.3.2 Database foundations, tables and keys

OCR H446 1.3.2 opens with the vocabulary everything else depends on: database, table, field, record, and the primary, foreign and secondary keys that link them. This worksheet builds that model from a ticket-booking scenario so students can justify a key choice rather than recite a definition. Students will: - distinguish a flat file design from a set of linked relational tables - identify primary, foreign and secondary keys from where a field appears in a schema - explain the job each key does in the table it sits in - propose tables and keys for an unfamiliar equipment-loan scenario - recall the core definitions from memory with no answer bank available Inside: 7 explanation cells, 2 multiple-choice questions, 2 fill-in-the-blanks cells and 3 written answers. 27 marks, about 25 to 35 minutes. Series: H446 1.3.2 · Databases, part 1 of 13.

By Coding Pathway · 14 cells · 30 min · CC BY-SA 4.0 · Shared 31 Aug 2026

A LevelOCRData structuresDatabases
WorksheetSeries · 3 parts

1CP2-CT-10 · Integrated programming and data structures

Includes 1CP2-CT-10.1 Records rows fields and two-dimensional structures

A two-dimensional structure stores rows containing related fields. In Python's PLS representation, it is a list of lists. The first index selects a row; the second selects a field inside that row. Students will: - represent related fields as typed rows - use the first index for a row and the second for a field - preserve the meaning and type of each field - trace reads from a two-dimensional structure Inside: 5 explanation cells, 1 fill-in-the-blanks cell, 3 multiple-choice questions, 3 written answers and 1 trace table. 12 marks, about 45 minutes. Series: 1CP2-CT-10 · Integrated programming and data structures, part 1 of 5.

By Coding Pathway · 13 cells · 45 min · CC BY-SA 4.0 · Shared 17 Aug 2026

GCSEEdexcelData structuresPractice
WorksheetSeries · 4 parts

1CP2-CT-4 · Structures, validation and search

Includes 1CP2-CT-4.2 Two-dimensional lists and indexing

The two-dimensional worksheet, selecting a row first and a field second. Students will: - read a value using a row index and a field index - predict the exact outputs of a listing that indexes a table - create, read and update a two-dimensional structure - state the greatest valid indexes for a given shape - explain what makes a structure a record Inside: 6 explanation cells, 3 multiple-choice questions, 1 Python task, 1 fill-in-the-blanks cell and 2 written answers. 14 marks, about 45 minutes. Series: 1CP2-CT-4 · Structures, validation and search, part 2 of 7.

By Coding Pathway · 13 cells · 45 min · CC BY-SA 4.0 · Shared 17 Aug 2026

GCSEEdexcelData structuresScaffolded support
Worksheet

1CP2-CT-5.4 Processing CSV records

Part 4 · 1CP2-CT-5 · Merge sort, files and authentication

The record processing worksheet, splitting a line into fields and converting the ones that must be numbers. Students will: - split a record and read the field they need - explain the error that removing a conversion would cause - trace a loop that totals a numeric field across records - process several records into a new structure - describe checks that protect a program's assumptions about a file Inside: 6 explanation cells, 3 multiple-choice questions, 1 Python task, 1 trace table, 1 fill-in-the-blanks cell and 2 written answers. 15 marks, about 45 minutes. Series: 1CP2-CT-5 · Merge sort, files and authentication, part 4 of 7.

By Coding Pathway · 14 cells · 45 min · CC BY-SA 4.0 · Shared 17 Aug 2026

GCSEEdexcelStringsData structures
WorksheetSeries · 2 parts

J277 2.2.3 · Strings, arrays and functions

Includes J277 2.2.3 One-dimensional arrays and Python lists

One-dimensional arrays, represented in these worksheets by Python lists. Students will: - create a list and access elements by index - update an element in place - explain how an OCR array relates to a Python list - avoid index errors at the start and end of a list - build a list from a stated requirement Inside: 5 explanation cells, 3 runnable Python tasks, 2 multiple-choice questions, 1 fill-in-the-blanks cell and 2 written answers. 16 marks, about 45 minutes. Series: J277 2.2.3 · Strings, arrays and functions, part 2 of 5.

By Coding Pathway · 13 cells · 45 min · CC BY-SA 4.0 · Shared 17 Aug 2026

GCSEOCRLists and arraysData structures
WorksheetSeries · 2 parts

J277 Paper 2 · Exam transition

Includes J277 2 Paper 2 guided Section B programming scenario

A sustained Section B booking scenario taken through all four skills: design, write, test and refine. Students will: - design a solution before writing any code - write a calculation function to a stated specification - add range validation that rejects unsuitable input - process a one-dimensional array of bookings - test a program, then refine an incorrect version Inside: 8 explanation cells, 4 runnable Python tasks and 3 written answers. 33 marks, about 60 minutes. Series: J277 Paper 2 · Exam transition, part 3 of 5.

By Coding Pathway · 15 cells · 60 min · CC BY-SA 4.0 · Shared 17 Aug 2026

GCSEOCRData structuresAlgorithms
WorksheetSeries · 2 parts

J277 2.2.3 · Applied programming

Includes J277 2.2.3 Two-dimensional arrays and records

Two-dimensional arrays and records, the two structures OCR uses for grids and for entities. Students will: - create a two-dimensional structure and access it by row and column - update a value at a given grid position - process every value with nested loops - represent one entity as a record with named fields - choose between a grid and a record for a requirement Inside: 6 explanation cells, 4 runnable Python tasks, 2 multiple-choice questions, 1 fill-in-the-blanks cell and 2 written answers. 23 marks, about 60 minutes. Series: J277 2.2.3 · Applied programming, part 1 of 5.

By Coding Pathway · 15 cells · 60 min · CC BY-SA 4.0 · Shared 17 Aug 2026

GCSEOCRLists and arraysData structures