1/12
AND, OR, NAND, NOR, XOR, XNOR, NOT, Logic Gates
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai |
|---|
No analytics yet
Send a link to your students to track their progress
What Logic Gate is this?
if a and b:
output = true
else:
output = false
AND
What Logic Gate is this?
if a or b:
output = true
else:
output = false
OR
What Logic Gate is this?
if not (a and b):
output = true
else:
output = false
NAND
What Logic Gate is this?
if not (a or b):
output = true
else:
output = false
NOR
What Logic Gate is this?
if a != b:
output = true
else:
output = false
XOR
What Logic Gate is this?
if a == b:
output = true
else:
output = false
XNOR
What Logic Gate is this?
if not a:
output = true
else:
output = false
NOT

What Logic Gate is this?
NOR

What Logic Gate is this?
XOR

What Logic Gate is this?
XNOR
The example stated below best suits for what gate?
A phone goes into sleep mode only when no buttons are being pressed and no notifications is coming in.
NOR
The example stated below best suits for what gate?
A safety systems shuts down a machine unless both saftety switches are pressed
NAND
The example stated below best suits for what gate?
You can use the bathroom pass if exactly one student has it, not zero, not two
XOR