Term 1 review and mini-project
Answers are for parents and teachers.
1
Shift the word SAFE by 3 places forward (S to V, and so on). Write the result and the shift that undoes it.
VDIH; shift back by 3.
2
Convert 1010 1100 to hexadecimal and to decimal.
AC in hex; 10 × 16 + 12 = 172 in decimal.
3
An image of 400 × 100 pixels at 8 bits per pixel. How big is it in KB (1 KB = 1,000 B)?
400 × 100 = 40,000 pixels, 40,000 B = 40 KB.
4
Find the one line that is not valid Python and say why.
Python
1items = [3, 5, 7] 2for x in items 3 print(x * 2)
The line for x in items has no colon at the end. It must be for x in items:
5
Make a plan for your own mini-project in three lines and a test table with three rows. Which part would you let an AI helper suggest, and which part will you check yourself?
Answers vary. A good answer lets the helper suggest an idea or explain an error, and keeps the checking of results, the test table and the final decision for the pupil.