Choose exam board for KS4 Computer Science (GCSE)
Choose exam board for KS4 English
Choose exam board for KS4 French
Choose exam board for KS4 Geography
Choose exam board for KS4 German
Choose exam board for KS4 History
Choose tier for KS4 Maths
Choose exam board for KS4 Music
Choose exam board for KS4 Physical education (GCSE)
Choose exam board for KS4 Religious education (GCSE)
Choose exam board for KS4 Spanish

Creating a project using a block-based environment

Lesson details

Learning outcome

I can implement an algorithm as code to create a project from a design.

Key learning points

  1. In a project with multiple sprites, it is useful to assign them meaningful names.
  2. An algorithm is a defined sequence that can be followed and represented in code.
  3. An error in code is often called a bug.
  4. Errors can be found and corrected through debugging.

Keywords

  • Algorithm - a precise set of ordered steps which can be followed by a human or a computer to do a task

  • Bug - an error or mistake in code that stops it from working properly or as expected

  • Debug - finding and fixing errors in a program

Common misconception

An algorithm cannot be represented in code.

An algorithm is a description of the instructions to follow so that a specified task can be completed. Therefore, algorithms can be converted and represented in to program code to enable a computer to carry out the solution to a task.

Teacher tip

Not all pupils will experience bugs or errors in their code. If they don't, encourage them to think about how they could develop their programs further, or perhaps help someone else in the class who does have a problem with their program.

Equipment

Pupils will need access to a device with block-based programming software. Examples in this lesson use Scratch https://oak.link/scratch

Licence

This content is © Oak National Academy Limited (2026), licensed on Open Government Licence version 3.0 except where otherwise stated. See Oak's terms & conditions (Collection 2).

Lesson video

Loading...

Prior knowledge starter quiz

6 Questions

Q1.
What category does this code block belong to?

An image in a quiz
Correct answer: sound
events
motion
looks

Q2.
A is used to change the appearance of a sprite.

Correct Answer: costume

Q3.
What would you add to change the appearance of the stage?

Correct answer: backdrop
costume
sound
sprite

Q4.
Which of these is a backdrop?

An image in a quiz
Correct Answer: An image in a quiz
An image in a quiz
An image in a quiz

Q5.
Different types of code blocks cannot be used in the same sequence.

true
Correct answer: false

Q6.
A is a plan to show how something will look or work.

Correct Answer: design
Q1 Scratch is a project of the Scratch Foundation. It is available for free at https://scratch.org. OR ScratchJr is a project of the Scratch Foundation. It is available for free at https://scratchjr.org. OR Scratch Foundation under CC BY-SA 2.0 Q4 image 1 Scratch is a project of the Scratch Foundation. It is available for free at https://scratch.org. OR ScratchJr is a project of the Scratch Foundation. It is available for free at https://scratchjr.org. OR Scratch Foundation under CC BY-SA 2.0 Q4 image 2 Scratch is a project of the Scratch Foundation. It is available for free at https://scratch.org. OR ScratchJr is a project of the Scratch Foundation. It is available for free at https://scratchjr.org. OR Scratch Foundation under CC BY-SA 2.0 Q4 image 3 Scratch is a project of the Scratch Foundation. It is available for free at https://scratch.org. OR ScratchJr is a project of the Scratch Foundation. It is available for free at https://scratchjr.org. OR Scratch Foundation under CC BY-SA 2.0

4 Questions

Q1.
A is an error or mistake in code that stops it from working properly or as expected.

Correct Answer: bug

Q2.
How do you copy a code block from one sprite to another?

Correct answer: Drag and drop the code block from one sprite to another.
Right click and duplicate the code block.
Left click and duplicate the code block.

Q3.
You cannot implement an algorithm in Scratch.

true
Correct answer: false

Q4.
sprites helps you read code and spot characters more easily.

Correct answer: Naming
Removing
Duplicating

To help you plan your 3 computing lesson on: Creating a project using a block-based environment, download all teaching resources for free and adapt to suit your pupils' needs...