Term 2 review
Answers are for parents and teachers.
1
A shop wants a robot that counts the apples in a box. Name the sensor, the thing that decides and the output.
A camera is the sensor, the program decides how many apples there are, and the screen or speaker is the output.
2
A script sets the volume to 10 and then repeats 5 times: play a note, change volume by 30. Write the volume of each note.
10, 40, 70, 100 and 100. The volume cannot go above 100.
3
Make a table of five friends or family members with the fields name, age and favourite colour. Write a search with two rules and say which records are found.
Answers depend on the table. A record must pass both rules.
4
Write an algorithm: when button A is pressed, show the square icon for 2 seconds, clear the screen, and do this 3 times in all.
1 Start program when button A is pressed. 2 Show square icon. 3 Wait 2 seconds. 4 Clear screen. 5 Repeat steps 2 to 4 two more times. 6 Stop program.
5
Write three inputs and three outputs that you use at home or at school.
For example: a doorbell button, a light switch and a microphone are inputs. A lamp, a speaker and a screen are outputs.