Term 1 review
Answers are for parents and teachers.
1
A team is making a quiz game. Write the job for each person: (a) plans the tasks and the dates, (b) writes the code, (c) draws the characters, (d) plays the game again and again to find bugs.
(a) project manager. (b) programmer. (c) designer. (d) tester.
2
Ask 10 people, with their permission: ‘Which do you like best, apples, bananas or grapes?’ Make a tally and a summary table. Check that the totals add up to 10. Which chart would show the shares?
The totals must add up to 10. A pie chart shows the shares.
3
A is 0100 0001, B is 0100 0010 and D is 0100 0100. Write the word DAB as three bytes. How many bits do you need?
DAB is 0100 0100, 0100 0001, 0100 0010. It needs 3 × 8 = 24 bits.
4
Trace this: set n to 6, change n by 4, set m to n × 3. What is the value of m?
n is 6, then 10. m = 10 × 3 = 30.
5
(if you have a computer or tablet) Make a sub-routine called hop that changes y by 15, waits 0.2 seconds and changes y by −15. Call it 3 times in a loop, with ‘change x by 20’ after each hop. Where does the sprite end, compared with where it began?
The sprite is back at the same height. It has moved 3 × 20 = 60 to the right.