AQA · GCSE · Computer Science
Course version: 8525 · Version from Sept 2020
Data types: Boolean
In AQA 8525 section 3.2.1, 'Boolean' is a data type you must recognise and select.
Checked against the AQA 8525 specification (opens in a new tab) on .
- Point 5 of 7
Study notes
From the checked teaching notes for this specification point.
The idea
In AQA 8525 section 3.2.1, 'Boolean' is a data type you must recognise and select. A Boolean holds one of only two values: true or false. It is used where a condition has exactly two possible states, such as whether a switch is on, whether a pupil has passed, or whether a password matches. Contrast it with integer and real, which store numbers, and with character and string, which store text. When a question asks which data type suits a value, look for a yes/no or true/false condition; if the answer can only be true or false, choose Boolean. Do not choose Boolean for a value that could take many values, such as an age or a name.
What earns the marks
- Recognises that a Boolean stores only one of two values: true or false.
- Identifies situations with exactly two states, such as on/off or pass/fail, as suited to Boolean.
- Distinguishes Boolean from numeric types (integer, real) and text types (character, string).
- Rejects Boolean for values that can take many possible values, such as an age or a name.
Common mistakes and how to put them right
Treating Boolean as a number type.
Put it right by remembering it stores only true or false.
Choosing Boolean for a value with many possibilities, such as an age.
Put it right by reserving Boolean for two-state conditions only.
Confusing Boolean with string text such as the words 'yes' or 'no'.
Put it right by noting Boolean stores the logical values true and false.
Exam tips
- Look for a two-state condition (true/false, on/off, pass/fail) before selecting Boolean.
- Eliminate numeric and text options first, then confirm the remaining choice is Boolean.
- Check that the value cannot take more than two states, because that rules Boolean out.
Try the lesson
The start of the Data types: Boolean lesson, made from checked teaching notes for this specification point.
Have a go first
A variable is used to record whether a light is switched on. Which data type is most suitable for storing this on/off state?
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: Boolean
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