---
title: "Data Representation | FiveStudy"
description: "Move fluently among number systems, encoded media, storage units, file-size calculations, and compression decisions."
url: https://fivestudy.com/guides/igcse-computer-science-data-representation
---

[IGCSE Computer Science](https://fivestudy.com/igcse-computer-science) · Study guide

# Data Representation

[Figure: FiveStudy logo]

FiveStudy

IGCSE Computer Science · Topic 1

IGCSE Computer Science · Comprehensive Guide 1

# Topic 1 · *Data Representation*

Move fluently among number systems, encoded media, storage units, file-size calculations, and compression decisions.

12 lesson sections · 12 worked applications · Paper 1 · Cambridge 0478 (2026–2028)

Prerequisite check

Confident integer arithmetic, powers of two, and careful unit conversion.

Exam reasoning lens

Show every conversion or calculation step. When explaining representation, link the stored bits to what they mean.

All data →Binary →Text · sound · image →Storage →Compression

## In this guide

1. Binary Place Value & Denary Conversion
2. Denary to Binary Conversion
3. Binary Addition & Overflow
4. Logical Shifts
5. Hexadecimal Conversion
6. Uses of Hexadecimal
7. Text Storage & Character Sets
8. Image Storage & Bitmaps
9. Sound Storage & Sampling
10. Data Compression
11. Two's Complement
12. Data Storage Units & File Size Calculations

Topic 1 · Section 1

## Binary Place Value & Denary Conversion

The defining description of **binary representation** is “converts every form of data to binary before a computer can process it.” Connect it with **binary place values**, whose role is “use powers of two from right to left.”

### Required vocabulary and boundaries

| Idea | Precise role | Evidence or example |
| --- | --- | --- |
| **binary representation** | converts every form of data to binary before a computer can process it | text, images, and sound stored as bit patterns |
| **binary place values** | use powers of two from right to left | 128, 64, 32, 16, 8, 4, 2, 1 in an 8-bit value |
| **binary-to-denary conversion** | adds the place values whose bits are 1 | 00001101₂ = 8 + 4 + 1 = 13 |
| **denary number system** | uses base 10 and the digits 0 through 9 | 347₁₀ |
| **binary number system** | uses base 2 and the digits 0 and 1 | 101101₂ |
| **16-bit unsigned maximum** | has sixteen 1 bits and represents 65535 | 1111111111111111₂ |

### Four-step exam routine

**1**

Identify the exact clue and name **binary representation** only when its defining role fits.

**2**

State the mechanism or boundary: use powers of two from right to left.

**3**

Apply the idea to evidence such as “00001101₂ = 8 + 4 + 1 = 13.”

**4**

Reject the tempting error that uses only the digits 0 and 1.

Method and reasoning

### Why the Method Works

Each binary column represents a power of 2. The bit tells you whether that power of 2 is included in the total.

1. Write the binary place values above the bits.
2. Mark the columns where the bit is `1`.
3. Ignore the columns where the bit is `0`.
4. Add the selected place values.
5. Write the answer as a denary number.

This is the part to understand, not memorise: the method works because each step preserves the value being represented.

| Method step | Purpose |
| --- | --- |
| Write the binary place values above the bits. | Keeps the representation accurate |
| Mark the columns where the bit is `1`. | Keeps the representation accurate |
| Ignore the columns where the bit is `0`. | Keeps the representation accurate |
| Add the selected place values. | Keeps the representation accurate |
| Write the answer as a denary number. | Keeps the representation accurate |

Worked application

### Worked Example: 1011

Convert binary `1011` to denary.

**Working:** The `1`s are under `8`, `2`, and `1`.

**Result:** `8 + 2 + 1 = 11`

| 8 | 4 | 2 | 1 |
| --- | --- | --- | --- |
| 1 | 0 | 1 | 1 |
| 8 |  | 2 | 1 |

Boundary and misconception

### Common Mistake

A common mistake is reading `1011` as one thousand and eleven. Binary digits are place values, not denary digits.

**Fix:** Use the place-value row and add only the columns marked with `1`.

When checking your answer, point to the exact part of the method that prevents this mistake.

| Mistake | Better habit |
| --- | --- |
| A common mistake is reading `1011` as one thousand and eleven. Binary digits are place values, not denary digits. | Use the place-value row and add only the columns marked with `1`. |

**Common mistake**

A student may claim that represents 65536. Repair it by stating that has sixteen 1 bits and represents 65535.

**Check your understanding**

Which idea fits “101101₂,” and what does it do?

**Show answer**

**binary number system**: uses base 2 and the digits 0 and 1.

Topic 1 · Section 2

## Denary to Binary Conversion

The defining description of **place-value subtraction** is “tests powers of two from largest to smallest and subtracts each usable value.” Connect it with **denary-to-binary place bit**, whose role is “is 1 when its power of two is used and 0 when it is not.”

### Required vocabulary and boundaries

| Idea | Precise role | Evidence or example |
| --- | --- | --- |
| **place-value subtraction** | tests powers of two from largest to smallest and subtracts each usable value | 13 uses 8, 4, and 1 to form 1101₂ |
| **denary-to-binary place bit** | is 1 when its power of two is used and 0 when it is not | the 4 bit is 1 in 00001101₂ |
| **remainder check** | reaches zero after all selected binary place values are subtracted | 13 − 8 − 4 − 1 = 0 |
| **leading zero** | pads a positive binary value to the requested register width without changing its value | 1101 becomes 00001101 in 8 bits |
| **largest required place** | is the greatest power of two that does not exceed the denary value | 32 is the first place used for 45 |
| **conversion verification** | converts the completed bit pattern back to denary to check the result | 00101101₂ = 32 + 8 + 4 + 1 = 45 |

### Four-step exam routine

**1**

Identify the exact clue and name **place-value subtraction** only when its defining role fits.

**2**

State the mechanism or boundary: is 1 when its power of two is used and 0 when it is not.

**3**

Apply the idea to evidence such as “13 − 8 − 4 − 1 = 0.”

**4**

Reject the tempting error that doubles the represented value.

Method and reasoning

### Why the Method Works

The binary output is a record of exactly which powers of 2 were selected.

1. Start with the largest place value.
2. If it fits into the remaining denary value, write `1`.
3. Subtract that place value.
4. If it does not fit, write `0`.
5. Continue until the 1 column.

This is the part to understand, not memorise: the method works because each step preserves the value being represented.

| Method step | Purpose |
| --- | --- |
| Start with the largest place value. | Keeps the representation accurate |
| If it fits into the remaining denary value, write `1`. | Keeps the representation accurate |
| Subtract that place value. | Keeps the representation accurate |
| If it does not fit, write `0`. | Keeps the representation accurate |
| Continue until the 1 column. | Keeps the representation accurate |

Worked application

### Worked Example: 13

Convert denary `13` to binary.

**Working:** Use `8 + 4 + 1`.

**Result:** `00001101`

| 8 | 4 | 2 | 1 |
| --- | --- | --- | --- |
| 1 | 1 | 0 | 1 |

Boundary and misconception

### Common Mistake

Students often write the denary digits in binary boxes without using place values.

**Fix:** Track the remaining value after each selected place value.

When checking your answer, point to the exact part of the method that prevents this mistake.

| Mistake | Better habit |
| --- | --- |
| Students often write the denary digits in binary boxes without using place values. | Track the remaining value after each selected place value. |

**Common mistake**

A student may claim that checks only the number of 1 bits. Repair it by stating that converts the completed bit pattern back to denary to check the result.

**Check your understanding**

Which idea fits “32 is the first place used for 45,” and what does it do?

**Show answer**

**largest required place**: is the greatest power of two that does not exceed the denary value.

Topic 1 · Section 3

## Binary Addition & Overflow

The defining description of **0 + 0** is “produces 0 with no carry.” Connect it with **0 + 1**, whose role is “produces 1 with no carry.”

### Required vocabulary and boundaries

| Idea | Precise role | Evidence or example |
| --- | --- | --- |
| **0 + 0** | produces 0 with no carry | 00000000 + 00000000 |
| **0 + 1** | produces 1 with no carry | 00000000 + 00000001 |
| **1 + 1** | produces 0 with a carry of 1 | 00000001 + 00000001 = 00000010 |
| **8-bit maximum** | the largest unsigned value is 255 | 11111111₂ |
| **overflow** | occurs when a result is too large for the available register | 250 + 10 in an 8-bit register |
| **lost carry bit** | the ninth result bit cannot be stored in an 8-bit register | 11111111 + 00000001 |

### Four-step exam routine

**1**

Identify the exact clue and name **0 + 0** only when its defining role fits.

**2**

State the mechanism or boundary: produces 1 with no carry.

**3**

Apply the idea to evidence such as “00000001 + 00000001 = 00000010.”

**4**

Reject the tempting error that the largest unsigned value is 256.

Method and reasoning

### Why the Method Works

Each column is worth twice the column to its right, so a carried 1 moves into the next higher place value.

1. Line up the binary numbers by place value.
2. Add the rightmost column first.
3. If a column totals 2, write 0 and carry 1.
4. If a column totals 3, write 1 and carry 1.
5. Check whether the result fits the available bits.

This is the part to understand, not memorise: the method works because each step preserves the value being represented.

| Method step | Purpose |
| --- | --- |
| Line up the binary numbers by place value. | Keeps the representation accurate |
| Add the rightmost column first. | Keeps the representation accurate |
| If a column totals 2, write 0 and carry 1. | Keeps the representation accurate |
| If a column totals 3, write 1 and carry 1. | Keeps the representation accurate |
| Check whether the result fits the available bits. | Keeps the representation accurate |

Worked application

### Worked Example: 0011 + 0010

Add `0011` and `0010`.

**Working:** 3 + 2 = 5, so the binary result is `0101`.

**Result:** `0101`

| Number | Binary |
| --- | --- |
| 3 | 0011 |
| 2 | 0010 |
| 5 | 0101 |

Boundary and misconception

### Common Mistake

Students often treat `1+1` as 2 in one binary column.

**Fix:** Separate ordinary carries from a final carry beyond the available bits.

When checking your answer, point to the exact part of the method that prevents this mistake.

| Mistake | Better habit |
| --- | --- |
| Students often treat `1+1` as 2 in one binary column. | Separate ordinary carries from a final carry beyond the available bits. |

**Common mistake**

A student may claim that the register automatically becomes 9 bits wide. Repair it by stating that the ninth result bit cannot be stored in an 8-bit register.

**Check your understanding**

Which idea fits “250 + 10 in an 8-bit register,” and what does it do?

**Show answer**

**overflow**: occurs when a result is too large for the available register.

Topic 1 · Section 4

## Logical Shifts

The defining description of **logical left shift** is “moves every bit left and inserts zero at the right.” Connect it with **logical right shift**, whose role is “moves every bit right and inserts zero at the left.”

### Required vocabulary and boundaries

| Idea | Precise role | Evidence or example |
| --- | --- | --- |
| **logical left shift** | moves every bit left and inserts zero at the right | 00110100 shifted left once |
| **logical right shift** | moves every bit right and inserts zero at the left | 00110100 shifted right once |
| **left-shift effect** | multiplies a positive binary integer by 2 for each place when no significant bit is lost | 00000101 becomes 00001010 |
| **right-shift effect** | divides a positive binary integer by 2 for each place and discards any fractional remainder | 00001010 becomes 00000101 |
| **most significant bit loss** | a bit shifted beyond the left end is discarded | 10000000 shifted left |
| **least significant bit loss** | a bit shifted beyond the right end is discarded | 00000001 shifted right |

### Four-step exam routine

**1**

Identify the exact clue and name **logical left shift** only when its defining role fits.

**2**

State the mechanism or boundary: moves every bit right and inserts zero at the left.

**3**

Apply the idea to evidence such as “00000101 becomes 00001010.”

**4**

Reject the tempting error that always multiplies the value by 2.

Method and reasoning

### Why the Method Works

A left shift moves 1s into columns with larger place values; a right shift moves 1s into columns with smaller place values.

1. Write the original bit pattern.
2. Move every bit the requested number of places.
3. Fill empty positions with `0`.
4. Discard bits pushed outside the available positions.
5. Check whether value loss occurred.

This is the part to understand, not memorise: the method works because each step preserves the value being represented.

| Method step | Purpose |
| --- | --- |
| Write the original bit pattern. | Keeps the representation accurate |
| Move every bit the requested number of places. | Keeps the representation accurate |
| Fill empty positions with `0`. | Keeps the representation accurate |
| Discard bits pushed outside the available positions. | Keeps the representation accurate |
| Check whether value loss occurred. | Keeps the representation accurate |

Worked application

### Worked Example: 00001100 left 1

Shift `00001100` left by one place.

**Working:** Move each bit one position left and add `0` on the right.

**Result:** `00011000`

| Before | After |
| --- | --- |
| 00001100 | 00011000 |

Boundary and misconception

### Common Mistake

Students sometimes rotate bits around to the other side.

**Fix:** Move bits straight across, fill with zeroes, and check discarded bits.

When checking your answer, point to the exact part of the method that prevents this mistake.

| Mistake | Better habit |
| --- | --- |
| Students sometimes rotate bits around to the other side. | Move bits straight across, fill with zeroes, and check discarded bits. |

**Common mistake**

A student may claim that the bit wraps to the left end. Repair it by stating that a bit shifted beyond the right end is discarded.

**Check your understanding**

Which idea fits “10000000 shifted left,” and what does it do?

**Show answer**

**most significant bit loss**: a bit shifted beyond the left end is discarded.

Topic 1 · Section 5

## Hexadecimal Conversion

The defining description of **hexadecimal digit set** is “uses 0–9 and A–F to represent the values 0–15.” Connect it with **binary nibble mapping**, whose role is “maps each group of four binary bits to one hexadecimal digit.”

### Required vocabulary and boundaries

| Idea | Precise role | Evidence or example |
| --- | --- | --- |
| **hexadecimal digit set** | uses 0–9 and A–F to represent the values 0–15 | F represents denary 15 |
| **binary nibble mapping** | maps each group of four binary bits to one hexadecimal digit | 1010₂ maps to A₁₆ |
| **binary-to-hexadecimal conversion** | groups bits into nibbles from the right and converts each group | 11011110₂ = DE₁₆ |
| **hexadecimal-to-binary conversion** | replaces every hexadecimal digit with exactly four binary bits | 3F₁₆ = 00111111₂ |
| **hexadecimal place values** | use powers of sixteen from right to left | 2A₁₆ = 2 × 16 + 10 = 42 |
| **16-bit hexadecimal width** | uses at most four hexadecimal digits for an unsigned 16-bit value | FFFF₁₆ corresponds to sixteen 1 bits |

### Four-step exam routine

**1**

Identify the exact clue and name **hexadecimal digit set** only when its defining role fits.

**2**

State the mechanism or boundary: maps each group of four binary bits to one hexadecimal digit.

**3**

Apply the idea to evidence such as “11011110₂ = DE₁₆.”

**4**

Reject the tempting error that drops leading zeros inside each nibble.

Method and reasoning

### Why the Method Works

Base 16 works neatly with binary because 16 is 2 to the power of 4.

1. Split binary into 4-bit groups from the right.
2. Convert each group to one hex digit.
3. For hex to binary, replace each hex digit with 4 bits.
4. Keep leading zeroes inside each 4-bit group.
5. Use A=10, B=11, C=12, D=13, E=14, F=15.

This is the part to understand, not memorise: the method works because each step preserves the value being represented.

| Method step | Purpose |
| --- | --- |
| Split binary into 4-bit groups from the right. | Keeps the representation accurate |
| Convert each group to one hex digit. | Keeps the representation accurate |
| For hex to binary, replace each hex digit with 4 bits. | Keeps the representation accurate |
| Keep leading zeroes inside each 4-bit group. | Keeps the representation accurate |
| Use A=10, B=11, C=12, D=13, E=14, F=15. | Keeps the representation accurate |

Worked application

### Worked Example: 1010

Convert binary `1010` to hex.

**Working:** `1010` has denary value 10, and hex digit 10 is `A`.

**Result:** `A`

| Binary | Denary | Hex |
| --- | --- | --- |
| 1010 | 10 | A |

Boundary and misconception

### Common Mistake

Students sometimes think A is a variable instead of the hex digit for 10.

**Fix:** Use fixed 4-bit groups and the hex digit table.

When checking your answer, point to the exact part of the method that prevents this mistake.

| Mistake | Better habit |
| --- | --- |
| Students sometimes think A is a variable instead of the hex digit for 10. | Use fixed 4-bit groups and the hex digit table. |

**Common mistake**

A student may claim that requires sixteen hexadecimal digits. Repair it by stating that uses at most four hexadecimal digits for an unsigned 16-bit value.

**Check your understanding**

Which idea fits “2A₁₆ = 2 × 16 + 10 = 42,” and what does it do?

**Show answer**

**hexadecimal place values**: use powers of sixteen from right to left.

Topic 1 · Section 6

## Uses of Hexadecimal

The defining description of **compact binary notation** is “uses one hexadecimal digit for each four binary bits.” Connect it with **human readability benefit**, whose role is “makes long binary patterns shorter and easier to copy or compare.”

### Required vocabulary and boundaries

| Idea | Precise role | Evidence or example |
| --- | --- | --- |
| **compact binary notation** | uses one hexadecimal digit for each four binary bits | 11111111₂ written as FF₁₆ |
| **human readability benefit** | makes long binary patterns shorter and easier to copy or compare | a memory address shown as 3A7F |
| **HTML colour value** | uses hexadecimal pairs for red, green, and blue components | #1463FF |
| **MAC address notation** | usually displays the manufacturer and serial codes in hexadecimal | 3C:52:82:1A:4F:90 |
| **memory address notation** | uses hexadecimal as a shorter representation of a binary address | 0x2AF0 |
| **hexadecimal benefit boundary** | improves representation for people but does not alter the underlying binary value | A₁₆ and 1010₂ represent the same value |

### Four-step exam routine

**1**

Identify the exact clue and name **compact binary notation** only when its defining role fits.

**2**

State the mechanism or boundary: makes long binary patterns shorter and easier to copy or compare.

**3**

Apply the idea to evidence such as “#1463FF.”

**4**

Reject the tempting error that is normally written as four denary groups.

Method and reasoning

### Why the Method Works

Hex is a human-friendly shorthand for binary because each hex digit maps to four bits.

1. Identify what the hex code represents.
2. Read pairs of hex digits as bytes where needed.
3. Use hex for compactness and readability.
4. Do not confuse the use case with conversion steps.
5. Explain why hex is easier than binary for humans.

This is the part to understand, not memorise: the method works because each step preserves the value being represented.

| Method step | Purpose |
| --- | --- |
| Identify what the hex code represents. | Keeps the representation accurate |
| Read pairs of hex digits as bytes where needed. | Keeps the representation accurate |
| Use hex for compactness and readability. | Keeps the representation accurate |
| Do not confuse the use case with conversion steps. | Keeps the representation accurate |
| Explain why hex is easier than binary for humans. | Keeps the representation accurate |

Worked application

### Worked Example: HTML color #FF0000

An HTML color can use six hex digits.

**Working:** `FF` red, `00` green, `00` blue.

**Result:** `#FF0000` means strong red.

| Red | Green | Blue |
| --- | --- | --- |
| FF | 00 | 00 |

Boundary and misconception

### Common Mistake

Students sometimes describe how to convert hex instead of why it is used.

**Fix:** Say hex is a notation for humans; it represents the same underlying data.

When checking your answer, point to the exact part of the method that prevents this mistake.

| Mistake | Better habit |
| --- | --- |
| Students sometimes describe how to convert hex instead of why it is used. | Say hex is a notation for humans; it represents the same underlying data. |

**Common mistake**

A student may claim that makes the processor calculate in base 16 instead of binary. Repair it by stating that improves representation for people but does not alter the underlying binary value.

**Check your understanding**

Which idea fits “0x2AF0,” and what does it do?

**Show answer**

**memory address notation**: uses hexadecimal as a shorter representation of a binary address.

Topic 1 · Section 7

## Text Storage & Character Sets

The defining description of **character set** is “assigns a binary code to each character a computer can represent.” Connect it with **ASCII**, whose role is “represents a limited set of characters using standard character codes.”

### Required vocabulary and boundaries

| Idea | Precise role | Evidence or example |
| --- | --- | --- |
| **character set** | assigns a binary code to each character a computer can represent | a stored code for the letter A |
| **ASCII** | represents a limited set of characters using standard character codes | codes for English letters, digits, and punctuation |
| **Unicode** | supports a much greater range of characters and symbols than ASCII | different writing systems and emoji |
| **Unicode storage cost** | can require more bits per character than ASCII | a larger code space for many languages |
| **text-to-binary process** | looks up each character's code and stores that code as bits | a word stored as a sequence of character codes |
| **shared encoding requirement** | allows sender and receiver to interpret a character code in the same way | both systems decode the same Unicode value |

### Four-step exam routine

**1**

Identify the exact clue and name **character set** only when its defining role fits.

**2**

State the mechanism or boundary: represents a limited set of characters using standard character codes.

**3**

Apply the idea to evidence such as “different writing systems and emoji.”

**4**

Reject the tempting error that always requires fewer bits.

Method and reasoning

### Why the Method Works

Computers store numbers in binary, so text must be represented by numeric character codes.

1. Identify each character.
2. Use the character set to find its code.
3. Store the code in binary.
4. Use a larger character set when more symbols are needed.
5. Use the same encoding to read the data back correctly.

This is the part to understand, not memorise: the method works because each step preserves the value being represented.

| Method step | Purpose |
| --- | --- |
| Identify each character. | Keeps the representation accurate |
| Use the character set to find its code. | Keeps the representation accurate |
| Store the code in binary. | Keeps the representation accurate |
| Use a larger character set when more symbols are needed. | Keeps the representation accurate |
| Use the same encoding to read the data back correctly. | Keeps the representation accurate |

Worked application

### Worked Example: A

Store the character `A`.

**Working:** Find the code for `A` in the character set, then store that code in binary.

**Result:** The computer stores a binary code, not the printed shape.

| Character | Stored as |
| --- | --- |
| A | binary code |

Boundary and misconception

### Common Mistake

Students may think the computer stores the visual shape of the letter directly.

**Fix:** Separate the code for a character from how it is drawn on screen.

When checking your answer, point to the exact part of the method that prevents this mistake.

| Mistake | Better habit |
| --- | --- |
| Students may think the computer stores the visual shape of the letter directly. | Separate the code for a character from how it is drawn on screen. |

**Common mistake**

A student may claim that lets each system assign unrelated meanings to the same code. Repair it by stating that allows sender and receiver to interpret a character code in the same way.

**Check your understanding**

Which idea fits “a word stored as a sequence of character codes,” and what does it do?

**Show answer**

**text-to-binary process**: looks up each character's code and stores that code as bits.

Topic 1 · Section 8

## Image Storage & Bitmaps

The defining description of **bitmap image** is “represents an image as a grid of pixels converted to binary.” Connect it with **pixel**, whose role is “is one picture element with a stored colour value.”

### Required vocabulary and boundaries

| Idea | Precise role | Evidence or example |
| --- | --- | --- |
| **bitmap image** | represents an image as a grid of pixels converted to binary | a 1920 by 1080 photograph |
| **pixel** | is one picture element with a stored colour value | one dot in a bitmap grid |
| **image resolution** | is the number of pixels in an image | width × height pixels |
| **colour depth** | is the number of bits used to represent the colour of each pixel | 8 bits per pixel gives up to 256 bit patterns |
| **resolution effect** | higher resolution usually increases image detail and file size | doubling both pixel dimensions creates four times as many pixels |
| **colour-depth effect** | higher colour depth allows more colours and increases uncompressed file size | 24 bits per pixel stores more colour choices than 8 |

### Four-step exam routine

**1**

Identify the exact clue and name **bitmap image** only when its defining role fits.

**2**

State the mechanism or boundary: is one picture element with a stored colour value.

**3**

Apply the idea to evidence such as “width × height pixels.”

**4**

Reject the tempting error that is the image width.

Method and reasoning

### Why the Method Works

Every pixel must store enough bits to identify its color.

1. Find image width in pixels.
2. Find image height in pixels.
3. Multiply width by height for total pixels.
4. Multiply by color depth.
5. Convert bits to bytes if needed by dividing by 8.

This is the part to understand, not memorise: the method works because each step preserves the value being represented.

| Method step | Purpose |
| --- | --- |
| Find image width in pixels. | Keeps the representation accurate |
| Find image height in pixels. | Keeps the representation accurate |
| Multiply width by height for total pixels. | Keeps the representation accurate |
| Multiply by color depth. | Keeps the representation accurate |
| Convert bits to bytes if needed by dividing by 8. | Keeps the representation accurate |

Worked application

### Worked Example: 2 x 2 image

A tiny image has 4 pixels and 1 bit per pixel.

**Working:** `4 x 1 = 4 bits`.

**Result:** The raw image data needs 4 bits.

| Pixels | Bits per pixel | Raw size |
| --- | --- | --- |
| 4 | 1 | 4 bits |

Boundary and misconception

### Common Mistake

Students may confuse resolution with color depth.

**Fix:** Use width x height x color depth, then convert units only if asked.

When checking your answer, point to the exact part of the method that prevents this mistake.

| Mistake | Better habit |
| --- | --- |
| Students may confuse resolution with color depth. | Use width x height x color depth, then convert units only if asked. |

**Common mistake**

A student may claim that has no effect on file size. Repair it by stating that higher colour depth allows more colours and increases uncompressed file size.

**Check your understanding**

Which idea fits “doubling both pixel dimensions creates four times as many pixels,” and what does it do?

**Show answer**

**resolution effect**: higher resolution usually increases image detail and file size.

Topic 1 · Section 9

## Sound Storage & Sampling

The defining description of **sound sampling** is “measures an analogue sound wave at regular time intervals for conversion to binary.” Connect it with **sample rate**, whose role is “is the number of sound samples taken each second.”

### Required vocabulary and boundaries

| Idea | Precise role | Evidence or example |
| --- | --- | --- |
| **sound sampling** | measures an analogue sound wave at regular time intervals for conversion to binary | recording microphone amplitude readings |
| **sample rate** | is the number of sound samples taken each second | 44 100 samples per second |
| **sample resolution** | is the number of bits used to store each sound sample | 16 bits per sample |
| **sample-rate effect** | a higher value captures the wave more frequently and increases accuracy and file size | more measurements during one second |
| **sample-resolution effect** | a higher value records more possible amplitude levels and increases accuracy and file size | 16-bit samples distinguish more levels than 8-bit samples |
| **uncompressed sound size** | is calculated from sample rate × sample resolution × duration | samples/second × bits/sample × seconds |

### Four-step exam routine

**1**

Identify the exact clue and name **sound sampling** only when its defining role fits.

**2**

State the mechanism or boundary: is the number of sound samples taken each second.

**3**

Apply the idea to evidence such as “16 bits per sample.”

**4**

Reject the tempting error that reduces the number of stored measurements.

Method and reasoning

### Why the Method Works

Each sample stores a binary number describing the wave's amplitude at that instant.

1. Identify sampling rate.
2. Identify sample resolution or bit depth.
3. Identify duration.
4. Multiply rate x resolution x duration.
5. Convert bits to bytes if needed.

This is the part to understand, not memorise: the method works because each step preserves the value being represented.

| Method step | Purpose |
| --- | --- |
| Identify sampling rate. | Keeps the representation accurate |
| Identify sample resolution or bit depth. | Keeps the representation accurate |
| Identify duration. | Keeps the representation accurate |
| Multiply rate x resolution x duration. | Keeps the representation accurate |
| Convert bits to bytes if needed. | Keeps the representation accurate |

Worked application

### Worked Example: 10 seconds

A recording uses 1,000 samples per second for 10 seconds at 8 bits per sample.

**Working:** `1000 x 10 x 8 = 80,000 bits`.

**Result:** 80,000 bits.

| Rate | Duration | Depth | Size |
| --- | --- | --- | --- |
| 1000 | 10 | 8 | 80,000 bits |

Boundary and misconception

### Common Mistake

Students may think sampling rate and sample resolution are the same thing.

**Fix:** Keep rate, resolution, and duration as three separate factors.

When checking your answer, point to the exact part of the method that prevents this mistake.

| Mistake | Better habit |
| --- | --- |
| Students may think sampling rate and sample resolution are the same thing. | Keep rate, resolution, and duration as three separate factors. |

**Common mistake**

A student may claim that depends only on duration. Repair it by stating that is calculated from sample rate × sample resolution × duration.

**Check your understanding**

Which idea fits “16-bit samples distinguish more levels than 8-bit samples,” and what does it do?

**Show answer**

**sample-resolution effect**: a higher value records more possible amplitude levels and increases accuracy and file size.

Topic 1 · Section 10

## Data Compression

The defining description of **compression purpose** is “reduces a file's size.” Connect it with **compression impact**, whose role is “can reduce required storage, bandwidth, and transmission time.”

### Required vocabulary and boundaries

| Idea | Precise role | Evidence or example |
| --- | --- | --- |
| **compression purpose** | reduces a file's size | a smaller image attachment |
| **compression impact** | can reduce required storage, bandwidth, and transmission time | sending a smaller file over a network |
| **lossy compression** | permanently removes some data to reduce file size | reducing image resolution or sound sample rate |
| **lossless compression** | reduces file size without permanent loss of original data | compressing text that must be restored exactly |
| **run length encoding (RLE)** | stores a repeated value together with the number of consecutive repetitions | AAAAAA stored as six As |
| **method suitability** | uses lossless compression when exact recovery matters and may use lossy compression when some quality loss is acceptable | lossless program file versus lossy photograph |

### Four-step exam routine

**1**

Identify the exact clue and name **compression purpose** only when its defining role fits.

**2**

State the mechanism or boundary: can reduce required storage, bandwidth, and transmission time.

**3**

Apply the idea to evidence such as “reducing image resolution or sound sample rate.”

**4**

Reject the tempting error that discards details that can never be recovered.

Method and reasoning

### Why the Method Works

Different data has different patterns, so no compression method is best for every file.

1. Identify the type of data.
2. Decide whether exact recovery is required.
3. Choose lossless if exact recovery matters.
4. Choose lossy if small quality loss is acceptable.
5. Check whether the data pattern suits the method.

This is the part to understand, not memorise: the method works because each step preserves the value being represented.

| Method step | Purpose |
| --- | --- |
| Identify the type of data. | Keeps the representation accurate |
| Decide whether exact recovery is required. | Keeps the representation accurate |
| Choose lossless if exact recovery matters. | Keeps the representation accurate |
| Choose lossy if small quality loss is acceptable. | Keeps the representation accurate |
| Check whether the data pattern suits the method. | Keeps the representation accurate |

Worked application

### Worked Example: RLE on AAAAABBB

Compress repeated characters with run-length encoding.

**Working:** There are 5 As and 3 Bs.

**Result:** `5A3B`

| Original | RLE |
| --- | --- |
| AAAAABBB | 5A3B |

Boundary and misconception

### Common Mistake

Students may think all compression loses data.

**Fix:** Match the method to the data and the need for exact recovery.

When checking your answer, point to the exact part of the method that prevents this mistake.

| Mistake | Better habit |
| --- | --- |
| Students may think all compression loses data. | Match the method to the data and the need for exact recovery. |

**Common mistake**

A student may claim that uses lossy compression for executable code that must remain exact. Repair it by stating that uses lossless compression when exact recovery matters and may use lossy compression when some quality loss is acceptable.

**Check your understanding**

Which idea fits “AAAAAA stored as six As,” and what does it do?

**Show answer**

**run length encoding (RLE)**: stores a repeated value together with the number of consecutive repetitions.

Topic 1 · Section 11

## Two's Complement

The defining description of **two's complement** is “represents positive and negative integers in a fixed-width binary system.” Connect it with **positive 8-bit value**, whose role is “has a most significant bit of 0.”

### Required vocabulary and boundaries

| Idea | Precise role | Evidence or example |
| --- | --- | --- |
| **two's complement** | represents positive and negative integers in a fixed-width binary system | 8-bit signed integers |
| **positive 8-bit value** | has a most significant bit of 0 | 00001101 represents +13 |
| **negative 8-bit value** | has a most significant bit of 1 | 11110011 represents −13 |
| **negating a value** | invert all eight bits and add 1 | 00000101 becomes 11111011 |
| **8-bit signed range** | runs from −128 to +127 | 10000000 through 01111111 |
| **sign interpretation** | the same 8-bit pattern can mean a different value if treated as unsigned | 11111111 is −1 signed but 255 unsigned |

### Four-step exam routine

**1**

Identify the exact clue and name **two's complement** only when its defining role fits.

**2**

State the mechanism or boundary: has a most significant bit of 0.

**3**

Apply the idea to evidence such as “11110011 represents −13.”

**4**

Reject the tempting error that only change the first bit.

Method and reasoning

### Reason Before Naming

Two's complement lets a computer use binary addition hardware for both positive and negative integers.

Start by underlining the clue in the scenario, then decide what job that clue is describing. This keeps the answer tied to the concept being assessed.

**Answer pattern**
10000000 is -128 because only the signed -128 column is active.

| Scenario clue | What it proves |
| --- | --- |
| leftmost 0 | non-negative |
| leftmost 1 | negative |
| invert and add 1 | make negative |
| -128 to +127 | 8-bit range |

Worked application

### When The Scenario Is Less Obvious

The question may include a boundary case or a tempting wrong answer. Use the exact role in the scenario as evidence.

- **signed integer**: whole number that can be positive or negative
- **two's complement**: binary method for representing negative integers
- **sign bit**: leftmost bit showing the sign in signed binary
- **range**: set of values that can be represented

A strong answer names the representation and shows how the signed place values produce the value.

| Term | Use in this lesson |
| --- | --- |
| signed integer | whole number that can be positive or negative |
| two's complement | binary method for representing negative integers |
| sign bit | leftmost bit showing the sign in signed binary |
| range | set of values that can be represented |

Boundary and misconception

### A Common Mix-Up

A common mistake is reading signed binary as unsigned binary.

**Fix:** Check whether the question says signed or two's complement before using the place values.

| Mistake | Correction |
| --- | --- |
| A common mistake is reading signed binary as unsigned binary. | Check whether the question says signed or two's complement before using the place values. |

**Common mistake**

A student may claim that signed and unsigned interpretations are always identical. Repair it by stating that the same 8-bit pattern can mean a different value if treated as unsigned.

**Check your understanding**

Which idea fits “10000000 through 01111111,” and what does it do?

**Show answer**

**8-bit signed range**: runs from −128 to +127.

Topic 1 · Section 12

## Data Storage Units & File Size Calculations

The defining description of **nibble** is “contains 4 bits.” Connect it with **byte**, whose role is “contains 8 bits.”

### Required vocabulary and boundaries

| Idea | Precise role | Evidence or example |
| --- | --- | --- |
| **nibble** | contains 4 bits | 1010 |
| **byte** | contains 8 bits | one 8-bit character code |
| **binary unit step** | each KiB-to-EiB unit is 1024 of the previous unit | 1024 MiB = 1 GiB |
| **image file size** | resolution multiplied by colour depth, then converted to the requested unit | width × height × bits per pixel |
| **sound file size** | sample rate multiplied by sample resolution and duration | samples/s × bits/sample × seconds |
| **exbibyte (EiB)** | a binary storage unit above pebibyte | 1024 PiB = 1 EiB |

### Four-step exam routine

**1**

Identify the exact clue and name **nibble** only when its defining role fits.

**2**

State the mechanism or boundary: contains 8 bits.

**3**

Apply the idea to evidence such as “1024 MiB = 1 GiB.”

**4**

Reject the tempting error that depends only on the image width.

Method and reasoning

### Reason Before Naming

Raw file size increases when more values are stored or when more bits are used for each value.

Start by underlining the clue in the scenario, then decide what job that clue is describing. This keeps the answer tied to the concept being assessed.

**Answer pattern**
A 100 x 50 image at 8 bits per pixel stores 5,000 pixels and 40,000 bits.

| Scenario clue | What it proves |
| --- | --- |
| bits to bytes | divide by 8 |
| bytes to KiB | divide by 1024 |
| image size | pixels x colour depth |
| sound size | rate x depth x duration |

Worked application

### When The Scenario Is Less Obvious

The question may include a boundary case or a tempting wrong answer. Use the exact role in the scenario as evidence.

- **bit**: one binary digit
- **nibble**: four bits
- **byte**: eight bits
- **kibibyte**: 1024 bytes
- **mebibyte**: 1024 kibibytes

A strong answer shows the formula, units, and conversion steps.

| Term | Use in this lesson |
| --- | --- |
| bit | one binary digit |
| nibble | four bits |
| byte | eight bits |
| kibibyte | 1024 bytes |
| mebibyte | 1024 kibibytes |

Boundary and misconception

### A Common Mix-Up

A common mistake is dividing by 1024 before converting bits to bytes.

**Fix:** Keep the formula in order: multiply first, bits to bytes, then larger units.

| Mistake | Correction |
| --- | --- |
| A common mistake is dividing by 1024 before converting bits to bytes. | Keep the formula in order: multiply first, bits to bytes, then larger units. |

**Common mistake**

A student may claim that is smaller than a kibibyte. Repair it by stating that a binary storage unit above pebibyte.

**Check your understanding**

Which idea fits “samples/s × bits/sample × seconds,” and what does it do?

**Show answer**

**sound file size**: sample rate multiplied by sample resolution and duration.

Paper 1 response lab

## Turn knowledge into marks

A high-quality response does more than recall a term. It selects the command word, states the exact role, follows the mechanism in order, and connects the effect to the scenario.

### Define precisely

For **binary representation**, begin with the defining role: converts every form of data to binary before a computer can process it. Do not replace the definition with an example.

### Describe a process

Use an ordered chain. Name what enters, what changes or is checked, and what result follows. A useful anchor here is “00001101₂ = 8 + 4 + 1 = 13.”

### Apply or justify

Quote the scenario need, select **sound file size**, then link its role — sample rate multiplied by sample resolution and duration — to the required outcome.

### Repair a misconception

Do not accept the claim that is smaller than a kibibyte. Replace it with the exact boundary: a binary storage unit above pebibyte.

### Mark-by-mark response ladder

1. **Name:** use the exact syllabus term.
2. **Role:** define what that term does or represents.
3. **Mechanism:** describe the relevant steps in their logical order.
4. **Context:** explain why that mechanism matters in the stated scenario.
5. **Boundary:** avoid claiming more than the method guarantees.

## Last-pass checklist

**Binary Place Value & Denary Conversion**binary representation — converts every form of data to binary before a computer can process it.

**Denary to Binary Conversion**place-value subtraction — tests powers of two from largest to smallest and subtracts each usable value.

**Binary Addition & Overflow**0 + 0 — produces 0 with no carry.

**Logical Shifts**logical left shift — moves every bit left and inserts zero at the right.

**Hexadecimal Conversion**hexadecimal digit set — uses 0–9 and A–F to represent the values 0–15.

**Uses of Hexadecimal**compact binary notation — uses one hexadecimal digit for each four binary bits.

**Text Storage & Character Sets**character set — assigns a binary code to each character a computer can represent.

**Image Storage & Bitmaps**bitmap image — represents an image as a grid of pixels converted to binary.

**Sound Storage & Sampling**sound sampling — measures an analogue sound wave at regular time intervals for conversion to binary.

**Data Compression**compression purpose — reduces a file's size.

**Two's Complement**two's complement — represents positive and negative integers in a fixed-width binary system.

**Data Storage Units & File Size Calculations**nibble — contains 4 bits.

Mapped to Cambridge IGCSE Computer Science 0478 · 2026–2028 syllabus, version 5

FiveStudy · IGCSE Computer Science · Topic 1

Guide 1 of 10
