An automated climate control system in a vertical farm regulates ventilation (output YYY) using three binary sensor inputs:
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.
| P | Q | R | Y |
|---|---|---|---|
| 0 | 0 | 0 | |
| 0 | 0 | 1 | |
| 0 | 1 | 0 | |
| 0 | 1 | 1 | |
| 1 | 0 | 0 | |
| 1 | 0 | 1 | |
| 1 | 1 | 0 | |
| 1 | 1 | 1 |
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.