An automated emergency shutdown system for a steam turbine is monitored by sensors PPP, QQQ, RRR, SSS, TTT, and UUU. The system triggers a shutdown when the output Z Z\,Z is high, governed by the Boolean logic expression:
Z=(P AND NOT Q) OR (R AND S AND NOT T) OR (U AND P) Z = (P \text{ AND } \text{NOT } Q) \text{ OR } (R \text{ AND } S \text{ AND } \text{NOT } T) \text{ OR } (U \text{ AND } P) Z=(P AND NOT Q) OR (R AND S AND NOT T) OR (U AND P)Determine the number of rows, excluding any headings, required to construct a complete truth table for this logic expression.
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.