GRADE 7 · COMPUTING · UNIT 5 · LESSON 5.6

Living with AI: Digital data

Representing data: Images

Read a little. Try the workbook. Check your answers. Choose one section below to get started.

7 fillable worksheet pagesRead at your own pace

LET’S TRACE, REASON AND TEST

Representing data: Images

A bitmap stores a grid of pixel values. A colour key explains each code. With one bit there are two possible codes; with two bits there are four. Pixel dimensions and pixel density describe different properties.

Today’s two goals
  • Explain how an image can be represented by a grid of pixels encoded with binary values.
  • Decode and create a small bitmap using a consistent colour key and at most two bits per pixel.
Original PaxaKids illustration for Representing data: Images. Precise program text and data are supplied in the workbook models.
An original PaxaKids workbook scene. Use the supplied programs and data for precise workbook facts.

Explore the clues

Tap one card to find out more.

Understand the idea

A bitmap stores a grid of pixel values. A colour key explains each code. With one bit there are two possible codes; with two bits there are four. Pixel dimensions and pixel density describe different properties.

Concept to practise: Representing data: Images.

Work through an example

A 6 × 4 image at one bit per pixel has 24 bits of raw pixel data. At two bits per pixel the same dimensions need 48 bits. This calculation excludes headers, palettes and any effect of compression.

Try before your workbook

A 10 × 10 image uses two bits per pixel. How many raw pixel bits are needed, and do those bits prove the final file size?

Check my readiness thinking

The pixel payload is 10 × 10 × 2 = 200 bits, or 25 bytes. An actual file may include other data and use compression. Decode the grid in row order using its stated key; do not treat density as the total number of pixels.

Your original programs and learning models

These original PaxaKids program and data models support your workbook. Some examples deliberately contain faults to investigate. Follow their headings and preserve exact code case, punctuation and order. Traces and supplied records are not claims of physical testing.

Represent an image as digital values

A printed photograph is an analogue image. A scanner or camera measures light from positions across it. The values are represented digitally so a computer can store and process them.

A bitmap represents an image as a grid of pixels. Each pixel has an encoded value. A bit is one binary digit, 0 or 1. A colour key tells us what a stored code means.

Read a one-bit bitmap

For this example, 0 means white and 1 means dark blue. Each square is one pixel. The colour key is part of the explanation, not a rule that every bitmap must use.

Code key: 0 = white, 1 = dark blue. Read top to bottom, left to right.

Original bitmap codes
Row / column123456
1001100
2011110
3110011
4100001

Decode two bits per pixel

Two bits provide four different codes: 00, 01, 10 and 11. Use this original code grid for the final decoding task. Read rows from top to bottom and cells from left to right.

Code key: 00 = white, 01 = blue, 10 = green, 11 = yellow. Read top to bottom, left to right.

Original bitmap codes
Row / column123456
1000001000000
2000111010000
3011111110100
4000110010000
5000010000000
6000010100000

Calculate raw pixel storage

For these uncompressed classroom examples:
raw pixel bits = width × height × bits per pixel.

This counts pixel data only. Real files can also include headers, palettes and other data, and compression can change the stored file size.

Separate pixel dimensions from print density

Separate pixel dimensions from print density — original model
SettingWhat it describes
Pixel dimensionsWidth and height counted in pixels.
Colour depthBits used to encode each pixel in this model.
Pixel density, PPIPixels per linear inch at a stated physical size.

Practice files for this lesson

Save a copy of these original PaxaKids learner files before editing in suitable software. Some code and datasets deliberately need completion or repair. Downloading a file does not run it. Use invented data; record actual tests separately from predictions. Native software practice files are not print-optimised; use the student PDF for printing.

Paxa the Fox

Try one step with Paxa!

Use supplied fictional records. Do not disclose personal details, upload private photos or bypass browser warnings to complete an activity. Save personal responses before leaving.

Our Unit 5 learning path
  1. Lesson 5.1: Applications and systems software
  2. Lesson 5.2: AI around us
  3. Lesson 5.3: AI in industry
  4. Lesson 5.4: Collecting the input
  5. Lesson 5.5: Designing your own AI system
  6. Lesson 5.6: Representing data: Images
  7. Lesson 5.7: Vector graphics
  8. Lesson 5.8: Representing data: Sound and text
  9. Lesson 5.9: Introduction to logic gates
  10. Lesson 5.10: Types of logic gate
  11. Lesson 5.11: Smart-city design and extended logic circuits
  12. Lesson 5.12: Final project: School AI learning-system design
  13. Lesson 5.13: Evaluation
  14. Lesson 5.14: What can you do?
For grown-ups: using this lesson

Your answers are checked in your browser. Open responses need grown-up review and are shown separately from the automatic score. Check your work, then use “Retry answers to practise” to revisit mistakes while keeping correct responses.

Read one explanation, discuss the model and try the readiness check before the workbook. Choose “Mark lesson finished” when ready. Optional account progress saves lesson position and completion across devices; save personal responses before leaving.

2. Fill in your workbook

Read the teaching and the complete workbook instructions. Choose, write or draw; Answer list offers larger controls. Trace code precisely and distinguish predictions from actual tests. Review designs, explanations and drawings with a grown-up.

Representing data: Images7 student pages · original artwork

Opening your PDF…

Swipe sideways across the worksheet on a small screen, or use “Answer list” for larger controls.

TAKE YOUR PRACTICE OFFLINE

3. Download the student worksheet

All 7 original A4 student pages, ready for pencil-and-paper practice. Choose Review Answers to check your work on this webpage.

Student worksheet only · PDF · 8.0 MiB · No answer key included

Download worksheet PDF ↓

TRY FIRST, THEN CHECK TOGETHER

Download the student worksheet →

4. Answers & guidance

Finished your try? Open the guide and compare one worksheet at a time. Your own words may be different and still explain the right idea.

Shown on this webpage only. There is no answer-key download, and this guide is left out when printing the page.

Show answers for all 7 worksheets

Worksheet 1

  1. Question 1: What is one bit? one binary digit, 0 or 1
  2. Question 2: What does a bitmap store? encoded values arranged in a pixel grid

Worksheet 2

  1. Question 3: How many pixels wide is this grid? 6
  2. Question 4: How many pixels high is this grid? 4
  3. Question 5: How many raw pixel bits at one bit per pixel? 24

Worksheet 3

  1. Question 6: What colour is row 2, column 3? yellow
  2. Question 7: How many different codes are possible with two bits? 4

Worksheet 4

  1. Question 8: 12 pixels wide × 8 high × 2 bits per pixel = how many raw bits? 192
  2. Question 9: 24 pixels wide × 8 high × 2 bits per pixel = how many raw bits? 384
  3. Question 10: 8 pixels wide × 6 high × 1 bit per pixel = how many raw bits? 48
  4. Question 11: What changes when width doubles but height and colour depth stay fixed? raw pixel bits double

Worksheet 5

  1. Question 12: Which measurement is pixel density? pixels per linear inch
  2. Question 13: PPI changes without resampling. What happens to pixel count? it stays the same

Worksheet 6

  1. Question 14: Explain to a partner how a printed analogue image can be captured and represented digitally. Then decode the original 6 × 6 pattern on page 3 using its colour key. Colour the blank grid in BitmapPractice_Paxa.docx, or draw a matching grid below. Keep row and column positions unchanged. Show the raw pixel-storage calculation at two bits per pixel. Analogue-to-digital explanation: scanner/camera senses light, samples positions and assigns quantised numeric colour values encoded in binary; bitmap is a pixel grid, not storing the physical paper. Exact six-row pattern decoded with page3 key, all36 cells in correct positions. Rows in colour initials: WWBWWW; WBYBWW; BYYYBW; WBGBWW; WWGWWW; WWGGWW. 6*6*2=72 raw pixel bits, excludes headers/palette/compression. Partner explanation actual or marked pending; no copied publisher flower or fabricated peer test. No numeric score. Grown-up review; personal evidence is required.

Worksheet 7

  1. Question 15: Use YourBitmap_Paxa.docx to design an original 8 × 8 image using one or two bits per pixel. Include an unambiguous colour key and the code in every cell. Exchange the encoded version with a partner to colour or decode. Record the actual result or mark it pending, correct any mismatch and calculate width × height × bits per pixel. Explain how changing pixel dimensions differs from changing PPI without resampling. Original64-cell image, one or two bits per pixel and consistent one-to-one key (up to2 or4 codes/colours). Every encoded cell decodes back to intended image; partner decode/mismatch/repair recorded honestly, pending if unavailable. 8*8*1=64 or8*8*2=128 raw bits, excludes metadata/palette/compression. Width/height are pixel dimensions; PPI pixels per linear inch relates count to physical size; changing PPI metadata alone without resampling does not change pixel count/raw bits. Actual diagrams/records retained; no invented peer result. No numeric score. Grown-up review; personal evidence is required.
Back to my workbook ↑

Curriculum & workbook reference

Computing for your homeschool day

Explore Representing data: Images with this free Grade 7 Computing lesson. Read one idea together, try the fillable workbook and return to review at your own pace. Download the same student worksheet PDF for pencil-and-paper practice.

Fit learning around your family’s day. There is no timer and no sign-up is needed to use the lesson. An optional account saves your lesson position and completion across devices. Workbook responses and drawings stay in this tab; save a copy of your responses before leaving.

Understand your results

Your answers are checked in your browser. Open responses need grown-up review and are shown separately from the automatic score. Check your work, then use “Retry answers to practise” to revisit mistakes while keeping correct responses.

Choose Review Answers after trying the activity. The guide stays on the webpage; the worksheet download contains only the student pages.

For programme background, visit the Cambridge Lower Secondary Computing overview. PaxaKids provides independent original companion practice.

The book pages identify the related teaching topic. The explanations, characters, programs and exercises here are original PaxaKids companion practice. Practical tasks require the appropriate editor and, where applicable, suitable equipment. A design or paper trace is not a verified hardware result. Only completed, reviewed lessons are listed.

Explore the Cambridge Lower Secondary Computing curriculum for programme background. PaxaKids is an independent learning resource.