Text: ASCII and Unicode Cambridge IGCSE Computer Science revision

Not started

Learn it

In plain words

A computer cannot store the letter A. It stores a number, and everyone agrees which number means which character. That agreed list is a character set.

When you press a key, the code for that character is what gets stored, in binary.

5 things to know

  1. A character set is all the characters a computer can represent, each with its own unique binary code.
  2. ASCII uses 7 bits for each character, which gives 128 different codes: enough for the English alphabet, digits and common symbols. Extended ASCII uses 8 bits for 256.
  3. Unicode uses more bits for each character, so it has room for far more: the alphabets of many languages, mathematical symbols and emojis.
  4. Because Unicode uses more bits for each character, the same text can take up more storage.
  5. The codes run in order. In ASCII, A is 65, B is 66 and C is 67. Lower-case letters have their own codes: a is 97.

Worked example

The ASCII code for the letter A is 65. Find the 8-bit binary code that stores the letter E.

  1. The codes go up in alphabetical order. E is four letters after A.
  2. 65 + 4 = 69.
  3. 69 = 64 + 4 + 1, which is 01000101.

Tips and tricks

  • Compare the two the right way round: Unicode can represent more characters because it uses more bits per character.
  • The character '7' is not stored as the number 7. Digits typed as text have character codes of their own.
5 questions, about 2 minutes.

It lands in your notebook with its questions as flashcards.

Text: ASCII and Unicode: 5 questions and answers

These are the quiz’s questions. Do the quiz first, then come back here for the ones that got you.

  1. What is a character set?
    • a list of the fonts on a computer
    • all the characters a computer can represent, each with a unique code (the answer)
    • the keys on a keyboard
    • a way of compressing text

    Each character is matched to its own binary code.

  2. Standard ASCII uses 7 bits for each character. How many different characters can it represent?
    • 7
    • 64
    • 128 (the answer)
    • 256

    2 multiplied by itself seven times is 128.

  3. Why can Unicode represent more characters than ASCII?
    • It compresses each character.
    • It uses more bits for each character. (the answer)
    • It stores characters as pictures.
    • It only stores capital letters.

    More bits means more possible codes.

  4. The ASCII code for 'A' is 65. What is the code for 'D'?
    • 66
    • 67
    • 68 (the answer)
    • 69

    B is 66, C is 67 and D is 68.

  5. What is a drawback of Unicode compared with ASCII?
    • It cannot store English letters.
    • A character can need more bits, so files can be larger. (the answer)
    • It cannot be used on the internet.
    • It has fewer symbols.

    More bits for each character means more storage.

Still stuck on this one?Ask in the Papermunch Discord, or help someone else who is. Discord is for ages 13 and up.Join the server

Things you can type

Or go straight to

Or browse a shelf