Grade 1 · lesson 1 of 4

Find a Missing Instruction

Test a short algorithm and add the step needed for its stated goal.

Download the grade pack

Supplied materials

  • Paper and a pencil, or say your answers aloud.

Learn the idea

Debugging means finding and fixing a problem in instructions. Test the steps exactly as written before deciding what went wrong. A missing step can make the result different from the goal.

Our goal is a square with a dot inside it. The written algorithm says: “1. Draw a square. 2. Stop.” Following it gives a square with no dot. The instructions did not ask for the dot.

  1. Draw the square by following the written algorithm exactly.
  2. Compare your result with the goal: a square with a dot inside.
  3. Name the missing part.
  4. Write a new step before Stop that tells where to draw the dot.
Worked example

See the method in action

Repaired algorithm: 1. Draw a square. 2. Draw one dot inside the square. 3. Stop. Testing all three steps produces the stated goal.

Your turn

Check your reasoning

Your answer is temporary and is not saved to an account. Download your current answer before leaving or reloading. Written work on paper or in another app stays in your own file.

A new goal is a triangle with a dot inside. The algorithm says “Draw a triangle. Stop.” Which instruction should be added before Stop?

Feedback appears here after you check. This is practice, not a graded school assessment.

See the answer and explanation

Draw one dot inside the triangle.

The triangle is already drawn. The missing part is one dot inside it, so adding that precise step makes the algorithm meet its goal.

Take it further

Change the goal to a triangle with two dots inside. Replace the added step with “Draw two dots inside the triangle,” then test the new instructions.

Nothing here is saved to an account or sent to a teacher. The answer download includes your current choice and any checked feedback.

Check the subject sources

These LifeStarter passages, scenarios and exercises are authored for this Academy with AI assistance and review. External resources keep their publishers’ terms. A grade label suggests a starting level; it does not establish alignment with your school’s complete requirements.