Combining Boolean Operators (AQA GCSE Computer Science)

Revision Note

Robert Hampton

Expertise

Computer Science Content Creator

Combining Boolean Operators

  • Boolean operators can be combined to produce more complex expressions
  • The combination of two or more Boolean operators forms a logic expression
  • Brackets are used to clarify the order of operations
  • A logic diagram is a visual representation of combinations of Boolean operators within a logic circuit
  • An example would be Q = NOT(A OR B) // Q space equals open parentheses top enclose A plus B end enclose close parentheses

logic circuit1

  • In the diagram above, the inputs are represented by A and B
  • P is the output of the OR gate on the left and becomes the input of the NOT gate
  • Q is the final output of the logic circuit
  • This is a logic diagram for the Boolean expression Q = NOT(A OR B) // Q space equals space open parentheses top enclose A plus B end enclose close parentheses 

Exam Tip

You may be asked to draw a logic circuit from a logic statement or a Boolean expression OR write the logical expression that is expressed in the logic diagram using Boolean expression operators

Logic circuits will be limited to a maximum of three inputs and one output

Example of combining Boolean operators

10-boolean-logic

  • P = (A OR B) AND NOT C // P space equals space open parentheses A plus B close parentheses space. space top enclose C

Worked example

A green light (G) in a game switches on if all of the following conditions are true:

  • sensor D is off
  • sensor L is off
  • sensor W is on

Write a Boolean expression for this logic circuit.

You must use Boolean expression operators in your answer [3]

Answer

  • D̅. L̅. W // (D̅. W). (L̅. W) 

Guidance

  • 2 marks if fully correct but using different notation, e.g. NOT D AND NOT L AND W

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.