IGCSE Computer Science · Study guide

Data Representation

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.

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

IdeaPrecise roleEvidence or example
binary representationconverts every form of data to binary before a computer can process ittext, images, and sound stored as bit patterns
binary place valuesuse powers of two from right to left128, 64, 32, 16, 8, 4, 2, 1 in an 8-bit value
binary-to-denary conversionadds the place values whose bits are 100001101₂ = 8 + 4 + 1 = 13
denary number systemuses base 10 and the digits 0 through 9347₁₀
binary number systemuses base 2 and the digits 0 and 1101101₂
16-bit unsigned maximumhas sixteen 1 bits and represents 655351111111111111111₂

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 stepPurpose
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 1s are under 8, 2, and 1.

Result: 8 + 2 + 1 = 11

8421
1011
821
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.

MistakeBetter 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.
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

IdeaPrecise roleEvidence or example
place-value subtractiontests powers of two from largest to smallest and subtracts each usable value13 uses 8, 4, and 1 to form 1101₂
denary-to-binary place bitis 1 when its power of two is used and 0 when it is notthe 4 bit is 1 in 00001101₂
remainder checkreaches zero after all selected binary place values are subtracted13 − 8 − 4 − 1 = 0
leading zeropads a positive binary value to the requested register width without changing its value1101 becomes 00001101 in 8 bits
largest required placeis the greatest power of two that does not exceed the denary value32 is the first place used for 45
conversion verificationconverts the completed bit pattern back to denary to check the result00101101₂ = 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 stepPurpose
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

8421
1101
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.

MistakeBetter habit
Students often write the denary digits in binary boxes without using place values.Track the remaining value after each selected place 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

IdeaPrecise roleEvidence or example
0 + 0produces 0 with no carry00000000 + 00000000
0 + 1produces 1 with no carry00000000 + 00000001
1 + 1produces 0 with a carry of 100000001 + 00000001 = 00000010
8-bit maximumthe largest unsigned value is 25511111111₂
overflowoccurs when a result is too large for the available register250 + 10 in an 8-bit register
lost carry bitthe ninth result bit cannot be stored in an 8-bit register11111111 + 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 stepPurpose
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

NumberBinary
30011
20010
50101
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.

MistakeBetter habit
Students often treat 1+1 as 2 in one binary column.Separate ordinary carries from a final carry beyond the available bits.
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

IdeaPrecise roleEvidence or example
logical left shiftmoves every bit left and inserts zero at the right00110100 shifted left once
logical right shiftmoves every bit right and inserts zero at the left00110100 shifted right once
left-shift effectmultiplies a positive binary integer by 2 for each place when no significant bit is lost00000101 becomes 00001010
right-shift effectdivides a positive binary integer by 2 for each place and discards any fractional remainder00001010 becomes 00000101
most significant bit lossa bit shifted beyond the left end is discarded10000000 shifted left
least significant bit lossa bit shifted beyond the right end is discarded00000001 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 stepPurpose
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

BeforeAfter
0000110000011000
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.

MistakeBetter habit
Students sometimes rotate bits around to the other side.Move bits straight across, fill with zeroes, and check discarded bits.
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

IdeaPrecise roleEvidence or example
hexadecimal digit setuses 0–9 and A–F to represent the values 0–15F represents denary 15
binary nibble mappingmaps each group of four binary bits to one hexadecimal digit1010₂ maps to A₁₆
binary-to-hexadecimal conversiongroups bits into nibbles from the right and converts each group11011110₂ = DE₁₆
hexadecimal-to-binary conversionreplaces every hexadecimal digit with exactly four binary bits3F₁₆ = 00111111₂
hexadecimal place valuesuse powers of sixteen from right to left2A₁₆ = 2 × 16 + 10 = 42
16-bit hexadecimal widthuses at most four hexadecimal digits for an unsigned 16-bit valueFFFF₁₆ 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 stepPurpose
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

BinaryDenaryHex
101010A
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.

MistakeBetter 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.
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

IdeaPrecise roleEvidence or example
compact binary notationuses one hexadecimal digit for each four binary bits11111111₂ written as FF₁₆
human readability benefitmakes long binary patterns shorter and easier to copy or comparea memory address shown as 3A7F
HTML colour valueuses hexadecimal pairs for red, green, and blue components#1463FF
MAC address notationusually displays the manufacturer and serial codes in hexadecimal3C:52:82:1A:4F:90
memory address notationuses hexadecimal as a shorter representation of a binary address0x2AF0
hexadecimal benefit boundaryimproves representation for people but does not alter the underlying binary valueA₁₆ 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 stepPurpose
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.

RedGreenBlue
FF0000
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.

MistakeBetter 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.
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

IdeaPrecise roleEvidence or example
character setassigns a binary code to each character a computer can representa stored code for the letter A
ASCIIrepresents a limited set of characters using standard character codescodes for English letters, digits, and punctuation
Unicodesupports a much greater range of characters and symbols than ASCIIdifferent writing systems and emoji
Unicode storage costcan require more bits per character than ASCIIa larger code space for many languages
text-to-binary processlooks up each character's code and stores that code as bitsa word stored as a sequence of character codes
shared encoding requirementallows sender and receiver to interpret a character code in the same wayboth 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 stepPurpose
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.

CharacterStored as
Abinary 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.

MistakeBetter 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.
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

IdeaPrecise roleEvidence or example
bitmap imagerepresents an image as a grid of pixels converted to binarya 1920 by 1080 photograph
pixelis one picture element with a stored colour valueone dot in a bitmap grid
image resolutionis the number of pixels in an imagewidth × height pixels
colour depthis the number of bits used to represent the colour of each pixel8 bits per pixel gives up to 256 bit patterns
resolution effecthigher resolution usually increases image detail and file sizedoubling both pixel dimensions creates four times as many pixels
colour-depth effecthigher colour depth allows more colours and increases uncompressed file size24 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 stepPurpose
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.

PixelsBits per pixelRaw size
414 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.

MistakeBetter habit
Students may confuse resolution with color depth.Use width x height x color depth, then convert units only if asked.
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

IdeaPrecise roleEvidence or example
sound samplingmeasures an analogue sound wave at regular time intervals for conversion to binaryrecording microphone amplitude readings
sample rateis the number of sound samples taken each second44 100 samples per second
sample resolutionis the number of bits used to store each sound sample16 bits per sample
sample-rate effecta higher value captures the wave more frequently and increases accuracy and file sizemore measurements during one second
sample-resolution effecta higher value records more possible amplitude levels and increases accuracy and file size16-bit samples distinguish more levels than 8-bit samples
uncompressed sound sizeis calculated from sample rate × sample resolution × durationsamples/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 stepPurpose
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.

RateDurationDepthSize
100010880,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.

MistakeBetter habit
Students may think sampling rate and sample resolution are the same thing.Keep rate, resolution, and duration as three separate factors.
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

IdeaPrecise roleEvidence or example
compression purposereduces a file's sizea smaller image attachment
compression impactcan reduce required storage, bandwidth, and transmission timesending a smaller file over a network
lossy compressionpermanently removes some data to reduce file sizereducing image resolution or sound sample rate
lossless compressionreduces file size without permanent loss of original datacompressing text that must be restored exactly
run length encoding (RLE)stores a repeated value together with the number of consecutive repetitionsAAAAAA stored as six As
method suitabilityuses lossless compression when exact recovery matters and may use lossy compression when some quality loss is acceptablelossless 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 stepPurpose
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

OriginalRLE
AAAAABBB5A3B
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.

MistakeBetter habit
Students may think all compression loses data.Match the method to the data and the need for exact recovery.
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

IdeaPrecise roleEvidence or example
two's complementrepresents positive and negative integers in a fixed-width binary system8-bit signed integers
positive 8-bit valuehas a most significant bit of 000001101 represents +13
negative 8-bit valuehas a most significant bit of 111110011 represents −13
negating a valueinvert all eight bits and add 100000101 becomes 11111011
8-bit signed rangeruns from −128 to +12710000000 through 01111111
sign interpretationthe same 8-bit pattern can mean a different value if treated as unsigned11111111 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 clueWhat it proves
leftmost 0non-negative
leftmost 1negative
invert and add 1make negative
-128 to +1278-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.

TermUse in this lesson
signed integerwhole number that can be positive or negative
two's complementbinary method for representing negative integers
sign bitleftmost bit showing the sign in signed binary
rangeset 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.

MistakeCorrection
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.
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

IdeaPrecise roleEvidence or example
nibblecontains 4 bits1010
bytecontains 8 bitsone 8-bit character code
binary unit stepeach KiB-to-EiB unit is 1024 of the previous unit1024 MiB = 1 GiB
image file sizeresolution multiplied by colour depth, then converted to the requested unitwidth × height × bits per pixel
sound file sizesample rate multiplied by sample resolution and durationsamples/s × bits/sample × seconds
exbibyte (EiB)a binary storage unit above pebibyte1024 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 clueWhat it proves
bits to bytesdivide by 8
bytes to KiBdivide by 1024
image sizepixels x colour depth
sound sizerate 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.

TermUse in this lesson
bitone binary digit
nibblefour bits
byteeight bits
kibibyte1024 bytes
mebibyte1024 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.

MistakeCorrection
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.
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 Conversionbinary representation — converts every form of data to binary before a computer can process it.
Denary to Binary Conversionplace-value subtraction — tests powers of two from largest to smallest and subtracts each usable value.
Binary Addition & Overflow0 + 0 — produces 0 with no carry.
Logical Shiftslogical left shift — moves every bit left and inserts zero at the right.
Hexadecimal Conversionhexadecimal digit set — uses 0–9 and A–F to represent the values 0–15.
Uses of Hexadecimalcompact binary notation — uses one hexadecimal digit for each four binary bits.
Text Storage & Character Setscharacter set — assigns a binary code to each character a computer can represent.
Image Storage & Bitmapsbitmap image — represents an image as a grid of pixels converted to binary.
Sound Storage & Samplingsound sampling — measures an analogue sound wave at regular time intervals for conversion to binary.
Data Compressioncompression purpose — reduces a file's size.
Two's Complementtwo's complement — represents positive and negative integers in a fixed-width binary system.
Data Storage Units & File Size Calculationsnibble — contains 4 bits.

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