Show model answer and explanation
3
The expected behaviour specifies three.
Beginner · Other / specialist pathway · Coding
Find a bug by comparing expected and actual behaviour.
Original Kidemy beginner self-study unit · Learn the idea, try the practical activity and review your written answers. Review your project with a guardian or teacher using the criteria below. Teacher-led course approval and booking are separate.
A bug is a mistake that causes a program to behave differently from its intended rules. State what should happen, test what does happen and trace the steps to find the first difference. Change one relevant thing, then test again, including another input.
Expected: show a message three times. Actual plan: repeat 4 times, show the message. The repeat count is the first mismatch; changing it to 3 fixes this particular bug.
Show your working on paper and enter your answer here. If it does not match, compare the model and try again.
3
The expected behaviour specifies three.
3
The changed count matches the intended rule.
retest
The changed program must be checked.
Write in your own words. A guardian or teacher should review this response.
The operation is subtraction instead of addition. Use 4 + 3, which gives 7.
Check the expected operation and the verified new result.
Write in your own words. A guardian or teacher should review this response.
Choosing garden opens no scene. I expected the garden scene with a next button.
Check the action, actual result and expected result.
Ask a partner to put one mistake in a paper algorithm. Find it, explain it and test the correction with two cases.
Keep your work on paper or in a local file. This page does not upload it or automatically grade the project.
Teacher-led lessons, schedules and prices for this outline are upcoming. You can use any starter practice above now without booking.
Solo practice works without an account. Sign in to save a practice record to your learner profile.
Exact lesson links and related activities are labelled separately. Return-to-course links retain your selected learning path.