← AQA GCSE

Boolean logic: AQA GCSE practice

AND, OR, NOT, truth tables and gates. 13 questions in the style of the AQA GCSE exam.

Sample questions

What is the value of `True and False`?

  1. True
  2. False
  3. None
  4. An error

Write a program that reads two whole numbers, one per line. Print `Both positive` if both are greater than 0, `One positive` if exactly one is greater than 0, and `None positive` otherwise.

When does an OR gate output 1?

  1. When at least one input is 1
  2. Only when both inputs are 1
  3. Only when both inputs are 0
  4. When exactly one input is 0