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 check-in

Week 11 · Review: Term 1 · 3 lessons
Answers are for parents and teachers.
1
Trace this pseudocode when the user types 4, and write the output. Then say what it outputs for 1.
Pseudocode
1INPUT boxes
2total ← boxes * 3
3IF total > 10 THEN
4    OUTPUT "Big order"
5ELSE
6    OUTPUT "Small order"
7ENDIF
2
Write a Python program that asks for a mark out of 100 and prints Merit for 70 or more, Pass for 40 to 69, and Keep practising for less than 40. Test it with 70, 69, 40 and 39.
3
A drawer search has six items: map, atlas, globe, compass, ruler, pencil. How many looks does a linear search need for (a) compass, (b) map, (c) eraser?
4
Explain in two sentences the difference between a function and a procedure. Which one can be used inside a sum?
5
Write down the three kinds of error in a program (syntax, runtime, logic) and give one example of each from this term.