lesson

Formats give bits their meaning

1 · Learn

Text can be represented by character codes; an image can be represented by pixel colour values; digital sound can be represented by measurements of a signal taken over time. These are different encoding schemes, not different kinds of bit.

More pixels or more detailed samples can require more data, but quality also depends on the source and method. Enlarging a low-detail image does not automatically recreate missing detail.

Text: codesRaster: pixelsSound: samplesAgreed interpretation
Key words and supplied examples.

2 · Worked example

A tiny black-and-white model image has one bit per pixel. A 4 by 3 grid needs 12 pixel bits before any headers or metadata in this simplified uncompressed model.

3 · Your turn

In the stated one-bit-per-pixel model, how many pixel bits does an 8 by 5 image need?

Check your answer

40 bits, excluding headers, metadata or other storage overhead.

4 · Apply your learning

Encode and decode a small invented monochrome grid using an explicitly agreed order for its pixels.

Adult guidance and safety

Use an approved private programming or authoring environment and fictional data. Do not install unknown software or enter personal credentials for these exercises. Trace first, then run and test where a suitable tool is available; these text examples do not themselves provide an executable assessment environment.

Open your writing and drawing pad

Write, draw or show your working. Use a mouse, pen or finger. This pad is not a submitted answer.

Not saved to your account. Download your drawing as PNG and your typed notes as TXT before leaving or refreshing. They are separate files. Do not enter private information.

Open a picture saved on this device to draw on it again. Opening replaces the drawing, but Undo can restore it. PNG only, up to 4 MB and 4096 × 4096 pixels. The picture stays in this browser; it is not uploaded. Paper lines in a saved picture become part of that picture.

Drawing is unavailable. Use the typed working area below.

Your pad is empty.

Open a UTF-8 TXT file from this device, up to 40 KB and 10,000 characters. It stays in this browser. Opening can be undone until you type again. Downloads keep a new copy; they do not change the file you opened.

Typed notes are not submitted answers.

Check a calculation · Year 5 onward

Use this only when your teacher or adult allows a calculator for the task. Show your thinking first. It does not replace mental or written arithmetic and does not mark your lesson answer.

Powers, roots and trigonometry · Year 7 onward

Use only when the task allows a calculator. Choose one operation at a time and record your working. Trigonometry here always uses degrees (DEG), not radians. Inverse sine, cosine and tangent return an angle, not a reciprocal. Keep exact fractions and π in answers when requested.

Approximate numerical results use up to 12 significant digits. Inverse sine returns −90° to 90°, inverse cosine 0° to 180°, and inverse tangent −90° to 90°; these are principal values, not every possible solution of a trigonometric equation.

Practice this lesson

Lesson resources

Browse the available practice activities and worksheets for this lesson.

Open course resources

Your progress

Ready to continue?