Mix and test programs
Answers are for parents and teachers.
1
Draw a 5 by 4 grid. Start a coin at the bottom-left facing up. Ask a grown-up to read: “Move 2 forward. Turn right. Move 3 forward.” Where does the coin finish?
The coin goes up 2, faces right, and goes 3 squares along the row. It finishes 3 squares to the right of the start and 2 squares up.
2
Write a 4-step algorithm for packing your school bag. Ask a grown-up to follow it exactly as written. Did any step come in the wrong order? Can any steps be joined?
For example: Put in 3 books. Put in the pencil case. Put in the water bottle. Close the bag. Check the order makes sense (the bag is closed last) and that repeated steps such as “Put in a book” were joined.
3
A sprite program has these blocks: move 15 steps, move 15 steps, move 15 steps, change size by 5, change size by 5. Write the short version and say how many blocks you saved.
Move 45 steps, change size by 10. It saves 3 blocks (5 become 2).
4
A sprite follows this program: go to x: (−100) y: (0), set size to (100) %, change x by (50), change size by (10). Write where it is and its size after run 1 and after run 2.
After both runs: x: −50 and size 110. The two reset blocks put it back at x: −100 and size 100 before it moves and grows.
5
Explain to a grown-up why we test a program twice.
The first run might work only because the sprite started in the right place. A second run shows if the program resets properly.