Algorithms: Following Steps in Order

8 questions · 8 points · Grades 4–5 · English · Preview the 8 questions

Made by Aisha Varrick · LessonRally (AI-assisted)

Digital classroom activity

What is a digital classroom activity?

Teachers who sign in can assign LessonRally activities to their Google Classroom classes: students open them in Classroom and answer online, and their grades go to the teacher's Classroom gradebook. Practice lets you try it first, the way students see it.

Free for teachers. Sign in to assign activities to your Google Classroom classes.

Printable worksheet

Students trace short algorithms written as numbered steps and keep track of a number as it changes. They see how the order of steps changes the result, find a missing step, and follow simple loops. Coding practice in plain-language steps, with sequencing and loops.

Learning goal: Trace an algorithm written as numbered steps to find its exact result, and recognize how changing the order of the steps can change the result.

Estimated reading level 2.3

  1. KindergartenHard
  2. Grade 1Stretch
  3. Grade 2On level
  4. Grade 3Easier
  5. Grade 4Easy
About this estimate

The estimate is the middle score of five readability formulas. Their scores run from 0.3 to 5.8.

  • Flesch-Kincaid Grade Middle scoreSentence length and syllables per word2.3
  • Gunning FogSentence length and words of three or more syllables4.6
  • Coleman-LiauLetters per word and sentences per 100 words1.7
  • Automated Readability IndexCharacters per word and words per sentence0.3
  • SMOGWords of three or more syllables, for texts of 30 sentences or more5.8
Flesch Reading Ease
93.2 on a 0 to 100 scale where higher is easier: very easy. Not part of the estimate.
Text measured
465 words, 51 sentences

Adapted from common readability formulas (Flesch-Kincaid, Gunning Fog, Coleman-Liau and ARI, plus SMOG for long texts), which look at sentence length and word length. Answer choices count toward word length only. Grades below the estimate will likely find the text harder, grades above it easier. It does not measure ideas, background knowledge or images.

Topic: Programming and Algorithms Chosen by LessonRally

Question types: number answer, multiple choice.

Student preview

The questions as students see them, without the answers.

Each question gives you a set of steps to follow. Do the steps in order, one at a time, and keep track of the number as it changes.

Question 1

Ella's video game uses these steps to work out how many bonus stars a player earns at the end of a level.

  1. Set stars to 4.
  2. Add 6 to stars.
  3. Multiply stars by 3.
  4. Subtract 5 from stars.

How many stars are there after step 4?

Enter a number.

Question 2

A robot starts on square 0 of a long path, and the squares are numbered 0, 1, 2, 3 and so on. Moving forward takes the robot toward bigger numbers, and moving back takes it toward smaller numbers.

  1. Move forward 6 squares.
  2. Move back 1 square.
  3. Move forward 7 squares.
  4. Move back 3 squares.

On which square does the robot stop?

Enter a number.

Question 3

Tomas starts with the number 6. He will do two steps, "Add 4" and "Multiply by 2," one after the other. Which order of the two steps gives him 20 at the end?

Choose one answer.

  • Multiply by 2 first, then add 4.
  • Add 4 first, then multiply by 2.
  • Neither order gives 20.
  • Both orders give 20.

Question 4

A treasure hunt app turns a secret clue into a locker number by following these steps in order.

  1. Set clue to 24.
  2. Divide clue by 4.
  3. Add 9 to clue.
  4. Divide clue by 3.
  5. Multiply clue by 2.

What is the value of clue after step 5? That number is the locker number.

Enter a number.

Question 5

Jamal is writing steps that should finish with total equal to 20, but he forgot to write step 2.

  1. Set total to 2.
  2. (missing step)
  3. Multiply total by 4.

Which step should go in the place of step 2?

Choose one answer.

  • Subtract 1 from total.
  • Multiply total by 3.
  • Add 8 to total.
  • Add 3 to total.

Question 6

Sofia wrote a program that counts beads for a bracelet pattern, and it follows these steps.

  1. Set beads to 1.
  2. Repeat these two actions 3 times: add 2 to beads, then double beads.
  3. Subtract 6 from beads.

What is the value of beads after step 3?

Enter a number.

Question 7

These steps use two numbers named red and blue. In these steps, "Add red to blue" changes only blue, and "Multiply red by blue" changes only red.

  1. Set red to 5.
  2. Set blue to 3.
  3. Add red to blue.
  4. Multiply red by blue.

What is the value of red after step 4?

Enter a number.

Question 8

A watering robot decides how many cups of water a plant gets by following these steps. Step 3 checks the value of cups every time, right after step 2 runs.

  1. Set cups to 3.
  2. Add 4 to cups.
  3. If cups is less than 20, go back to step 2. If not, go on to step 4.
  4. Subtract 2 from cups.

What is the value of cups after step 4?

Enter a number.

Reviews

No reviews yet.

Reviews come from teachers who assigned this activity to a class.

Sign in to write a review

Have a topic of your own? Make a printable worksheet and online quiz, free.

Create an activity

Answer key

Answer keys come with Premium

Print this worksheet with the correct answers marked. The key includes any explanations, sample answers, and rubrics supplied with the activity.

Answer keys aren't public: only teachers with Premium and the people who can edit an activity can download one, so students can't get a ready-to-print key from this page.

Premium includes:

  • No ads for you, and no ads for your students on the assignments you post.
  • Answer keys for printable worksheets, with the correct answers marked and any explanations, sample answers, and rubrics.
  • Create with AI: up to 100 activities a year (5 during the free trial), with every answer checked before you see the draft.

$29 a year, plus sales tax where it applies.

New Premium teachers can try it free for 7 days. A card or other payment method is needed to start. Unless you cancel before the trial ends, you are charged then and the plan renews every year.

Already have Premium or edit this activity? Sign in