Tutorpip← About this lessonABCHide the answer keyDownload PDF
Coding · Ages 8+ · Set B
Counting stars with a variable
Scan to mark
on screen
B
Name
Date
Start Finish
Goal: 15 min
Score/ 12
Remember: A variable can count. Each time, it takes its old value and adds one.

Questions

1
Which rule does not make a counter count up?
🧮set stars to stars plus one➕add one to the old valueput one in the box every time
2
Which rule is a bug in a counter?
🔁take out, add one, put back🙈forget the old value🧮set stars to stars plus one
3
Which rule is a bug in a counter?
put zero in the box every time🚦start at zero, add one each time🧮set stars to stars plus one
4
Which rule is a bug in a counter?
🧮set stars to stars plus one➕add one to the old value🗑️empty the box each time
5
Which rule makes a variable count up?
put zero in the box every time➕add one to the old valueput one in the box every time
6
Which rule makes a variable count up?
🙈forget the old valueput one in the box every time🚦start at zero, add one each time
7
Which rule makes a variable count up?
put one in the box every time🗑️empty the box each time🔁take out, add one, put back
8
Which rule makes a variable count up?
put one in the box every time🗑️empty the box each time🧮set stars to stars plus one
9
Which rule does not make a counter count up?
🔁take out, add one, put back🙈forget the old value🧮set stars to stars plus one
10
Which rule does not make a counter count up?
🧮set stars to stars plus oneput zero in the box every time🔁take out, add one, put back
11
Which rule is a bug in a counter?
➕add one to the old value🚦start at zero, add one each timeput one in the box every time
12
Which rule does not make a counter count up?
🚦start at zero, add one each time🗑️empty the box each time🧮set stars to stars plus one
Scan the code at the top to mark this sheet on screenTake a photo of your answers or type them. It is marked for you automatically, and your score is kept.
Answer key · Set B
Counting stars with a variable
1put one in the box every time
2forget the old value
3put zero in the box every time
4empty the box each time
5add one to the old value
6start at zero, add one each time
7take out, add one, put back
8set stars to stars plus one
9forget the old value
10put zero in the box every time
11put one in the box every time
12empty the box each time
Mark each answer, count the right ones and write the score on the sheet.