Algorithms Worksheet - KS2 - Intermediate
Algorithms 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.
Exploring Algorithms in Computing
Key Stage 2 / Ages 7-11 / Intermediate Level
Instructions: This worksheet will guide you through understanding algorithms in computing. You'll engage in activities that involve designing, debugging, and explaining algorithms using logical reasoning. Get ready to solve problems and think like a computer scientist!
Understanding Algorithms
Read the following algorithm steps and arrange them in the correct order to make a sandwich. Write the correct sequence number next to each step.
1. Spread butter on one slice of bread.
2. Place a slice of cheese on the buttered bread.
3. Put the second slice of bread on top.
4. Take two slices of bread.
Flowchart Creation
Create a flowchart for making a cup of tea. Use the steps provided to draw a simple flowchart. Write the step numbers in the boxes provided.
1. Boil water.
2. Add tea bag to cup.
3. Pour hot water into the cup.
4. Stir and enjoy.
Debugging an Algorithm
The following algorithm for brushing teeth has some errors. Identify and correct the errors. Write the corrected steps in the boxes provided.
1. Rinse toothbrush with water.
2. Put toothpaste on toothbrush.
3. Brush teeth for 2 minutes.
4. Rinse mouth with water.
Using Variables
Consider a simple program that calculates the area of a rectangle. Identify the variables in the program and write them in the boxes provided.
Program:
length = 5
width = 3
area = length * width
Variables:
If/Else Statements
Read the scenario and write an if/else statement to decide if a student passes or fails based on their score. Use the boxes to write your statement.
Scenario: A student passes if their score is 50 or above.
Statement:
Looping Concepts
Write a simple loop that prints numbers 1 to 5. Use the box to write your loop.
Loop:
Logical Reasoning
Explain how the following algorithm works using logical reasoning. Write your explanation in the box provided.
Algorithm: If it is raining, take an umbrella. Otherwise, wear sunglasses.
Explanation:
Algorithm Decomposition
Break down the task of making a fruit salad into smaller parts. List each step in the boxes provided.
1.
2.
3.
4.
Activity 1: 4 ; 1 ; 2 ; 3
Activity 2: 1 ; 2 ; 3 ; 4
Activity 3: Correct order as given
Activity 4: length ; width
Activity 5: if score >= 50: pass ; else: fail
Activity 6: for i in range(1, 6): print(i)
Activity 7: Explanation involves checking weather condition and acting accordingly
Activity 8: Example steps: 1. Wash fruits ; 2. Cut fruits ; 3. Mix fruits ; 4. Serve
📚 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