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
Error handling
4 resources match. Newest first. Opening a resource shows the whole thing, with answers and marking held back.
OCR H446 2.2.1 IDE development and debugging
Part 8 · H446 2.2.1 · Programming techniques
Naming IDE features earns little on its own; H446 2.2.1 rewards linking a feature to the evidence it produces. A podcast queue that drops its final episode drives a reproduce, predict, inspect, repair and retest routine, so breakpoints, watches and tests are each used for a stated purpose. Students will: - distinguish syntax, runtime and logic errors from the behaviour observed - choose a breakpoint position and name the values worth watching there - explain what a variable watch shows that a passing or failing test does not - repair a loop so it processes every item, including empty and one-item lists - describe an investigation order that confirms a fault before any code is changed Inside: 7 explanation cells, 2 multiple-choice questions, 1 fill-in-the-blanks cell, 2 written answers and 2 Python tasks. 16 marks, about 25 to 35 minutes. Series: H446 2.2.1 · Programming techniques, part 8 of 14.
Worksheet1CP2-CT-2.7 Constructing and debugging while loops
Part 7 · 1CP2-CT-2 · Selection, strings and while loops
The construction worksheet, where students choose a loop pattern from the requirement and then build it. Students will: - choose between a counting loop and a sentinel loop - construct a counting loop that stops at the right value - construct a sentinel loop that does not process its stop value - identify and correct an off-by-one loop condition - combine repetition with selection in one program Inside: 8 explanation cells, 1 multiple-choice question, 3 Python tasks, 1 fill-in-the-blanks cell and 2 written answers. 20 marks, about 45 minutes. Series: 1CP2-CT-2 · Selection, strings and while loops, part 7 of 8.
Worksheet1CP2-CT-1.4 Data types, input, conversion and debugging
Part 4 · 1CP2-CT-1 · Programming foundations
The data types worksheet, covering why keyboard input arrives as text and what has to happen next. Students will: - choose the appropriate primitive type for a given value - convert input to a number before calculating with it - build a complete input, processing and output program - read a runtime error and say what caused it - work through one full debugging cycle and state the amendment Inside: 9 explanation cells, 3 multiple-choice questions, 2 Python tasks, 3 fill-in-the-blanks cells and 1 written answer. 20 marks, about 45 minutes. Series: 1CP2-CT-1 · Programming foundations, part 4 of 7.
WorksheetJ277 2.3.2 Testing programs and identifying errors
Part 5 · J277 2.3 · Producing robust programs
What testing is for, how it differs from validation, and how to identify and refine the two types of error. Students will: - state the purposes of testing a program - distinguish iterative testing from final testing - separate testing from validation - tell a syntax error from a logic error - refine a program once a fault has been found Inside: 6 explanation cells, 1 runnable Python task, 2 multiple-choice questions, 1 fill-in-the-blanks cell and 3 written answers. 17 marks, about 45 minutes. Series: J277 2.3 · Producing robust programs, part 5 of 7.