Binary and data representation - EdexcelCharacters

All data in a computer is represented in binary, whether it is numbers, text, images or sound. The computer software processes the data according to its content.

Part ofComputer SciencePrinciples of computer science

Characters

Computers can only recognise . As a result, all characters - whether they are letters, punctuation or numbers - are stored as binary numbers. All of the characters that a computer can use are called a .

One of the standards in common use is the

How computers encode characters using 7-bit ASCII

ASCII uses seven , giving a character set of 128 characters. The characters are represented in a table, called the ASCII table. The 128 characters include:

  • 32 control codes - mainly to do with printing
  • 32 punctuation codes, symbols, and space
  • 26 upper case letters
  • 26 lower case letters
  • numeric digits 0-9

In ASCII, each character has its own assigned number. For example:

CharacterDenaryBinaryHexadecimal
A65100000141
Z9010110105A
a97110000161
z12211110107A
048011000030
957011100139
Space32010000020
!33010000121
CharacterA
Denary65
Binary1000001
Hexadecimal41
CharacterZ
Denary90
Binary1011010
Hexadecimal5A
Charactera
Denary97
Binary1100001
Hexadecimal61
Characterz
Denary122
Binary1111010
Hexadecimal7A
Character0
Denary48
Binary0110000
Hexadecimal30
Character9
Denary57
Binary0111001
Hexadecimal39
CharacterSpace
Denary32
Binary0100000
Hexadecimal20
Character!
Denary33
Binary0100001
Hexadecimal21

When data is stored or transmitted, it is its ASCII number that is used to represent the character.

For example, the word ‘Computer’ would be represented as:

1000011 1101111 1101101 1110000 1110101 1110100 1100101 1110010

Question

What would this message say?

1001000 1100101 1101100 1101100 1101111 0100001

Extended ASCII

Extended ASCII uses eight bits, giving a character set of 256 characters. This allows for special characters such as those with accents in languages such as French and Spanish.