Question bank › GCSE › GCSE Computer Science › Computer systems

Boolean logic: truth tables, logic circuits & expressions

10 questions46 marksabout 55 min

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

1Grade 4–54 marks

(a) Complete the truth table for the three logic gates. [3]

ABA.BA + BA ⊕ B
00
01
10
11

(b) State the output of 1.0. [1]

2Grade 6–75 marks

The diagram shows a logic circuit.

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

(b) Complete the truth table for the circuit. [3]

ABCQ
000
001
010
011
100
101
110
111
ABCQ
3Grade 8–94 marks

A shop alarm (Q) sounds if the door is open (D = 1) and the system is set (S = 1), or at any time the panic button is pressed (P = 1).

(a) Write a Boolean expression for Q. [2]

(b) A student writes the expression Q = D.(S + P). Give one set of input values for D, S and P for which the student's expression gives a different output to the correct expression, and state both outputs. [2]

Stuck on Boolean logic: truth tables, logic circuits & expressions?

Get it sorted in a free 30-minute session

We work through your weakest questions on this topic on Zoom. I reply the same day.

4Grade 1–34 marks

The diagram shows four logic gate symbols, labelled Gate 1 to Gate 4.

(a) State the name of each gate. [2]

(b) Gate 2 has an input of 1. State its output. [1]

(c) Gate 4 has inputs of 1 and 0. State its output. [1]

Gate 1Gate 2Gate 3Gate 4
5Grade 4–54 marks

A logic circuit has three inputs, A, B and C, and output Q, where

Q = (A ⊕ B) . C

(a) State how many different combinations of input values the truth table for this circuit must contain. [1]

(b) Complete the truth table. [3]

ABCA ⊕ BQ
000
001
010
011
100
101
110
111
6Grade 4–54 marks

A logic circuit has inputs A, B and C and output Q, where

Q = A.B + C

(a) Draw a logic circuit for Q using standard gate symbols. [3]

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

7Grade 6–75 marks

The diagram shows a logic circuit with inputs A, B and C and output Q.

(a) Write a Boolean expression for Q. [2]

(b) Complete the rows of the truth table. [2]

ABCQ
001
011
101
110

(c) State the number of input combinations, out of all eight, for which Q = 1. [1]

ABCQ
8Grade 6–75 marks

A heating system turns the boiler on (H = 1) only when the thermostat reports that the room is cold (C = 1) and the timer is on (T = 1). If a window sensor detects an open window (W = 1), the boiler must stay off whatever the other inputs are.

(a) Write a Boolean expression for H. [2]

(b) Give the only combination of values of C, T and W for which H = 1. [1]

(c) State the two types of logic gate needed to build this circuit, and how many of each are needed. [2]

9Grade 8–95 marks

A student claims that an XOR gate can be replaced by a circuit built only from AND, OR and NOT gates, with output

Q = (A + B) . A.B

(a) Complete the truth table. [3]

ABA + BA.BA.BQ
00
01
10
11

(b) Use the truth table to explain whether the student's claim is correct. [2]

10Grade 8–96 marks

The diagram shows a logic circuit with inputs A, B and C and output Q. Input B is connected to two gates.

(a) Write a Boolean expression for Q. [2]

(b) Complete the truth table. [3]

ABCA + BB.CQ
000
001
010
011
100
101
110
111

(c) A technician replaces the final gate with an OR gate. State the number of rows of the truth table whose output changes. [1]

ABCQ

Stuck on this topic?

Book a free 30-minute session on WhatsApp and we'll find exactly which step is costing you the marks. Or build a timed paper on it.

Free 30-minute session