Algorithms and Block Programming – Year 7 Computing lessons
Six Year 7 lessons from Bebras puzzles and flowcharts to block code: sequence, loops, variables and selection in a mini game.
Most Year 7 pupils have met block coding at primary school, but not the thinking behind it. This unit teaches them to think like programmers: break a problem down, plan it as a flowchart, and build it with the building blocks of every program – sequence, iteration and selection – with a variable to keep score. Pupils take part in the UK Bebras Challenge and finish by making a mini maze game for younger pupils to play and test.
Unit 7.2 is taught in Year 7, Autumn 2, and answers one big question: How do we turn an idea into instructions a computer follows? Every lesson uses the same real-world context (everyday algorithms: recipes, sat-navs and traffic lights), and pupils make a mini game, tested by younger pupils. The careers link is a games developer: a games developer turns a game idea into exact instructions: planning the rules as algorithms, then coding the movement, loops, scores and decisions that make it playable – the same steps pupils take to build their mini game.
What happens in each lesson:
Lesson 1, Bebras practice: decomposition, abstraction and algorithms: How do computer scientists break down tricky puzzles? By the end, pupils can use decomposition, abstraction and algorithmic thinking to solve Bebras-style puzzles and explain their method.
Lesson 2, Bebras Challenge (Juniors): Can I solve unfamiliar puzzles by thinking like a computer scientist? By the end, pupils can complete the 45-minute UK Bebras Challenge on their own, choosing a thinking tool for each task.
Lesson 3, Flowcharts to block code: sequence: Why does the order of instructions matter? Main task: type a flowchart for the sprite's whole route through the maze from Start to Goal, as numbered steps that name each shape, then build it in block code so the sprite reaches the goal.
Lesson 4, Loops: How do loops save us from repeating ourselves? Main task: write a looped version of the guard's nine-block patrol script that uses fewer blocks, then change it so the guard patrols for ever.
Lesson 5, Variables and selection (true or false conditions): How can a game keep score and make decisions? Main task: write a script that keeps checking whether the player touches a star and, if it does, adds 1 to the score and moves the star.
Lesson 6, Progress Check: mini game: 13-question check: 12 multiple-choice questions + one applied question on paper.
- Misconceptions it tackles include
- “The order of the instructions does not matter, as long as all the steps are there”; “A loop repeats every block in the script, including the blocks after it”; “An if block keeps watching for its condition all through the game”. Each is planned into a hinge question before the main task or an exit question, so you find out who still holds it.
National Curriculum coverage (KS3 computing programme of study): NC1, design, use and evaluate abstractions that model real-world problems and physical systems; NC2, key algorithms (e.g. searching and sorting); compare alternative algorithms; NC3, two or more languages, at least one textual; data structures; modular programs with procedures or functions.
It builds on 7.1 Online Safety and the School Network (logging on and saving work into folders); key stage 2 computing: writing and debugging simple programs that use sequence, selection and repetition. It leads on to 7.6 Introduction to Python (the same ideas in text code), 8.1 Python: Iteration and Boolean Operators, 8.2 Boolean Logic and Circuits, and 9.2 Searching and Sorting (key algorithms).
- Adapting it for your school
- The unit works in any block-based language: Scratch (online or the free offline app) or MakeCode Arcade, where the blocks are called repeat, forever, if then and set/change variable. If you don't enter Bebras, move lessons 1–2 to after lesson 5 and use them as build time for the mini game, or cut them (they are flex lessons). If the computers are not available, use the unplugged slide and the printed maze grid: the learning is the same. Swap the Year 5 testers for any younger audience: a partner primary, a younger tutor group, or pupils' families at home.
Two versions in one download. The "With quiz" folder is for schools with a Code & Commerce Quizzes subscription: wherever the lessons use a Progress Check, its multiple-choice questions are ready-made on the quiz site for you to set, with a printed version as the backup. The "Without quiz" folder is the same teaching for standalone use, with no mention of the quiz site and every check on paper. You don't need a quiz subscription to use it.
What's included
- 6 lesson slide decks (PowerPoint)
- 6 lesson plans (Word)
- 6 worksheets, plus 3 support versions with scaffolds (Word)
- Medium term plan with intent, key words, misconceptions and adaptive teaching notes (Word)
- Progress Check lesson to assess the unit, with an applied question
- Variables and selection (true or false conditions) - Quiz Quiz Trade Cards
- Department licence: every teacher in your department can use and adapt it
- Two versions of the files: one for Code & Commerce Quizzes subscribers and one for standalone teaching, no quiz site needed
In this bundle
Worth £24 bought separately at £4 a lesson. The bundle saves you 16%.
More for KS3 Computing
See allSix Year 7 lessons on logging on, files and folders, strong passwords, digital footprints, online risks and reporting concerns.
Free sample lessonSix Year 7 lessons on input, process and output, hardware, the CPU and fetch–execute, memory, storage and operating systems.
Free sample lessonSix Year 7 lessons on why computers use binary, binary to denary and back, binary addition, ASCII and units of data.
Free sample lessonWritten for the specifications named. Not endorsed by or affiliated with any exam board.