🎓 Learning Journey · Topic 1.3A · Cornerstone

Your journey through Text Representation

Character sets (ASCII, Extended ASCII, Unicode), codepoints, and how text becomes binary. Seven stages from theory to mastery. Click any stage card to dive in — or continue where you left off.

Your progress

Where you are in Topic 1.3A

0 / 7Stages visited
0%Accuracy
0 / 10Mastery checklist
🎯 Recommended next stage

Start with Book Notes

Read the theory and terminology to get grounded.

The 7 stages

Choose any stage

Green cards are stages you've already visited. Grey cards are new territory. Click any card to jump straight to that stage.

📚 Topic 1.3A · Data Representation · Cornerstone

Text Representation Lab

How text becomes binary through character sets. Master ASCII (7-bit, 128 characters), Extended ASCII (8-bit, 256), and Unicode (multi-language, more bits). Cambridge IGCSE 0478 Paper 1.

🧪 Cambridge Exam Mode ON — hints hidden, feedback delayed, model answers locked until marking.
§1 · Topic overview

What is Topic 1.3A?

Computers only store binary. So how do they store the letter 'A' or the character '?' or the word "Hello"? Answer: every character has a numeric code defined in a character set, and the code is stored in binary.

The character set is a shared codebook — sender and receiver both use the same one, so binary → back to text works reliably. Cambridge want you to know the two main character sets: ASCII (small, English-focused, 7-bit) and Unicode (huge, multi-language, more bits per character).

Note: images are covered in 1.3B Image Representation Lab and sound in 1.3C Sound Representation Lab. This lesson (1.3A) covers text only.

§2 · Learning objectives

By the end of 1.3A you can…

  • Define character set as a set of codes representing characters
  • State that ASCII uses 7 bits and represents 128 characters (extended ASCII uses 8 bits for 256)
  • Explain the sequential ordering of ASCII (A=65, B=66, C=67…; a=97, b=98, c=99…; 0=48, 1=49…)
  • State that Unicode uses more bits per character than ASCII (16 or 32) and can represent all world scripts
  • Give an advantage of Unicode (more characters, more languages) — not just a difference
  • Give a disadvantage of Unicode (larger file size per character) — not just a difference
  • Convert a character to its ASCII code (and vice versa) using a supplied table
  • Calculate the file size of a text string: characters × bits per character (÷ 8 for bytes)
§3 · Key terminology

Cambridge-approved terms

TermDefinition
CharacterA single letter, digit, punctuation mark, symbol, or control code that can be displayed or processed.
Character setA defined collection of characters, each with a unique numeric code, that a computer can represent.
Codepoint / character codeThe unique number assigned to a specific character in a character set (e.g. A = 65).
ASCIIAmerican Standard Code for Information Interchange. Uses 7 bits per character → 128 possible codes.
Extended ASCIIAdds an 8th bit for a total of 8 bits per character → 256 possible codes (adds symbols, accented letters).
UnicodeA universal character set covering all world scripts. Uses more bits per character than ASCII (commonly 16 or 32).
Sequential orderingConsecutive characters in ASCII have consecutive codes — A=65, B=66, C=67; a=97, b=98, c=99; 0=48, 1=49.
StringA sequence of characters, each stored as its own code.
§4 · Core theory

The three tables you must know cold

Character set comparison

Character setBits per characterTotal charactersCoverage
ASCII7128English letters (A–Z, a–z), digits (0–9), punctuation, control codes
Extended ASCII8256ASCII + additional symbols, accented characters, graphics
Unicode16 (or 32)65,536 (or ~4.3 billion)Every world script — Greek, Chinese, Arabic, Devanagari, emoji…

ASCII sequential ordering (know these anchors)

CharacterDenary codeBinary (7-bit)
A (uppercase)651000001
B661000010
Z901011010
a (lowercase)971100001
b981100010
z1221111010
0 (digit)480110000
9570111001
space320100000

Consequence: to find the code of any letter, count from the anchor. K is the 11th letter (A=1, B=2… K=11) so K = 65 + 10 = 75.

File size formula for text

QuantityFormulaExample
File size in bitscharacters × bits-per-character50 chars × 7 = 350 bits (ASCII)
File size in bytesbits ÷ 8350 ÷ 8 = 43.75 → 44 bytes
File size doubles if…you switch from 8-bit to 16-bit50 chars × 16 = 800 bits = 100 bytes
§5 · Worked examples

Watch each conversion done step by step

Worked example 1 · Convert a character to its ASCII code

Give the ASCII denary code for the character D.

Anchor: A = 65 D is the 4th letter of the alphabet. So D = 65 + (4 − 1) = 65 + 3 = 68 Answer: 68 Check the 7-bit binary: 68 = 64 + 4 = 1000100 D = 68 (denary) = 1000100 (binary)

Worked example 2 · Uppercase vs lowercase

Give the ASCII code for the character d (lowercase).

Anchor: a = 97 d is the 4th letter of the alphabet. So d = 97 + (4 − 1) = 97 + 3 = 100 Answer: 100 Key insight: lowercase codes = uppercase code + 32. D = 68 → d = 68 + 32 = 100 ✓

Worked example 3 · File size calculation

A message contains 200 characters. Calculate the file size in bytes (a) using ASCII, and (b) using 16-bit Unicode.

(a) ASCII uses 7 bits per character (or 8 bits if stored as full bytes). Using 8-bit storage: 200 chars × 8 bits = 1600 bits 1600 ÷ 8 = 200 bytes (b) Unicode 16-bit uses 16 bits per character: 200 chars × 16 bits = 3200 bits 3200 ÷ 8 = 400 bytes Answer: (a) 200 bytes, (b) 400 bytes. Unicode doubles the file size vs 8-bit ASCII.
§6 · Common misconceptions

Traps that cost marks every session

Trap · Giving a "difference" when asked for an "advantage" (or disadvantage)

If Cambridge ask for the advantage of Unicode over ASCII, saying "Unicode uses more bits" is a difference, not an advantage. The advantage is what that difference enables — "represents more characters / more languages / all world scripts". Same trap in reverse for disadvantages.

Cited: 2024 Nov examiner report — "some candidates just gave a difference between the two, for example, they stated that Unicode uses more bits than ASCII but did not give the advantage of this"

Trap · Uppercase and lowercase have the same code

'A' and 'a' are two different characters with two different codes. A = 65, a = 97. The difference is exactly 32 (0100000 in binary — the sixth bit flipped). Never treat them as interchangeable.

Cited: recurring pattern

Trap · Digit '5' equals denary value 5

The character '5' has ASCII code 53, not 5. The characters '0' to '9' are stored using their character codes (48 to 57), not the numeric value. If you want the number 5 you store it as binary 101; if you want the digit character '5' you store 53.

Cited: recurring pattern

Trap · Bit-count confusion (7 vs 8)

ASCII is defined as 7 bits per character (128 codes). Extended ASCII is 8 bits (256). Cambridge accept 7 or 8 for ASCII in questions where 8-bit storage is assumed, but be clear on which you're using.

Cited: 2023 examiner report — "some candidates gave an answer in different quantities of bits (for example 7 bits) which was acceptable"

Trap · Confusing Unicode with encoding schemes

Unicode is the character set (the codebook). UTF-8, UTF-16, UTF-32 are encoding schemes that store Unicode codes in bytes. For Cambridge, just say Unicode uses more bits per character than ASCII.

Cited: syllabus-focus clarification

Trap · Forgetting the file size doubles argument

Unicode's main disadvantage in Cambridge questions is larger file size for the same text. If ASCII uses 8 bits and Unicode 16, the file doubles in size. State this explicitly, not as "more bits".

Cited: 2024 Nov examiner report — same trap as advantages
§7 · Cambridge exam focus

Mark-scheme templates

These are the exact phrasings Cambridge accept. Learn them.

"A character set is a set of codes/numbers representing characters" — the definition
"ASCII uses 7 bits per character and can represent 128 characters" — ASCII definition
"Unicode uses more bits per character than ASCII" — the difference (structural)
"Unicode can represent more characters / more languages / all world scripts" — the advantage
"Unicode files are larger in size for the same text" — the disadvantage
"Characters in ASCII are ordered sequentially (A=65, B=66…)" — sequential ordering
Never write: Unicode uses more bits (as advantage) · uppercase = lowercase · digit '5' = value 5
§8 · Quick knowledge check

Check yourself — tap to reveal (0/6)

Answer these in your head, then tap to see the model answer. Aim for 5 or 6 right before moving on.

Q1 · What is a character set?
A set of codes/numbers, each representing a specific character.
Q2 · How many bits per character does ASCII use, and how many characters can it represent?
7 bits per character → 128 characters. (Extended ASCII: 8 bits → 256.)
Q3 · If A is 65, what is F?
F is the 6th letter, so F = 65 + 5 = 70.
Q4 · Give one advantage of Unicode over ASCII.
Represents more characters / covers more languages / includes all world scripts. NOT "uses more bits" (that's a difference, not an advantage).
Q5 · Give one disadvantage of Unicode over ASCII.
Larger file size for the same text. NOT "uses more bits" (that's still a difference, not a disadvantage).
Q6 · What ASCII code represents the digit character '5'?
53 (not 5). Digit '0' = 48, so digit '5' = 48 + 5 = 53.
🚀 Ready for Activities
If you can answer 5 of the 6 knowledge checks above, you're ready to move on. Tap 🎓 Learn for the interactive ASCII Explorer, then 🎮 Activities to practise.
The codebook idea

How text becomes binary

📖

Character set = codebook

A shared codebook where every character (letter, digit, symbol) has a unique number.

🔢

Each character → code

The letter 'A' has code 65. Store 65 in binary (7 or 8 bits). Reader looks up 65 in the same codebook → gets 'A' back.

🌐

Two main codebooks

ASCII: small, 128 chars, 7 bits. Unicode: huge, all world scripts, 16+ bits.

Signature interactive · ASCII Explorer

Type any short text — see the encoding

Type a word (or a single character). Each character is looked up in ASCII and shown with its denary code and 8-bit binary.

Text to encode (letters, digits, and space)

Notice the sequential ordering: adjacent letters have adjacent codes. And case matters: 'A' = 65, 'a' = 97 (exactly 32 apart).

Inline trap · Character '5' ≠ number 5

Type "5" above. Its ASCII code is 53, not 5. The digit characters '0'–'9' use codes 48–57.

Cited: recurring pattern
ASCII sequential ordering

Uppercase letters A–H at a glance

A
= 65
B
= 66
C
= 67
D
= 68
E
= 69
F
= 70
G
= 71
H
= 72

Same pattern for lowercase (a = 97) and digits ('0' = 48). Learn the three anchors — 65 · 97 · 48 — and you can find any code by counting.

Unicode

The world's codebook

🌍

What is Unicode?

A single character set covering every world script — Greek, Chinese, Arabic, Cyrillic, Devanagari, emoji, mathematical symbols. Uses more bits per character than ASCII (typically 16, up to 32).

⚖️

The trade-off

Advantage: represents more characters / more languages / all world scripts.
Disadvantage: file size doubles compared to 8-bit ASCII for the same text.

Inline trap · Advantage vs difference

"Unicode uses more bits" is a difference. To get the advantage mark, state what that enables: "more characters / more languages / all world scripts". Same for disadvantage: not "more bits", but "larger file size".

Cited: 2024 Nov examiner report — verbatim
File size calculation

How big is a text file?

📐 Formula

File size (bits) = number of characters × bits per character

File size (bytes) = file size in bits ÷ 8

🔢 Example

A 200-character message stored using 8-bit ASCII:

200 × 8 = 1600 bits = 200 bytes

The same message stored using 16-bit Unicode:

200 × 16 = 3200 bits = 400 bytes (twice as large)

Cambridge syntax reference

How Cambridge phrase these questions

"Give the ASCII denary code for the character X." — 1 mark. Count from anchor.
"State the number of bits ASCII uses per character." — 1 mark. 7 (or 8 for extended).
"Give one advantage of Unicode over ASCII." — 1 mark. Reference more characters / languages / world scripts — NOT "more bits".
"Give one disadvantage of Unicode over ASCII." — 1 mark. Reference larger file size — NOT "more bits".
"Calculate the file size of a text of N characters using X-bit encoding." — 1–2 marks. Show N × X (bits) and ÷ 8 (bytes).
"Give an example of a character set." — 1 mark. ASCII or Unicode.
Working quick check

One more sanity check

A student writes: "Unicode uses more bits than ASCII" as an advantage of Unicode. Is this a valid advantage?

Yes — that is the advantage
No — that is a difference, not an advantage
Only if paired with a disadvantage
Only in extended ASCII contexts

Activity 1 — Character to ASCII Drill easy

Given a character, type its ASCII denary code.

Press New Question.

Stretch: 5 in a row across uppercase, lowercase, and digits.

Activity 2 — String Encoder medium

Given a short word, type the space-separated ASCII codes for each character.

Press New Question.

Stretch: keep case in mind — 'H' and 'h' have different codes.

Activity 3 — Spot the Mistake medium

Which statement about character sets is WRONG?

Press New Question.

Stretch: explain out loud why the wrong statement is wrong, using mark-scheme phrasing.

Activity 4 — File Size Calculator medium

Given the character count and encoding, compute the file size.

Press New Question.

Stretch: can you predict the byte count before submitting?

Activity 5 — 60-second Sprint exam

Answer as many text-representation questions as you can in 60 seconds.

60Seconds left
0Correct
0Personal best

Press Start Sprint to begin.

Stretch: beat your personal best twice in a session.

Adaptive practice

Weak skills come round twice as often. No question repeats immediately. 20 questions across 8 skills.

All Easy Medium Exam

Press New Question.

Cambridge-style exam questions

12 questions in Cambridge Paper 1 style. Every question cites its source. Write your answer, then click Mark for keyword scoring.

Press New Question to begin.

Quick review quiz

Press New Question.

Exam traps — confirmed by examiners

Every trap below is drawn from a real Cambridge examiner report or a recurring pattern flagged across multiple sessions.

Trap 1 · Advantage/disadvantage vs difference

"Unicode uses more bits" is a difference. For advantage, say "more characters / languages / world scripts". For disadvantage, say "larger file size".

Cited: 2024 Nov verbatim — "some candidates just gave a difference between the two, for example, they stated that Unicode uses more bits than ASCII but did not give the advantage of this"

Trap 2 · 'A' and 'a' treated as same code

A = 65, a = 97. Different characters, different codes. Difference is 32.

Cited: recurring pattern

Trap 3 · Digit character vs numeric value

The character '5' has ASCII code 53, not 5. Digits '0' to '9' use codes 48 to 57.

Cited: recurring pattern

Trap 4 · Bit-count confusion (7 vs 8)

ASCII defined as 7 bits (128 codes). Extended ASCII: 8 bits (256). Cambridge accept either for ASCII when 8-bit storage is assumed.

Cited: 2023 verbatim — "some candidates gave an answer in different quantities of bits (for example 7 bits) which was acceptable"

Trap 5 · Unicode confused with UTF-8/16/32

Unicode is the character set (codebook). UTF-8/16/32 are encoding schemes. For Cambridge just say Unicode uses more bits per character than ASCII.

Cited: syllabus clarification

Trap 6 · Forgetting the file-size doubling

Unicode's main disadvantage in Cambridge questions is larger file size for the same text. Say "larger file size", not "more bits".

Cited: 2024 Nov examiner focus

Trap 7 · Character set example not given

If asked to give an example of a character set, name one: ASCII (or Unicode). Don't just describe what a character set is.

Cited: 2024 verbatim — "the most common correct answer that was awarded was a correct example of a character set, for example ASCII"

Trap 8 · File size given in wrong unit

Read the question. If it asks for bytes, divide bits by 8. If it asks for bits, don't divide. Wrong unit = zero marks.

Cited: recurring exam-technique flag

Trap 9 · Sequential ordering claimed but not applied

If A=65 and D is 4 letters later, D = 68 not 69. Count the gap from the anchor (A to D is +3, not +4).

Cited: recurring counting-slip pattern

Memory triggers

🧠 "Three anchors: 65 · 97 · 48"

A=65 · a=97 · '0'=48. Learn these three anchors and you can find any letter or digit code by counting.

🧠 "Lowercase = uppercase + 32"

A=65 → a=97 (diff 32). B=66 → b=98 (diff 32). Always +32 for the case shift.

🧠 "Advantage says WHAT it enables"

Not "more bits" (that's a difference). Say what having more bits gives you: more characters / languages / world scripts.

🧠 "Digit '5' = 53"

The character '5' is stored as its ASCII code (53), not as the value 5. Numeric value and character code are different things.

🧠 "Chars × bits ÷ 8 = bytes"

File size formula. Multiply characters by bits-per-character to get bits. Divide by 8 for bytes.

🧠 "Codebook, not encoding"

Unicode is the codebook (character set). UTF-8/16 are encodings (how the codes are stored). For Cambridge, just say Unicode uses more bits per character.

Skill grid — tap any badge to override

Green ≥ 70% · Yellow 30–69% · Grey untried. Tap any cell to manually mark a skill as mastered.

Revision checklist

Ten items. Tap each once you're confident. When all 10 are ticked, 1.3A is mastered.

💔 Mistake Tracker

Learn from mistakes

Every wrong answer is logged. See your weak areas and turn them into vault entries.

Mistake log

📊 Progress

Your 1.3A progress

Track accuracy, streaks, and mastery in one place.

Overall statistics

0%Accuracy
0Answered
0Streak

Performance chart

🔖 Bookmarks

Saved Bookmarks

Quick links to questions and activities you want to revisit.

Your bookmarks

📝 My Notes

Your personal notes

Jot down anything useful during your session — questions, mnemonics, or gaps you want to come back to.

Add a note

Title
Note

Saved notes

🗄️ Knowledge Vault

Exam Knowledge Vault

Store definitions, mark-scheme points, model answers, and common mistakes.

Add exam information

Category
Confidence
Title
Exam information

Vault entries