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.