Boolean logic
7
0/4

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]

Boolean logic Questions

Practise OCR GCSE Computer Science Boolean logic with exam-style questions for GCSE Computer Science. 27 questions, matched to the OCR GCSE Computer Science (J277) specification and written in Component 01 and Component 02 style. Every question includes a full worked solution and mark scheme, so you can see where marks are awarded rather than just whether you got the answer right.

PreviousNext

Boolean logic Questions

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