Term 2 review
Answers are for parents and teachers.
1
A film needs 8 Mbps. A router gives 40 Mbps. (a) How many films can stream at once? (b) What is 2 Gbps in Mbps?
(a) 40 ÷ 8 = 5 films. (b) 2 × 1000 = 2000 Mbps.
2
Write a main algorithm that calls a sub-routine called ‘pack one lunch box’ for three children, and write the steps of the sub-routine.
Main: 1 Pack one lunch box. 2 Pack one lunch box. 3 Pack one lunch box. (Or: repeat 3 times: pack one lunch box.) Sub-routine ‘pack one lunch box’: 1 Put in a sandwich. 2 Put in a piece of fruit. 3 Close the lid.
3
Give the best data type for each field. Then list the cells that match the keyword ad, and the cells that match the phrase 5 Nov.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Code | Tool | Borrowed | Days out |
| 2 | L-1 | Spade | 2 Nov | 3 |
| 3 | L-2 | Rake | 5 Nov | 1 |
| 4 | L-3 | Ladder | 5 Nov | 6 |
| 5 | L-4 | Saw | 9 Nov | 2 |
Code is text, Tool is text, Borrowed is a date and Days out is a number. The keyword ad matches B2 (Spade) and B4 (Ladder). The phrase 5 Nov matches C3 and C4.
4
What does the board show? What would it show if the repeat block said repeat 3 times?
Four rounds give 28, and 28 > 25 is true, so the board shows the yes icon. With 3 rounds, sum = 21 and 21 > 25 is false, so the else path runs and the board shows 21.
5
(if you have a computer or tablet) Build the program from the last question in a micro:bit simulator. Test it with the repeat values 3, 4 and 5. Write a test table with your predictions first.
Predictions: 3 rounds give 21 (shows 21), 4 rounds give 28 (shows yes) and 5 rounds give 35 (shows yes). The results should match.