Term 3 review
Answers are for parents and teachers.
1
Encode the words MOON and SUN in the number code, with two digits for each letter.
MOON: 13 15 15 14. SUN: 19 21 14.
2
Use a shift of 2 to decode JCNN.
HALL (J→H, C→A, N→L, N→L).
3
Write the four steps of debugging in order, and give an example of an error that you could find in a program.
Run the program and watch; spot the line where it stops matching the algorithm; fix that line; run it again to check. Example: a number box is empty, or the number is 20 instead of 2.
4
Draw a spreadsheet with the headings Day, Cups and Price, and three rows of data. Say the format of each column and the range of the Cups.
Day: Date (or Text), Cups: Number, Price: Currency. The Cups range is B2:B4.
5
Write a reset algorithm for a sprite called snail. The input is the green flag. The outputs are costume snail-a and place x: −90, y: −40.
When the green flag is clicked: switch costume to snail-a; go to x: −90, y: −40.