Question bank › GCSE Computer Science › Boolean logic

Boolean logic: gates, truth tables, logic diagrams

Answer on paper first, then reveal the mark scheme one mark at a time.

1Grade 1–33 marks

The diagram shows three logic gates.

Name each gate. [3]

Gate 1Gate 2Gate 3
2Grade 4–52 marks

Complete the truth table for Q = NOT (A AND B).

ABQ
00
01
10
11

[2]

3Grade 4–54 marks

Look at the logic circuit.

(a) Write the Boolean expression for output P. [2]

(b) State the value of P when A = 1, B = 0, C = 0. [1]

(c) State the value of P when A = 0, B = 1, C = 1. [1]

ABCP
4Grade 6–74 marks

Complete the truth table for Q = (A OR B) AND NOT C.

ABCA OR BNOT CQ
000
001
010
011
100
101
110
111

[4]

5Grade 6–73 marks

Describe how a logic circuit for X = (NOT (A OR B)) AND C would be drawn. You should name each gate and its inputs. [3]

6Grade 6–75 marks

An alarm (S) sounds if the door is open (D) and the system is armed (A), or if the panic button (P) is pressed.

(a) Write a Boolean expression for S. [3]

(b) State whether the alarm sounds when D = 1, A = 0, P = 0. [1]

(c) There are 8 possible combinations of D, A and P. State how many of these make the alarm sound. [1]

Still losing marks on this topic?

Book a free introductory session and we'll find exactly which step is costing you.

Book a free intro