
Quiz setup
Choose your name
Your opponent is:
QuantumQuill
7 days ago
Choose your name
Your opponent is
QuantumQuill
Imagine you're deciding whether to go outside. You might think: "If it's sunny AND not raining, I'll go." Or, "If I have an umbrella OR it's not too hot, I might go anyway." These everyday decisions use a type of reasoning called Boolean logic—a core concept in computing. Named after mathematician George Boole, this system uses only true and false values (or 1 and 0) to make clear, unambiguous choices—exactly what computers need to operate.
Boolean logic relies on three basic operations:
AND ()
| A | B | Result |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 0 |
| 1 | 0 | 0 |
| 1 | 1 | 1 |
OR ()
| A | B | Result |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 1 |
NOT ()
| A | Result |
|---|---|
| 0 | 1 |
| 1 | 0 |
Like building with LEGO blocks, you can combine AND, OR, and NOT to create logic gates. For example:
Inside every computer, millions of tiny switches called transistors use Boolean logic to control electricity. They form physical logic circuits that:
Even in programming, Boolean logic helps make decisions:
if (is_raining == True) and (has_umbrella == False):
print("Stay indoors!")
Here, and ensures both conditions must be true to trigger the message.
Think of two light switches controlling one bulb:
This simplicity makes Boolean logic universal—from your phone’s processor to internet searches!