Boolean logic Flashcards
(26 cards)
What is a Boolean logic gate?
A device that implements a Boolean function, performing a logical operation on one or more binary inputs to produce a single binary output.
What does the NOT gate do?
It inverts the input; if the input is 1, the output is 0, and vice versa.
True or False: A NAND gate is a combination of an AND gate followed by a NOT gate.
True
What is the output of an AND gate when both inputs are 0?
0
Fill in the blank: The output of an OR gate is _____ if at least one input is 1.
1
What is the truth table for a NOT gate?
Input: 0, Output: 1; Input: 1, Output: 0
What is the output of a NAND gate when both inputs are 1?
0
Which gate produces a true output only when the inputs are different?
XOR gate
What is the truth table for an OR gate?
00 -> 0; 01 -> 1; 10 -> 1; 11 -> 1
True or False: The output of a NOR gate is true only when all inputs are false.
True
What is the output of an XOR gate for inputs 1 and 1?
0
Fill in the blank: The output of a NOR gate is _____ if at least one input is 1.
0
What does the AND gate output when both inputs are 1?
1
What is the truth table for a NAND gate?
00 -> 1; 01 -> 1; 10 -> 1; 11 -> 0
Fill in the blank: The output of the XOR gate is _____ for inputs 0 and 1.
1
What is the output of a NOR gate when both inputs are 0?
1
What is the truth table for an XOR gate?
00 -> 0; 01 -> 1; 10 -> 1; 11 -> 0
Which gate can be used to create any other type of logic gate?
NAND gate
True or False: The output of an AND gate is true if either input is false.
False
What is the primary function of the OR gate?
To output true if at least one input is true.
What is the output of a NOT gate for input 1?
0
Fill in the blank: The NAND gate is equivalent to an AND gate followed by a _____ gate.
NOT
What does the NOR gate output for inputs 1 and 0?
0
What is the output of an AND gate for inputs 0 and 1?
0