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

      Lesson details

      Learning outcome

      I can improve and evaluate my program.

      Key learning points

      1. Programs can be evaluted against the initial design.
      2. Setup code is used to reset everything in a program.
      3. Programs are improved through debugging.

      Keywords

      • Evaluate - to reflect on what has gone well and what you could improve in a project

      • Setup code - a group of commands that reset things back to how they should be at the start of the program

      Common misconception

      My quiz works perfectly the first time you run it, and that's all that matters.

      You need setup code at the beginning of your program to reset everything, so that new users have the same experience.

      Teacher tip

      Demonstrate how to add setup commands that allow the quiz to reset each time it runs, helping pupils create a program that can be used multiple times reliably.

      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 do we call a statement in a program that checks if something is True or False?

      Correct Answer: condition

      Q2.
      Why is it helpful to create a design before starting to write a program?

      Correct answer: to help guide how the program will be built
      to make the program look colourful
      to make the program run faster
      to avoid using computers

      Q3.
      What word describes a problem in a program that needs fixing?

      Correct Answer: bug

      Q4.
      What is the main reason for testing a program?

      to make it longer
      to make it more colourful
      Correct answer: to check if it works as planned
      to share it with friends

      Q5.
      Put these steps in order for fixing a bug in a program:

      1 - Test the program.
      2 - Find the bug.
      3 - Fix the bug.
      4 - Check the program again.

      Q6.
      Match each keyword to its definition.

      Correct Answer:design,to plan how the program will work

      to plan how the program will work

      Correct Answer:test,to check if the program works

      to check if the program works

      Correct Answer:if ... then ... else ...,choosing between two possible conditions

      choosing between two possible conditions

      Correct Answer:bug,an unexpected problem

      an unexpected problem

      6 Questions

      Q1.
      What does it mean to evaluate a program?

      to run it once
      to change the background colour
      to add more questions
      Correct answer: to reflect on what went well and what could be improved

      Q2.
      Why is setup code important in a quiz program?

      It makes the quiz look nicer.
      It adds new questions.
      Correct answer: It resets everything so that each user starts the same way.
      It saves your score.

      Q3.
      What do we call the process of finding and fixing errors in a program?

      Correct Answer: debugging, debug

      Q4.
      Put these steps in order for evaluating and improving a program:

      1 - Test the program.
      2 - Find any bugs.
      3 - Fix the bugs.
      4 - Evaluate what went well and what needs improvement.

      Q5.
      Match each keyword to its description:

      Correct Answer:evaluate,to reflect on what worked well and what could change

      to reflect on what worked well and what could change

      Correct Answer:setup code,commands that reset things to how they should be at a program's start

      commands that reset things to how they should be at a program's start

      Correct Answer:debug,to find and fix mistakes

      to find and fix mistakes

      Correct Answer:improve,to make something better

      to make something better

      Q6.
      Which statement about running a quiz program is incorrect?

      Setup code helps each user start with a fresh quiz every time.
      Correct answer: It is important for a quiz to work only the first time it is run.
      Testing multiple times helps find problems that may not appear straight away.
      Using setup code means everyone has the same experience when they play.

      To help you plan your 5 computing lesson on: Evaluating a quiz, download all teaching resources for free and adapt to suit your pupils' needs...