Year 7 · Algorithms and programming · original lesson pack
DASKEREL beta · internal AI review pending
Order blocks to produce a predictable result
Open this lesson's library recordOfficial curriculum or provision guidance
DASKEREL wrote this teaching and practice using Oak's sequence as a source. View the source lesson at Oak National Academy. Oak has not endorsed this material. Check Oak's terms and separate rights for third-party works.
Learning outcomes
- Predict the effect of changing block order
- Build and trace a short sequence
Vocabulary: algorithm · sequence · event · instruction · trace
Retrieve previous learning
What is an algorithm?
Check: A defined sequence of steps for a task, independent of any particular programming tool.
Learn the concept
In a block program, connected instructions run in an order after a named start event. A fictional character may set its position to (0,0), move 10 steps and then say 'Here'. If the move occurs before the position reset, the final location can be different; blocks are not a bag of unordered actions.
Trace with a table of step and state. Start at (0,0), move along the tool's forward direction by 10, then display the message. State the assumed direction, because movement depends on orientation. Reset the initial state before each test so a previous run does not influence the result.
A written trace checks logic, while a teacher should observe the actual project. Use fictional characters and school-approved media. Save the editable block arrangement and compare a predicted state with the actual output; if they differ, inspect event, order and starting state.
Worked model
- Name the start event and an initial position.
- Connect set position, move and say blocks in that order.
- Trace state after each block using a fixed initial direction.
- Swap the first two blocks in a copy and explain the changed outcome.
Guided practice
A character moves 10 steps then resets to (0,0). Where does it end?
Hint: The final instruction sets the location.
Check the guided answer
It ends at (0,0), assuming no other script changes it. The reset overrides the earlier move.
Independent practice
Write your own response to every question before viewing the model answers. Your writing stays in this page session; this activity does not submit, store or grade it. Avoid including private information.
Teacher observed practical evidence
A teacher must apply the school's risk assessment, allergy policy and any individual healthcare plan before the practical. Observe and record the criteria during supervised work. Written answers cannot certify practical safety or skill.
- Teacher observes a learner build, run and revise an original block program in an approved accessible environment.
- The saved project and test record show a normal and boundary case, a corrected defect and no unnecessary personal data.
- Learner explains how each block construct changes the program's behaviour rather than only showing a screenshot.
Find and correct a misconception
“Blocks run in whichever order they are added to the workspace.”
Correction: Execution follows the connected flow and triggering event, not the order the user dragged blocks onto the canvas.
Extend and reflect
Create two scripts with the same blocks but different final states.
Guidance: Vary only their order, reset between runs and record state after each instruction.
Where this lesson could lead · Computer Science GCSE → Daskerel Computing and AI
This lesson practises: Predict the effect of changing block order. Algorithms, digital systems and safe practice support later software and technology work.
- Next school subject: Computer Science GCSE. Check the subject and examination board that fit your school.
- Later DASKEREL learning: Daskerel Computing and AI. Explore further study and build evidence from practical work.
- Later credential exploration: AWS Certified Developer - Associate is an example in this later specialism. Check current awarding-body requirements before planning an exam.
- Example career direction: Software Engineer. Explore organisations and local support.
This is an exploratory route, not a promise of admission, a qualification, certification eligibility or employment. Years 7–9 learning is an early foundation; any later credential may require substantial study, experience or local approval.