AQA · GCSE · Computer Science
Course version: 8525 · Version from Sept 2020
Data types: character
A character is a single symbol stored by a computer, such as a letter, digit, punctuation mark or space.
Checked against the AQA 8525 specification (opens in a new tab) on .
- Point 6 of 7
Study notes
From the checked teaching notes for this specification point.
The idea
A character is a single symbol stored by a computer, such as a letter, digit, punctuation mark or space. In AQA 8525 you must recognise that a character data type holds exactly one symbol, not a whole word or sentence. Each character is stored using a character code, for example ASCII or Unicode, so the letter A is held as a numeric code rather than as a picture of the letter. A useful test is to ask how many symbols are being stored: 'A' is one character, while 'Apple' is five characters and would be a string. When answering, distinguish the character itself from its code, and remember that a space or a digit such as 7 can also be a character.
What earns the marks
- A character is a single symbol, such as a letter, digit, punctuation mark or space.
- A character is stored using a character code such as ASCII or Unicode.
- A character holds exactly one symbol, whereas a string holds a sequence of characters.
- Digits and spaces can be characters, not only letters.
- The character value is distinct from the numeric code used to store it.
Common mistakes and how to put them right
Thinking a character can hold a whole word.
Put it right by stating that a word of several symbols is a string, and a character is exactly one symbol.
Confusing the character with its code.
Put it right by separating the symbol stored from the numeric code (such as ASCII or Unicode) used to represent it.
Assuming only letters count as characters.
Put it right by including digits, punctuation and spaces as single characters.
Exam tips
- Count the symbols in the value to decide whether it is a character or a string.
- Link the character to a character set such as ASCII or Unicode when explaining storage.
- Check whether the question asks for the symbol itself or the code that represents it.
Try the lesson
The start of the Data types: character lesson, made from checked teaching notes for this specification point.
Have a go first
A program needs to store a single letter entered by a user, such as 'K'. Which data type is most suitable?
There is more to this lesson
The full lesson goes on to check your understanding and help you earn the marks. Create a free account to carry on, with your progress saved.
A week of Premium from your first lesson · Then the free plan continues · No card, no charge
Test your understanding of Data types: character
Active recall beats re-reading. Take an instant quiz now to test what you’ve learned and lock it into long-term memory.
A week of Premium from your first lesson · Then the free plan continues · No card, no charge