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 | |
|---|---|---|
| 1<circle cx="50" cy="50" r="40" fill="red"/> | Aphoto.jpg = raster: one colour number per pixel | |
| 2pixel(2,3) = 255,0,0 | B<svg><rect width="80" height="40"/></svg> | |
| 3Photos suit raster images because every tiny detail needs its own pixel colour | CA raster image stores a colour number for every pixel, so it blurs when enlarged. | |
| 4Logos and clip art suit vector images because a few shapes can describe them and they scale cleanly | DA vector image stores a shape instruction like this, so it stays sharp at any size. | |
| 5zoom(photo.jpg, 800%) -> stays sharp | EAn SVG logo is a vector image. It stores shape instructions, not a colour number for each pixel. | |
| 6logo.svg stores a colour for every pixel | FA photo is a raster image. Zooming in enlarges its pixels, so it gets blurry or blocky and does not stay sharp. |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
raster vs vector — Raster images store a colour number for every pixel and blur when enlarged; vector images store shape instructions and stay sharp at any size.<circle cx="50" cy="50" r="40" /><rect x="10" y="10" width="80" height="40" />FOR EACH pixel IN image
STORE colour_number<svg width="100" height="100">
<circle r="40" />
</svg>IF zoom > 100 AND type = "raster" THEN
DISPLAY "Blurry pixels"