Boolean Logic Diagrams (OCR GCSE Computer Science)

Revision Note

Flashcards
Robert Hampton

Expertise

Computer Science Content Creator

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 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

and-gate

Returns TRUE only if both inputs are TRUE 

TRUE AND TRUE = TRUE

Otherwise = FALSE

OR (Disjunction)

Symbol

Circuit symbol

Explanation

A ∨ B

or-gate

Returns TRUE if either input is TRUE 

TRUE OR FALSE = TRUE 

FALSE OR FALSE = FALSE

NOT (Negation)

Symbol

Circuit symbol

Explanation

¬ A

not-gate

Reverses the input value

NOT TRUE = FALSE

NOT FALSE = TRUE

Exam Tip

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

and-gate

A

B

A ^ B

0

0

0

0

1

0

1

0

0

1

1

1

OR (Disjunction) 

Circuit symbol

Truth Table

or-gate

A

B

A V B

0

0

0

0

1

1

1

0

1

1

1

1

NOT (Negation) 

Circuit symbol

Truth Table

not-gate

A

¬A

0

1

1

0

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 0 free revision notes

Get unlimited access

to absolutely everything:

  • Downloadable PDFs
  • Unlimited Revision Notes
  • Topic Questions
  • Past Papers
  • Model Answers
  • Videos (Maths and Science)

Join the 100,000+ Students that ❤️ Save My Exams

the (exam) results speak for themselves:

Did this page help you?

Robert Hampton

Author: Robert Hampton

Rob has over 16 years' experience teaching Computer Science and ICT at KS3 & GCSE levels. Rob has demonstrated strong leadership as Head of Department since 2012 and previously supported teacher development as a Specialist Leader of Education, empowering departments to excel in Computer Science. Beyond his tech expertise, Robert embraces the virtual world as an avid gamer, conquering digital battlefields when he's not coding.