Complete the Truth Table
Completion requirements
In this quiz, you are given partially completed truth tables.
Your task is to fill in the missing values using what you've learned about logic gates and Boolean expressions.
🔐 Scenario: Smart Home Security System
You’re designing a simple smart home security system. This system will trigger an alarm based on three conditions:
- M: Motion is detected (1 = Yes, 0 = No)
- D: Door is open (1 = Yes, 0 = No)
- W: Window is open (1 = Yes, 0 = No)
The Alarm (A) should be ON (1
) if:
-
Motion is detected and (the door is open or the window is open)
In Boolean logic:
A = M AND (D OR W)M D W D OR W A 0 0 0 0 0 0 1 0 0 0 0 1 0 0 1 1 0 1 0 0 0 1 1 0 1 0 1 1 1 1
Attempts allowed: 1