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
Strings
5 resources match. Newest first. Opening a resource shows the whole thing, with answers and marking held back.
OCR H446 1.4.1 Character sets
Part 9 · H446 1.4.1 · Data types
Turning characters into numbers and back is the H446 1.4.1 content here, and the worksheet keeps the character set and the encoding as separate ideas. A multilingual group chat supplies the context, and every code comes from a table given in the question, because the assessed skill is using a mapping rather than memorising code values. Students will: - explain why a sender and receiver need a compatible character mapping - convert a supplied character code between denary, hexadecimal and binary - decode a bit pattern and a hexadecimal code back into characters - describe what goes wrong when the same bits are read with an incompatible mapping - compare ASCII and Unicode, including a storage or transmission consequence of the encoding chosen Inside: 7 explanation cells, 1 multiple-choice question, 1 fill-in-the-blanks cell, 3 written answers and 2 number answers. 19 marks, about 35 to 45 minutes. Series: H446 1.4.1 · Data types, part 9 of 11.
Worksheet1CP2-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.
WorksheetSeries · 2 parts1CP2-CT-2 · Selection, strings and while loops
Includes 1CP2-CT-2.1 String length, position and indexing
The opening string worksheet, establishing that positions begin at zero before anything is sliced. Students will: - use len() and read a character by its index - predict the exact output of a short indexing listing - explain what a negative index selects - complete and then write a lookup that indexes user input - debug an off-by-one index rather than blaming the data Inside: 7 explanation cells, 3 multiple-choice questions, 2 Python tasks, 1 fill-in-the-blanks cell and 2 written answers. 18 marks, about 45 minutes. Series: 1CP2-CT-2 · Selection, strings and while loops, part 1 of 8.
Worksheet1CP2-CT-4.1 Formatting output with format
Part 1 · 1CP2-CT-4 · Structures, validation and search
The formatting worksheet, separating the value a program holds from the way it is presented. Students will: - read a format descriptor for width, alignment and decimal places - supply values in placeholder order - explain why fixed width suits a column of prices - construct a readable result row - diagnose a formatting failure caused by the wrong type 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 1 of 7.
WorksheetJ277 2.2.3 String manipulation
Part 1 · J277 2.2.3 · Strings, arrays and functions
String handling in Python, indexed from zero, with slices that stop before their end position. Students will: - index a string and extract a single character - take a slice and explain where it stops - join strings with concatenation - change case and find a string's length - build a formatted result from several strings Inside: 5 explanation cells, 3 runnable Python tasks, 4 multiple-choice questions, 1 fill-in-the-blanks cell and 2 written answers. 17 marks, about 45 minutes. Series: J277 2.2.3 · Strings, arrays and functions, part 1 of 5.