Boolean Logic Diagrams (OCR GCSE Computer Science): Revision Note
Exam code: J277
What is Boolean logic?
Boolean logic is used in computer science and electronics to make logical decisions
Boolean operators are either TRUE or FALSE, often represented as 1 or 0
Inputs and outputs are given letters to represent them
To define Boolean logic we use special symbols to make writing expressions much easier
AND Gates, OR Gates & NOT Gates
What are logic gates?
Logic gates are a visual way of representing a Boolean expression
The logic gates covered in this course are:
AND
OR
NOT
AND (Conjunction)
Symbol | Circuit symbol | Explanation |
A ∧ B | ![]() | Returns TRUE only if both inputs are TRUE TRUE AND TRUE = TRUE Otherwise = FALSE |
OR (Disjunction)
Symbol | Circuit symbol | Explanation |
A ∨ B | ![]() | Returns TRUE if either input is TRUE TRUE OR FALSE = TRUE FALSE OR FALSE = FALSE |
NOT (Negation)
Symbol | Circuit symbol | Explanation |
¬ A | ![]() | Reverses the input value NOT TRUE = FALSE NOT FALSE = TRUE |
Examiner Tips and Tricks
In the exam you can use any valid notation in Boolean expression question.
T/F or 1/0 or V for OR etc...
What is a truth table?
A truth table is a tool used in logic and computer science to visualise the results of Boolean expressions
They represent all possible inputs and the associated outputs for a given Boolean expression
AND (Conjunction)
Circuit symbol | Truth Table | |||||||||||||||
![]() |
|
OR (Disjunction)
Circuit symbol | Truth Table | |||||||||||||||
![]() |
|
NOT (Negation)
Circuit symbol | Truth Table | ||||||
![]() |
|
Worked Example
Describe the purpose of a truth table [2]
Answer
To show all possible inputs (to the logic circuit)
...and the associated/dependant output (for each input)
Guidance
Must be clear that the output is linked to the input values given
"All possible combinations of inputs and outputs" only gets 1 mark
You've read 0 of your 5 free revision notes this week
Unlock more, it's free!
Did this page help you?