← Years 5–6 Data & Information

Representing images with pixels

A pixel is one tiny square in a grid that makes up a digital image. Each pixel is stored as a number, such as 0 for white or 1 for black.

Understanding Representing images with pixels in Years 5–6 Data & Information

What it does: In a simple black and white image each pixel is saved as a number, and 1 means black. Resolution is the number of pixels across and down. A bigger grid like 1920 x 1080 has many more pixels than a small one, so the picture is sharper. 0 is white and 1 is black, so white, black, white, black is 0 1 0 1. A pixel grid is counted by multiplying rows by columns, so 8 x 8 gives 64 tiny squares.

Common mistakes: In black and white images, white pixels are stored as 0, not 1. It should be white = 0. Black is the pixel stored as 1. The list of pixel numbers is missing its closing square bracket. It should be image = [0, 1, 1, 0].

Class: _____________________  ·  Name: _____________________  ·  Date: _________

Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.

This module's key terms are also in a printable crossword (Modules 11–20) and word search (Modules 1–20).

Take this worksheet further — free with Cloodit

Each concept is reinforced from every angle — learned, then applied, then tested.

Learning
Duo
How is a digital image made up?
A grid of tiny squares called pixelsOne big smooth colour with no parts
Matches
A white pixel is stored as 5
↓
In a black and white image only 0 and 1 are used. White is 0, not 5.
Applying
Meanings
Term
pixel
Meaning
A pixel is one tiny square in a grid that makes up a digital image. Each pixel is stored as a number, such as 0 for white or 1 for black.
Practice
11111
Testing
Gaps
A digital image is a grid of
Check Answer
Spots
1# Black and white pixels
2white = 1

Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.

The 'Jellyfish' badge — Flow Controller, one of Cloodit's 106 collectible badges
Students earn collectable badges

Over 100 of them, across seven natural biomes.

Study Buddy
Students build a real study resource

Turns their work into revision material ready for Flash Cards and Exam study.

Diamond Dash — one of Cloodit's live, competitive Sprint games
Students lock in with Sprints

Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.

A Cloodit certificate of achievement, ready to personalise and print
Custom printable certificates

Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.

Quick Questions

1. How is a digital image made up?
A. One big smooth colour with no parts
B. A grid of tiny squares called pixels ✓
A digital image is a grid of pixels. Each pixel is one tiny square of the picture.
2. How does a computer store each pixel?
A. As a number ✓
B. As a drawing
Digital systems store everything as numbers, so each pixel is stored as a number.
3. In a simple black and white image, which number can stand for a black pixel?
A. 7
B. 1 ✓
In a black and white image, 0 can be white and 1 can be black. Only two numbers are needed.
4. A row of pixels is stored as 1 0 0 1. Which pixels are black?
A. The first and the last ✓
B. The two in the middle
1 means black and 0 means white. So 1 0 0 1 is black, white, white, black.
5. Which row of numbers shows white, black, white, black?
A. 0 1 0 1 ✓
B. 1 0 1 0
0 is white and 1 is black, so white, black, white, black is 0 1 0 1.

Match the Pairs

8 x 8 grid = 64 pixels → An image made of 8 rows and 8 columns of squares has 64 pixels in total
0 1 1 0 → A row of four pixels: white, black, black, white
A black pixel is stored as the number 1 → pixel = 1
A higher resolution image has more pixels, so it shows more detail → resolution = 1920 x 1080
A white pixel is stored as 5 → In a black and white image only 0 and 1 are used. White is 0, not 5.
A 4 x 3 grid has 7 pixels → The rows and columns were added instead of multiplied. 4 x 3 makes 12 pixels.

Key Term

pixel
A pixel is one tiny square in a grid that makes up a digital image. Each pixel is stored as a number, such as 0 for white or 1 for black.

Fill in the Blanks

1. A digital image is a grid of pixels
Hint: Type the name for the tiny squares that make up a digital image.
2. A black pixel is stored as the number 1
Hint: Type the digit that stands for a black pixel.
3. More pixels means higher resolution
Hint: Type the word for how many pixels an image has, which decides how detailed it looks.
4. width = 4, height = 3 total pixels = 4 * 3 = 12
Hint: Type the total number of pixels in the grid by multiplying width and height.
5. Each pixel is stored as a number
Hint: Type the kind of value a computer uses to store each pixel.

Spot the Error

Question 1
A # Black and white pixels
B white = 1
C black = 1
D pixel = black
Line B — In black and white images, white pixels are stored as 0, not 1. It should be white = 0. Black is the pixel stored as 1.
Question 2
A image = [0, 1, 1, 0
B pixels = len(image)
C print(pixels)
Line A — The list of pixel numbers is missing its closing square bracket. It should be image = [0, 1, 1, 0].
Question 3
A row1 = [0, 1, 1, 0]
B row2 = [1, 0, 2, 1]
C row3 = [0, 1, 1, 0]
Line B — A black and white pixel can only be 0 or 1. The 2 is not a valid pixel number. It should be row2 = [1, 0, 0, 1].
Question 4
A width, height = 8, 6
B total = width + height
C print(total)
Line B — The number of pixels in a grid is the width multiplied by the height, not added. It should be total = width * height, which gives 48.
Question 5
A row1 = [0, 1, 0]
B row2 = [1, 1, 1]
C row3 = [0, 1, 0]
D print(row1) # all black
Line D — Row 1 is [0, 1, 0], so it has white pixels. The all black row is row2, which is [1, 1, 1]. It should be print(row2).

Student with a class code? Join your class →