Lucy
Ask the AI Tutor
Need help with Debugging? Ask our AI Tutor!
Lucy AI Tutor - Lucy
Connecting with Tutor...
Please wait while we establish connection
Lucy
Hi! I'm Lucy, your AI tutor. How can I help you with Debugging today?
now
Logo

Computing Quiz - Debugging (Questions)

Sometimes code does not work as planned. This quiz helps you spot simple mistakes and fix them, so your instructions do what you expect.

Explore the Topic →
(quiz starts below)

Fascinating Fact:

You can look for missing parts, like a command you forgot to add. Adding the missing part can solve the problem.

In KS1 Computing, debugging means finding what has gone wrong and making a small change to fix it. You might spot a missing step, the wrong order, or an instruction that does not match what you want the computer to do.

  • Debugging: Finding and fixing a mistake so something works properly.
  • Instruction: A step you tell a computer or a person to follow.
  • Order: The sequence that steps happen in, first, next, then, last.
What does debugging mean in KS1 Computing?

In KS1 Computing, debugging means checking what is wrong and then fixing it so the program or set of instructions works the way you want.

How can I find a mistake in my instructions?

You can go through each step slowly, test it, and see where it stops working or does the wrong thing, then change that step or the order.

What are common debugging fixes for KS1?

Common fixes include putting steps in the right order, changing one instruction, or removing an extra step that makes the program do the wrong action.

1. What is a mistake in a program called?
[ ] A code
[ ] A bit
[ ] A byte
[ ] A bug
2. Ellie is trying out a program. She is _______ it.
[ ] Writing
[ ] Spelling
[ ] Testing
[ ] Adding
3. Ellie’s program does not work. So Ellie looks for the bug and puts it right. Ellie is _________ the program.
[ ] Debugging
[ ] Executing
[ ] Running
[ ] Testing
4. Ellie thinks she has found a bug in her program. The program is to make a toy robot stop when it gets to a wall. This is the bug:

Forward
Wall?
Yes - Forward
No - Stop

Ellie corrects the code. What does she write?
[ ] Forward Wall? Yes - Back No - Stop
[ ] Forward Wall? Yes - Forward No - Back
[ ] Forward Wall? Yes - Stop No - Forward
[ ] Forward Wall? Yes - Back No - Forward
5. What will happen if there is a bug in Ellie’s program?
[ ] The program will work properly
[ ] The program will not work properly
[ ] The program will work all the time
[ ] The program will be great
6. Ellie debugs her program. It works really well all the time now. Ellie’s program is a _______.
[ ] Failure
[ ] Success
[ ] Mess
[ ] Disaster
7. Sunil has written a program for a washing machine. The washing machine must wash, rinse and spin in that order. He writes a code:

Rinse Wash Spin

His program does not work properly. What should Sunil write?
[ ] Spin Rinse Wash
[ ] Wash Spin Rinse
[ ] Rinse Wash Spin
[ ] Wash Rinse Spin
8. Alice has a program to make a computer do sums. There are three codes she can use:

ADD
SUBTRACT
SHOW

Alice wants the computer to add two numbers and show the result. Alice writes:

ADD SUBTRACT SHOW

There is a bug in Alice’s code. What should she write?
[ ] SUBTRACT SHOW
[ ] SHOW ADD
[ ] SHOW SUBTRACT
[ ] ADD SHOW
9. Freddy is designing toy traffic lights. He programs a toy car to stop when the lights are red and go when the lights are green. He writes this program:

Go
If Red, Go
If Green, Go

Freddy tests his program. But the car does not stop at a red light. Can you help Freddy debug his program? What should Freddy code?
[ ] Stop - If Red, Go - If Green, Go
[ ] Stop - If Red, Stop - If Green, Stop
[ ] Go - If Red, Stop - If Green, Go
[ ] Go - If Red, Stop - If Green, Stop
10. Programs are written. Then they are tested. Any bugs are put right. Then they are tested again until they are working properly. This is called the _________ cycle.
[ ] Cycling
[ ] Debugging
[ ] Yearly
[ ] Round

You can find more about this topic by visiting BBC Bitesize - What are computer bugs?

Logo
Computing Quiz - Debugging (Answers)
1. What is a mistake in a program called?
[ ] A code
[ ] A bit
[ ] A byte
[x] A bug
We all make mistakes! There are often bugs in computer programs first time round
2. Ellie is trying out a program. She is _______ it.
[ ] Writing
[ ] Spelling
[x] Testing
[ ] Adding
Ellie is running or executing the program
3. Ellie’s program does not work. So Ellie looks for the bug and puts it right. Ellie is _________ the program.
[x] Debugging
[ ] Executing
[ ] Running
[ ] Testing
There might be more than one bug in Ellie’s programme
4. Ellie thinks she has found a bug in her program. The program is to make a toy robot stop when it gets to a wall. This is the bug:

Forward
Wall?
Yes - Forward
No - Stop

Ellie corrects the code. What does she write?
[ ] Forward Wall? Yes - Back No - Stop
[ ] Forward Wall? Yes - Forward No - Back
[x] Forward Wall? Yes - Stop No - Forward
[ ] Forward Wall? Yes - Back No - Forward
Ellie then tests her program again
5. What will happen if there is a bug in Ellie’s program?
[ ] The program will work properly
[x] The program will not work properly
[ ] The program will work all the time
[ ] The program will be great
There are often lots of bugs in a program
6. Ellie debugs her program. It works really well all the time now. Ellie’s program is a _______.
[ ] Failure
[x] Success
[ ] Mess
[ ] Disaster
Ellie has done really well
7. Sunil has written a program for a washing machine. The washing machine must wash, rinse and spin in that order. He writes a code:

Rinse Wash Spin

His program does not work properly. What should Sunil write?
[ ] Spin Rinse Wash
[ ] Wash Spin Rinse
[ ] Rinse Wash Spin
[x] Wash Rinse Spin
You need to wash the clothes before you rinse them
8. Alice has a program to make a computer do sums. There are three codes she can use:

ADD
SUBTRACT
SHOW

Alice wants the computer to add two numbers and show the result. Alice writes:

ADD SUBTRACT SHOW

There is a bug in Alice’s code. What should she write?
[ ] SUBTRACT SHOW
[ ] SHOW ADD
[ ] SHOW SUBTRACT
[x] ADD SHOW
What should Alice write to take away one number from another number and show the result?
9. Freddy is designing toy traffic lights. He programs a toy car to stop when the lights are red and go when the lights are green. He writes this program:

Go
If Red, Go
If Green, Go

Freddy tests his program. But the car does not stop at a red light. Can you help Freddy debug his program? What should Freddy code?
[ ] Stop - If Red, Go - If Green, Go
[ ] Stop - If Red, Stop - If Green, Stop
[x] Go - If Red, Stop - If Green, Go
[ ] Go - If Red, Stop - If Green, Stop
The car has to stop at the red light, and only go when it is green
10. Programs are written. Then they are tested. Any bugs are put right. Then they are tested again until they are working properly. This is called the _________ cycle.
[ ] Cycling
[x] Debugging
[ ] Yearly
[ ] Round
Debugging programs is very important