4.7: Character Sets & Data Types
Eduqas / WJEC
What is a Character Set?
A character set is a table that matches together a character and a binary value.
Character sets are necessary as they allow computers to exchange data.
Two common character sets are ASCII and Unicode.
(American Standard Code for Information Interchange)
Tiny Set of Characters
Less Memory Required per Character
Large Set of Characters
More Memory Required per Character
What are the different data types?
When programming, variables should be given appropriate data types.
A single character, such as a letter, number or punctuation symbol.
A sequence of characters, including letters, numbers and punctuation.
A whole number.
Ice Age 4
Telephone numbers are always stored as a string, not an integer.
True / False
Yes / No
0 / 1
An answer that only has two possible values.
A decimal number.
Be careful with punctuation.
32.10 is a real but £32.10 is a string.
4.7 - Character Sets & Data Types:
1. What is a character set and why are they needed? 
2. Describe 3 differences between ASCII and Unicode. 
3. State the 5 different data types. 
4. State which data type is most suitable for the following variables:
a. Age 
b. Surname 
c. Height (in metres) 
d. First Initial 
e. Phone number 
f. Right-Handed?