Coding Worksheet - GCSE - Intermediate
Coding worksheet for Key Stage 4 / GCSE (Ages 14-16). Intermediate level computing practice, aligned to the UK National Curriculum. Print-ready with answer key included.
Intermediate Coding Concepts
Key Stage 4 / GCSE (Ages 14-16) - Intermediate Level
Instructions: This worksheet is designed to enhance your understanding of coding concepts relevant to the GCSE Computing curriculum. Each activity focuses on a different aspect of coding, from data representation to programming logic. Work through each activity carefully, ensuring you understand the underlying principles.
Binary and Hexadecimal Conversion
Convert the following numbers between binary, denary, and hexadecimal. Show all working clearly.
1. Convert 101101 (binary) to denary and hexadecimal.
2. Convert 45 (denary) to binary and hexadecimal.
3. Convert 2A (hexadecimal) to binary and denary.
Boolean Algebra Simplification
Simplify the following Boolean expressions using Boolean algebra rules. Show each step clearly.
1. A + AB
2. A(B + C) + AB
3. (A + B)(A + C)
Truth Tables
Complete the truth tables for the following logic expressions. Fill in the outputs for each combination of inputs.
| A | B | C | Output |
| A | B | C | 0 |
| 0 | 0 | A | |
| B | C | 0 | 0 |
| 1 | A | B |
Expression: (A AND B) OR C
Python Programming: Selection
Write a Python program that takes an input number and prints 'Even' if the number is even and 'Odd' if the number is odd. Use if-else statements.
Write your Python code below:
Data Structures: Arrays
Consider the following array: [3, 5, 7, 9, 11]. Write a Python function to find the sum of all elements in the array.
Write your Python function below:
Algorithm Analysis
Analyse the following pseudocode and determine its time complexity. Explain your reasoning.
Pseudocode:
1. FOR i FROM 1 TO n
2. FOR j FROM 1 TO n
3. PRINT i, j
What is the time complexity?
File Handling in Python
Write a Python script that reads a text file and counts the number of words in it. Assume the file is named 'document.txt'.
Write your Python script below:
Extended Writing: The Role of Algorithms
Write a detailed essay discussing the importance of algorithms in computer science. Include examples of different types of algorithms and their applications.
Discuss the role of algorithms in computer science, providing examples of search and sort algorithms and their real-world applications. [12 marks]
Activity 1: 45 ; 2D ; 101010 ; 69
Activity 2: A ; A + B ; A + B
Activity 3: 0 ; 1 ; 0 ; 1 ; 0 ; 1 ; 1 ; 1
Activity 4: Code should check if number % 2 == 0
Activity 5: Sum = 35
Activity 6: O(n^2)
Activity 7: Code should open file, read lines, split words, count
Activity 8: Essay should cover algorithm importance, examples like binary search, bubble sort
📚 Great books for Computing
Handpicked books to support learning at home · Amazon affiliate links

CGP KS2 Study Skills Book
How to learn effectively - revision tips and techniques
Usually ships in 24hrs

Scholastic Study Diary & Homework Planner
Helps children stay organised with homework and revision
Usually ships in 24hrs

Handwriting Practice Pad - Ages 5–7
Letter formation and joined-up writing practice
Usually ships in 24hrs

Staedtler Colouring Pencils 24 Pack
Quality pencils great for completing and illustrating worksheets
Usually ships in 24hrs