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 | |
|---|---|---|
| 1row by row | AA 4 by 3 grid written as 3 rows of 4 pixels, with a slash marking where each row ends | |
| 20 1 1 0 / 1 0 0 1 / 0 1 1 0 | B1 0 1 / 0 1 0 / 1 0 1 | |
| 3A grid with 3 rows and 4 columns has 12 pixels, because you multiply the rows by the columns | C3 * 4 = 12 | |
| 4Reading starts at the top row and goes left to right, so the first row of the picture is written first | DThe pixels are counted by multiplying, not adding. The grid has 4 * 3 = 12 pixels. | |
| 5Read the grid from the bottom row up to the top row | EA pixel grid is read from the top row down, not from the bottom up. Start at the top row and move down. | |
| 6A grid with 4 columns and 3 rows has 4 + 3 = 7 pixels | FRead the pixels starting at the top row, going left to right, then moving down to the next row |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
row by row — Read a pixel grid in order: start at the top row, go left to right across it, then move down to the next row until the grid ends.row ← 1
READ pixels across row 1, left to rightwidth ← 4
height ← 3
total ← width * heightFOR each row from top to bottom
FOR each pixel from left to right
READ the pixelimage ← "0110/1001/0110"START at the top row
READ left to right across the row
MOVE down to the next row