Tutorpip← About this lessonABCHide the answer keyDownload PDF
Coding · Ages 10+ · Set C
Reading other people's code
Scan to mark
on screen
C
Name
Date
Start Finish
Goal: 15 min
Score/ 12
Remember: Read code line by line, use names as clues, and try it with small numbers.

Questions

1
Which one does not help you read code?
☑️check a comment against the code⏭️skip to the middle✏️run it by hand with small numbers
2
Which one does not help you read code?
🔎use names as clues🎲change things and hope🔬change one thing at a time
3
☑️Does it help to check a comment against the code when reading code?
YesNo
4
Which one helps you read code?
🎲change things and hope🔎use names as clues⏭️skip to the middle
5
Which one does not help you read code?
🤝trust every comment✏️run it by hand with small numbers📖read the lines one at a time
6
Which line changes the box?
➕add two to stars📝note: counts the stars🟦set stars to zero
7
Which one helps you read code?
📖read the lines one at a time🤝trust every comment⏭️skip to the middle
8
✏️Does it help to run it by hand with small numbers when reading code?
YesNo
9
Which line gives a box its start value?
📝note: counts the stars🟦set stars to zero➕add two to stars
10
Which line does the computer skip?
📝note: counts the stars🟦set stars to zero🔁repeat three times
11
Which line shows the answer?
➕add two to stars💬say stars📝note: counts the stars
12
Which line runs over and over?
🔁repeat three times➕add two to stars🟦set stars to zero
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 C
Reading other people's code
1skip to the middle
2change things and hope
3Yes
4use names as clues
5trust every comment
6add two to stars
7read the lines one at a time
8Yes
9set stars to zero
10note: counts the stars
11say stars
12repeat three times
Mark each answer, count the right ones and write the score on the sheet.