Boolean logic Flashcards
(27 cards)
What is Boolean logic?
A form of algebra that uses true/false values to perform logical operations.
True or False: The primary values in Boolean logic are 0 and 1.
True
What are the three basic operations in Boolean logic?
AND, OR, NOT
Fill in the blank: In Boolean logic, the AND operation returns true if _____ operands are true.
both
What does the OR operation do in Boolean logic?
It returns true if at least one operand is true.
True or False: The NOT operation inverts the truth value of its operand.
True
What is the result of the expression TRUE AND FALSE?
FALSE
What is the result of the expression TRUE OR FALSE?
TRUE
A NAND gate is a combination of which gates?
NOT - AND
What is a truth table?
A table that shows all possible truth values for a set of Boolean variables.
True or False: A truth table can only represent two variables.
False
How many inputs does the NAND gate have?
The NAND gate only has one input
What is the result of the expression NOT (TRUE AND FALSE)?
TRUE
What is an NAND gate?
Reversers the output of an AND gate
What is a NOR gate?
Reversers the output of an OR gate
True or False: The commutative law states that A AND B = B AND A.
True
What is an XOR gate?
It works similar to an OR gate except it is false if both the inputs are true. In a circuit diagram it has the extra line at the back of the shape.
Fill in the blank: In Boolean logic, the exclusive OR (XOR) operation returns true if _____.
exactly one operand is true
What is a logical gate?
An electronic circuit that performs a Boolean function.
True or False: NAND is the negation of the AND operation.
True
What is the output of a NOR gate when both inputs are false?
TRUE
Fill in the blank: The _____ gate only produces an output when both inputs are true.
AND
What is the significance of Boolean logic in computer science?
It is used in programming, circuit design, and algorithms.