Skip to main content
O-LevelComputer ScienceBoolean logic2210/22 · May/June 2024 · Q87 Marks

A logic circuit is to be built to control the opening of a safe used to store money. There are two keys, A and B, and a time switch C. The safe can only open if both keys are used and the time switch is off. [Table showing input states for key A, key B, time switch C, and safe X (output)]

  1. (a)Write the logic expression for this problem.[3]
  2. (b)Complete the truth table for this problem. [Blank truth table with columns A, B, C, X and rows for all combinations of 0s and 1s][4]

This question uses a diagram from the original paper, which isn't shown here. Open the full paper from the past papers archive to see it.

Mark scheme

Marking points from the official mark scheme (May/June 2024). The mark or mark type is shown in brackets.

  1. X = (A AND B) AND NOT C
  2. Four marks for 8 correct outputs
  3. Three marks for 6/7 correct outputs
  4. Two marks for 4/5 correct outputs
  5. One mark for 2/3 correct outputs
  6. A B C X
  7. 0 0 0 0
  8. 0 0 1 0
  9. 0 1 0 0
  10. 0 1 1 0
  11. 1 0 0 0
  12. 1 0 1 0
  13. 1 1 0 1
  14. 1 1 1 0

Write your answer and get it marked

On Oracle Prep you can write or photograph your own answer and have it marked by AI against this mark scheme, with feedback on what you missed.

Sign up free →

About this question

Topic
Boolean logic, O-Level Computer Science (syllabus 2210). Structured question, 7 marks.
Source
O-Level Computer Science, May/June 2024 Paper 2 Variant 2, question 8.

Questions and mark schemes are from past examination papers and remain the copyright of the exam board. How Oracle Prep builds its content

Related Computer Science questions

© 2026 Oracle Prep