AdvertisementYour brand could be hereYour brand hereOn every Darslab page · students, parents and teachersinfo@darslab.comAsk for pricesPricesinfo@darslab.com
☰ Year plan · Computing

Term 1 round-up

Week 11 · Review: Term 1 · 3 lessons
Answers are for parents and teachers.
1
Work these out by hand first, and then say what Python shows: (a) 4 + 6 * 2 (b) (4 + 6) * 2 (c) 30 / 5 / 2 (d) 2 ** 3 + 4.
2
This program should show the cost of some stickers. The user types 3 and then 0.25. (a) What does it show? (b) What should the answer be, worked out by hand? (c) Name the kind of error and write the corrected line.
Python
1count = int(input("Stickers? "))
2each = float(input("Price of one sticker? "))
3total = count + each
4print("Total:", total)
3
Draw a flowchart for a recycling bank: the user types the kilograms of paper. If it is 20 or more, it outputs Collect a sticker; otherwise it outputs Keep collecting. Trace it for 19, 20 and 21.
4
Write a MicroPython program that shows a diamond when the board is shaken and a small square when button A is pressed. The picture on the lights stays until the other event happens.
5
Choose one idea from Term 1: casting, boundary tests, sub-routines or thresholds. Explain it to a younger child in three sentences and give one example.