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.
Students trace loops written as plain-language steps: loops that repeat a set number of times, loops with two actions inside, a loop inside a loop, a loop to fix, and a repeat-until loop that stops when a check is met. Every trace ends in one exact number. Coding and computer science practice with no programming language.
Learning goal: Trace loops written as numbered steps, including counted, nested and repeat-until loops, to find the exact result, and fix a loop that gives the wrong result.
Estimated reading level2.9
KKindergartenHard
Grade 1Stretch
Grade 2On level
Grade 3Easier
Grade 4Easy
About this estimate
The estimate is the middle score of five readability formulas. Their scores run from 1.5 to 5.9.
Flesch-Kincaid GradeSentence length and syllables per word2.6
Gunning FogSentence length and words of three or more syllables4.9
Coleman-Liau Middle scoreLetters per word and sentences per 100 words2.9
Automated Readability IndexCharacters per word and words per sentence1.5
SMOGWords of three or more syllables, for texts of 30 sentences or more5.9
Grade 181216
Flesch Reading Ease
94.1 on a 0 to 100 scale where higher is easier: very easy. Not part of the estimate.
Text measured
494 words, 43 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.
The questions as students see them, without the answers.
Every question includes a loop, which is a step that repeats. Before you trace, check exactly how many times each loop runs or what makes it stop, then follow the steps one at a time.
Question 1
At a school carnival, a ring-toss game uses these steps to work out how many prize tickets a player earns.
Set tickets to 7.
Repeat 5 times: add 6 to tickets.
Subtract 9 from tickets.
What is the value of tickets after the game finishes step 3?
Enter a number.
Question 2
Arjun wrote a program in which the same step, adding 3 to score, appears five times in a row.
Add 3 to score.
Add 3 to score.
Add 3 to score.
Add 3 to score.
Add 3 to score.
Which single loop step does exactly the same thing as these five steps?
Choose one answer.
Repeat 3 times: add 15 to score.
Repeat 5 times: add 5 to score.
Repeat 5 times: add 3 to score.
Repeat 3 times: add 3 to score.
Question 3
A science game uses these steps as a simple model of how a small group of cells grows during an experiment.
Set cells to 3.
Repeat 4 times: double cells.
Subtract 8 from cells.
What is the value of cells after the game finishes step 3?
Enter a number.
Question 4
Talia designed a pattern program for her art class, and it follows these steps.
Set size to 2.
Repeat 4 times, doing both actions each time: double size, then subtract 1 from size.
What is the value of size after the loop in step 2 is finished?
Enter a number.
Question 5
A robot dancer performs a short routine by following these steps. Before the routine begins, the robot has not done any claps or spins.
Repeat these moves 3 times: clap 4 times in a row, then spin once.
How many claps and spins does the robot do in all?
Enter a number.
Question 6
Zoe is programming a holiday light display. She wants these steps to end with lights equal to 20, but they end with 24 instead.
Set lights to 4.
Repeat 5 times: add 4 to lights.
Which change makes the steps end with 20?
Choose one answer.
Change step 2 to add 5 each time.
Change step 2 to repeat 6 times.
Change step 1 to set lights to 8.
Change step 2 to repeat 4 times.
Question 7
These steps use two variables, total and count, that change as the loop runs. In these steps, "Add count to total" changes only total.
Set total to 0.
Set count to 1.
Repeat 6 times, doing both actions each time: add count to total, then add 1 to count.
What is the value of total after the loop in step 3 is finished?
Enter a number.
Question 8
A rocket game fills a fuel tank with these steps. Step 2 checks fuel before every round, so the loop stops as soon as fuel is 20 or more.