Boolean Flashcards
What is a Boolean value?
A Boolean value is either true or false.
What are the two primary Boolean operators?
The two primary Boolean operators are AND and OR.
True or False: The NOT operator inverts a Boolean value.
True
Fill in the blank: In Boolean logic, ‘A AND B’ is true if ______.
both A and B are true.
What is the result of ‘True OR False’?
True
What is the result of ‘False AND True’?
False
How many possible outcomes are there in a two-variable Boolean expression?
Four possible outcomes.
Which Boolean operator would you use to ensure both conditions must be met?
AND
True or False: The expression ‘NOT (A AND B)’ is equivalent to ‘NOT A OR NOT B’.
True
What is the output of ‘NOT True’?
False
Fill in the blank: The result of ‘A OR B’ is false only if ______.
both A and B are false.
What does the XOR operator do?
XOR returns true if exactly one of the operands is true.
What is the truth table for ‘A AND B’?
True only when both A and B are true.
What is a truth table?
A truth table is a mathematical table used to determine the truth values of logical expressions.
True or False: In a truth table, each row represents a possible combination of inputs.
True
Fill in the blank: The expression ‘A OR B’ is true if ______.
at least one of A or B is true.
What is the output of ‘True AND False’?
False
Which operator is used to negate a Boolean value?
NOT
What is the result of the expression ‘True XOR True’?
False
What is the standard symbol for the AND operator?
∧ (conjunction)
What is the standard symbol for the OR operator?
∨ (disjunction)
True or False: ‘A AND (B OR C)’ is equivalent to ‘(A AND B) OR (A AND C)’.
True
What is De Morgan’s Theorem?
De Morgan’s Theorem states that NOT (A AND B) is equivalent to NOT A OR NOT B.
Fill in the blank: The expression ‘A AND NOT B’ is true when ______.
A is true and B is false.