Skip to content
S3U
Login Create Account

Science / Programming basics / Kindergarten / sck70

Programming Basics: Put Steps in Order

Follow a short list of drawing instructions.

All worksheets
5 questions0m 0s

Learn first

Programs follow precise instructions

Read together with an adult. Point, talk, or use small objects to try the idea.

A program is a set of instructions. A variable stores a value. A condition chooses between paths. A loop repeats steps. Output is the result produced.

How to work it out Trace one instruction at a time. Keep a record of values and check exactly when a condition or repeated step is evaluated.

A separate example In a separate trace, start with n = 2, add 3, then double n. The two instructions happen in order: 5 is an intermediate value before the final result.

Learn the skill

Read one instruction at a time from top to bottom. In this picture, step 1 draws a circle, step 2 puts a dot inside it, and step 3 adds a line below it. You can point or describe instead of drawing.

Worked example

After step 1 there is just a circle. The dot is added in step 2. A computer follows the steps it is given; it does not know a missing step.

Step 1 draws a circle. Step 2 adds a dot inside the circle. Step 3 adds a line below. Each picture shows the complete drawing after that step.
Step 1 draws a circle. Step 2 adds a dot inside the circle. Step 3 adds a line below. Each picture shows the complete drawing after that step.
Question 1 What is step 1?
Question 2 Which step puts a dot inside the circle?
Question 3 What comes after adding the dot?
Question 4 What is present after only step 1?
Question 5 What helps someone follow your plan?