Skip to content

Course home

Boolean logic

Boolean logic

EasyMedium
123
Question 1

An automated climate control system in a vertical farm regulates ventilation (output YYY) using three binary sensor inputs:

  • PPP: temperature limit exceeded (P=1P = 1P=1 if high, P=0P = 0P=0 if normal)
  • QQQ: humidity limit exceeded (Q=1Q = 1Q=1 if high, Q=0Q = 0Q=0 if normal)
  • RRR: airflow level low (R=1R = 1R=1 if low, R=0R = 0R=0 if normal)

The system activates the output ventilation sub-unit according to the Boolean logic expression:

Y=(P AND NOT Q) OR (NOT P AND R) Y = (P \text{ AND } \text{NOT } Q) \text{ OR } (\text{NOT } P \text{ AND } R) Y=(P AND NOT Q) OR (NOT P AND R)

Complete the truth table for the output YYY.

PQRY
000
001
010
011
100
101
110
111
[4]
Markscheme

Boolean logic Questions

  1. GCSE
  2. /Computer Science
  3. /Boolean logic

15 exam-style questions on OCR GCSE Computer Science Boolean logic. Each one has a worked solution and a mark scheme showing where the marks go.

Question bank