Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.
Shade in the A or B circle for each question.
Draw a line connecting each item on the left to its match on the right.
| Left column | Right column | |
|---|---|---|
| 11 = black | AAll the digits are crammed into one cell. Each pixel needs its own cell, so only one cell can be coloured. | |
| 20 = white | B0 1 1 1 0 | |
| 3A row of five pixels is typed into five cells as 0s and 1s, ready for the colour rules to turn it into a picture | CThe rule uses the wrong colour. 1 should be black, not white, so the 1s would blend into the white 0s and the picture would not show. | |
| 4Changing one digit in a cell, such as typing 0 over a 1, turns exactly one pixel from black to white | D1 → 0 | |
| 5Rule: cells equal to 1 are filled white | EA rule that fills every cell holding a 1 with black | |
| 6Row typed as: 0,1,1,1,0 in one cell | FA rule that fills every cell holding a 0 with white |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
1 = black, 0 = white — A rule for a grid of cells: type 0s and 1s, then fill each 1 black and each 0 white so the code shows as a picture. Change one digit to change one pixel.Rule 1: if the cell is 1, fill it blackRule 2: if the cell is 0, fill it whitePicture: black, black, white
Row 1 code: 1, 1, 0To turn pixel B1 from black to white:
change B1 from 1 to 0Rule: if cell value = 1, fill black