2.4.1 Boolean logic Practice Questions
GCSE · Paper 2 · Computational thinking, algorithms and programming · 10 practice questions · 36 marks
Exam questions for 2.4.1 Boolean logic
10 practice questions (36 marks) with mark schemes
Answer each question, reveal the mark scheme, then award yourself marks. Scores and answers are saved in this browser so you can see which topics need more work.
Practice questions
- Question 1Practice question · J277/02 style3 marks
State the output of each gate. (a) The inputs to an AND gate are A = 1 and B = 0. [1] (b) The inputs to an OR gate are A = 1 and B = 0. [1] (c) The input to a NOT gate is A = 1. [1]
Show mark scheme
(a) 0 (1) (b) 1 (1) (c) 0 (1)
Mark yourself: how many marks did you get?/ 3 - Question 2Practice question · J277/02 style2 marks
Complete the truth table for the OR gate. The first row is done for you.
A B Q = A OR B 0 0 0 0 1 ? 1 0 ? 1 1 ? Show mark scheme
A B Q 0 0 0 0 1 1 1 0 1 1 1 1 All three missing values correct (2). Two correct (1).
Mark yourself: how many marks did you get?/ 2 - Question 3Practice question · J277/02 style3 marks
Describe the NOT gate. Include what its symbol looks like and what the gate does. [3]
Show mark scheme
The symbol is a triangle (pointing along the line towards the output) (1) With a small circle at the point / at the output (1) It has one input and one output, and the output is the opposite of the input / a 1 becomes 0 and a 0 becomes 1 (1)
Mark yourself: how many marks did you get?/ 3 - Question 4Practice question · J277/02 style3 marks
A logic diagram is described. Input A goes into a NOT gate. The output of the NOT gate and input B go into an AND gate. The output of the AND gate and input C go into an OR gate. The output of the OR gate is Q. Write the expression for Q. [3]
Show mark scheme
Q = (NOT A AND B) OR C NOT A (1) (NOT A) AND B (1) Joined to C with OR, giving the whole expression (1) Accept the same expression in other notation, for example Q = (¬A ∧ B) ∨ C. Accept Q = ((NOT A) AND B) OR C.
Mark yourself: how many marks did you get?/ 3 - Question 5Practice question · J277/02 style4 marks
Complete the truth table for Q = NOT A AND B. Write the missing values in the NOT A column and the Q column.
A B NOT A Q 0 0 ? ? 0 1 ? ? 1 0 ? ? 1 1 ? ? Show mark scheme
A B NOT A Q 0 0 1 0 0 1 1 1 1 0 0 0 1 1 0 0 NOT A column all correct (2). Three of the four correct (1). Q column all correct (2). Three of the four correct (1). Award the Q marks if Q is correct from the student's own NOT A column.
Mark yourself: how many marks did you get?/ 4 - Question 6Practice question · J277/02 style5 marks
Complete the truth table for Q = (A OR B) AND NOT C.
A B C A OR B NOT C Q 0 0 0 ? ? ? 0 0 1 ? ? ? 0 1 0 ? ? ? 0 1 1 ? ? ? 1 0 0 ? ? ? 1 0 1 ? ? ? 1 1 0 ? ? ? 1 1 1 ? ? ? Show mark scheme
A B C A OR B NOT C Q 0 0 0 0 1 0 0 0 1 0 0 0 0 1 0 1 1 1 0 1 1 1 0 0 1 0 0 1 1 1 1 0 1 1 0 0 1 1 0 1 1 1 1 1 1 1 0 0 A OR B column all correct (2), one or two wrong values (1). NOT C column all correct (1). Q column all correct (2), one or two wrong values (1). Award the Q marks if Q is correct from the student's own working columns.
Mark yourself: how many marks did you get?/ 5 - Question 7Practice question · J277/02 style4 marks
A garden light turns on (L = 1) in two cases. It turns on when it is dark (D = 1) and a movement sensor is triggered (M = 1). It also turns on whenever a manual switch is on (S = 1). (a) Write an expression for L using AND and OR. [2] (b) State the value of L when D = 1, M = 0 and S = 0. [1] (c) State the value of L when D = 0, M = 0 and S = 1. [1]
Show mark scheme
(a) L = (D AND M) OR S D AND M (1) Joined to S with OR (1) (b) 0 (1). Method: D AND M is 1 AND 0, which is 0. S is 0. 0 OR 0 is 0. (c) 1 (1). Method: D AND M is 0. S is 1. 0 OR 1 is 1.
Mark yourself: how many marks did you get?/ 4 - Question 8Practice question · J277/02 style6 marks
A burglar alarm sounds (S = 1) when the system is armed (A = 1) and either the door sensor (D = 1) or the window sensor (W = 1) is triggered. (a) Write an expression for S. [2] (b) Complete the truth table. [4]
A D W D OR W S 0 0 0 ? ? 0 0 1 ? ? 0 1 0 ? ? 0 1 1 ? ? 1 0 0 ? ? 1 0 1 ? ? 1 1 0 ? ? 1 1 1 ? ? Show mark scheme
(a) S = A AND (D OR W) D OR W in brackets (1) Joined to A with AND (1) (b)
A D W D OR W S 0 0 0 0 0 0 0 1 1 0 0 1 0 1 0 0 1 1 1 0 1 0 0 0 0 1 0 1 1 1 1 1 0 1 1 1 1 1 1 1 D OR W column all correct (2), one or two wrong values (1). S column all correct (2), one or two wrong values (1). Award the S marks if S is correct from the student's own working column.
Mark yourself: how many marks did you get?/ 6 - Question 9Practice question · J277/02 style2 marks
A truth table for two inputs A and B shows these results for Q.
A B Q 0 0 1 0 1 1 1 0 0 1 1 1 Which of these expressions gives this table? Show how you know.
P NOT A AND B R NOT A OR B S A AND NOT B Show mark scheme
Expression R, NOT A OR B (1) A correct check, for example: when A = 1 and B = 0, NOT A is 0 and B is 0, so NOT A OR B is 0, which matches the table. / when A = 0 and B = 0, NOT A is 1, so NOT A OR B is 1, which matches the table (1) Accept a reason that rules out P or S, for example: P gives 0 when A and B are both 0, but the table gives 1.
Mark yourself: how many marks did you get?/ 2 - Question 10Practice question · J277/02 style4 marks
A student writes a truth table using T for true and F for false. (a) State what the letters T and F stand for if the table were written with numbers. [1] (b) Complete the table for Q = A OR NOT B. [3]
A B NOT B Q F F ? ? F T ? ? T F ? ? T T ? ? Show mark scheme
(a) T is 1 (true) and F is 0 (false) (1) (b)
A B NOT B Q F F T T F T F F T F T T T T F T NOT B column all correct (1). Q column: all four correct (2), three correct (1). Accept 1 and 0 in place of T and F.
Mark yourself: how many marks did you get?/ 4
- •Practice answering questions under timed conditions
- •Check your answers against the mark scheme carefully
- •Focus on understanding the marking points, not just memorising answers
- •Come back to the questions you dropped marks on a few days later