Question bank › GCSE › GCSE Computer Science › Boolean logic

Boolean logic: gates, truth tables, logic diagrams

10 questions39 marksabout 45 min

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
Stuck on Boolean logic: gates, truth tables, logic diagrams?

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

7Grade 1–33 marks

The truth table shows the output Q of a single logic gate with inputs A and B.

ABQ
000
011
101
111

(a) State the name of this logic gate. [1]

(b) Write the Boolean expression for Q. [1]

(c) The gate is replaced by a NOT gate with the single input A. State the output of the NOT gate when A = 1. [1]

8Grade 6–75 marks

The logic diagram shows a circuit with inputs A, B and C and output Q. The two gates are labelled G1 and G2.

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

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

(c) The circuit is to be edited so that the output becomes Q = (A AND NOT B) OR C. Describe the change that must be made to the logic diagram. [2]

ABCQG1G2
9Grade 4–54 marks

A student has completed a truth table for the expression Q = A AND (B OR C). Two of the output values are incorrect.

ABCQ
0000
0010
0100
0111
1001
1011
1101
1111

(a) Explain why the output Q must be 0 whenever A = 0. [1]

(b) Identify the two rows that are incorrect and give the correct output for each. [2]

(c) State how many of the 8 input combinations give Q = 1 in the correct truth table. [1]

10Grade 8–96 marks

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

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

(b) Complete the truth table for the circuit. The columns are: A, B, C, NOT B, A AND NOT B, NOT A, NOT A AND C, and Q. [2]

ABCNOT BA AND NOT BNOT ANOT A AND CQ
000
001
010
011
100
101
110
111

(c) Explain why Q can never be 1 when A = 1 and B = 1. [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