Coding Worksheet - KS2 - Intermediate
Coding worksheet for Key Stage 2 / Year 3-6 (Ages 7-11). Intermediate level computing practice, aligned to the UK National Curriculum. Print-ready with answer key included.
Coding Concepts for Young Programmers
Key Stage 2 / Intermediate Level
Instructions: This worksheet introduces key coding concepts using engaging activities. Explore algorithms, loops, and debugging through practical exercises. Enhance your coding skills by completing each task.
Understanding Algorithms
Read the following algorithm and identify the steps. Write each step in your own words in the box provided.
Algorithm: 1. Start 2. Input number 3. Multiply number by 2 4. Output result 5. End
Step 1:
Step 2:
Step 3:
Step 4:
Step 5:
Sequence and Selection
For each scenario, determine the correct sequence of actions. Use 'if' statements to describe the selection process.
1. If it is raining, take an umbrella. Otherwise, wear sunglasses.
2. If you finish your homework, you can play outside.
3. If the traffic light is green, cross the road. If red, wait.
Looping Through Numbers
Complete the loop by filling in the missing numbers. The loop counts from 1 to 10, displaying each number.
Loop: 1, ___, 3, ___, 5, 6, ___, 8, ___, 10
Fill in the blanks:
Debugging Practice
Identify and correct the errors in the following code snippet. Write the corrected code in the box provided.
Code Snippet:
print('Hello World')
if (5 > 3)
print('5 is greater than 3')
else
print('3 is greater than 5')
Corrected Code:
Using Variables
Fill in the blanks to complete the code. Use variables to store and manipulate data.
1. Set variable x to 5: x = ___
2. Add 3 to x: x = x + ___
3. Print the value of x: print(___)
Understanding Boolean Logic
Evaluate the following Boolean expressions and write 'True' or 'False' in the box.
1. (5 > 3) AND (2 < 4)
2. (10 == 10) OR (5 != 5)
3. NOT (7 < 2)
Decomposing Problems
Break down the following task into smaller steps. Write each step in the box provided.
Task: Make a sandwich
Step 1:
Step 2:
Step 3:
Step 4:
Flowchart Creation
Draw a flowchart for the following process: 'Making a Cup of Tea'. Include decisions and actions.
Start -> Boil Water -> If water is boiling, then pour into cup -> Add tea bag -> Wait 3 minutes -> Remove tea bag -> Add milk/sugar if desired -> End
Flowchart:
Activity 1: Start ; Input number ; Multiply number by 2 ; Output result ; End
Activity 2: Take an umbrella ; Play outside ; Wait
Activity 3: 2 ; 4 ; 7 ; 9
Activity 4: Corrected code with proper syntax
Activity 5: 5 ; 3 ; x
Activity 6: True ; True ; True
Activity 7: Get bread ; Add filling ; Close sandwich ; Serve
Activity 8: Flowchart with correct sequence and decisions
📚 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