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 types Worksheets
5 resources match. Newest first. Opening a resource shows the whole thing, with answers and marking held back.
OCR H446 2.1.2 Inputs, outputs and preconditions
Part 1 · H446 2.1.2 · Thinking ahead
Thinking ahead in OCR H446 2.1.2 begins with knowing exactly what data arrives, what leaves and what must already be true. A pop-up concert service and an accessible-seating allocator push students past naming input devices towards qualified data items and stated preconditions. Students will: - identify input and output data together with its meaning and format - distinguish input data from the device that captures it - state the preconditions that must hold before a process can run correctly - read the inputs, output and preconditions out of a short pseudocode function - specify a full data contract for a step-free seat allocation service Inside: 8 explanation cells, 1 multiple-choice question, 2 fill-in-the-blanks cells and 3 written answers. 25 marks, about 25 to 35 minutes. Series: H446 2.1.2 · Thinking ahead, part 1 of 2.
WorksheetOCR H446 1.4.1 Primitive data types and casting
Part 1 · H446 1.4.1 · Data types
OCR H446 1.4.1 asks students to choose a primitive data type from what a value represents and what the program does with it, not from how the value looks. Set in a music-event booking system, this worksheet builds that two-question method and then has students trace what casting really does to a value, including in running Python. Students will: - choose an OCR primitive type from a value's purpose and the operations needed - justify storing a fixed-format identifier as a string rather than an integer - trace the effect of a cast, including the loss of a fractional part - complete a Python function that casts supplied text, calculates a total and returns a set sentence - recall the type and casting definitions in a closed-book check Inside: 10 explanation cells, 2 multiple-choice questions, 2 fill-in-the-blanks cells, 1 written answer and 2 Python tasks. 17 marks, about 40 to 50 minutes. Series: H446 1.4.1 · Data types, part 1 of 11.
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.
Worksheet1CP2-CT-7.3 Maths time and formatted output
Part 3 · 1CP2-CT-7 · Subprograms, scope and libraries
The maths and formatting worksheet, using only the methods the Pearson subset permits and displaying the result deliberately. Students will: - match each permitted maths method to what it actually does - explain why rounding and format strings can give different output - describe the effect of pausing a program with a timed delay - choose the correct method when a division must round upwards - format a number to a fixed width and a fixed number of decimal places Inside: 7 explanation cells, 3 multiple-choice questions, 1 Python task, 1 fill-in-the-blanks cell and 2 written answers. 16 marks, about 45 minutes. Series: 1CP2-CT-7 · Subprograms, scope and libraries, part 3 of 5.
WorksheetJ277 2.2.2 Data types and casting
Part 2 · J277 2.2.1-2.2.2 · Programming fundamentals
The five data types OCR names, and converting between them when input arrives as text. Students will: - identify integer, real, Boolean, character and string data - choose a suitable data type for a scenario and justify it - explain why input arrives as a string - use int() and float() when numerical input is required - predict the result of an operation on mixed types Inside: 6 explanation cells, 3 runnable Python tasks, 2 multiple-choice questions, 1 fill-in-the-blanks cell and 2 written answers. 21 marks, about 60 minutes. Series: J277 2.2.1-2.2.2 · Programming fundamentals, part 2 of 7.