icon-background-square
New
New
Year 1

Testing a program

I can check a program for errors to make sure it runs as I planned it.

icon-background-square
New
New
Year 1

Testing a program

I can check a program for errors to make sure it runs as I planned it.

warning

These resources will be removed by end of Summer Term 2025.

Switch to our new teaching resources now - designed by teachers and leading subject experts, and tested in classrooms.

Lesson details

Key learning points

  1. An error is a mistake in a program.
  2. Programs should be regularly tested to check for errors so that they can be corrected.
  3. Show and hide blocks control if a sprite is visible.

Keywords

  • Test - to run a program to check it is working as planned

  • Error - a mistake in a program

  • Visible - when something can be seen

Common misconception

Programs should only be tested when they are finished.

Programs should be tested often to check for mistakes. Fixing mistakes as the program develops makes sure that these mistakes don't cause bigger issues later on and affect other parts of the program.

It would be beneficial to have an understanding of the blocks available in ScratchJr, including the grow and shrink blocks. This will enable teachers to support learners in creating algorithms that can be realised in ScratchJr.
speech-bubble
Teacher tip
equipment-required

Equipment

Children will need access to a tablet device with the ScratchJr app installed.

copyright

Licence

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

Lesson video

Loading...

4 Questions

Q1.
Why is it helpful to make a design before starting your project?
Correct answer: It helps you to record your ideas.
It helps you to work faster.
It helps you to add more sprites.
Q2.
An algorithm is ...
Correct answer: a set of clear instructions.
a program.
a sprite.
Q3.
How do you make a sprite move faster?
Correct answer: Place a speed block before the movement blocks.
Place a speed block after the movement blocks.
Use more movement blocks.
Q4.
What is the first thing you should do when starting a project?
Correct answer: Make a design.
Choose a background.
Start adding blocks.

4 Questions

Q1.
What is an error?
a new sprite
the undo button
Correct answer: a mistake in a program
Q2.
How can you find errors in your program?
Add more blocks.
Correct answer: Test your program often.
Change the background.
Q3.
What does the show block do?
An image in a quiz
It deletes a sprite.
It changes a sprite's size.
Correct answer: It makes a sprite visible.
Q4.
What should you do if your program doesn't work?
Correct answer: Test your program step by step.
Start from the beginning.
Keep programming new ideas.
Q3 Scratch Foundation under CC BY-SA 2.0