Boolean logic Flashcards
(27 cards)
What is Boolean logic?
A form of algebra that uses true or false values.
What are the basic operations of Boolean logic?
AND, OR, and NOT.
True or False: The AND operation returns true only if both operands are true.
True.
Fill in the blank: The OR operation returns true if at least one operand is ____.
true.
What is the result of the expression: TRUE AND FALSE?
FALSE.
What is the result of the expression: TRUE OR FALSE?
TRUE.
True or False: NOT TRUE is equal to FALSE.
True.
What is the output of the expression: NOT (TRUE AND TRUE)?
FALSE.
What does the AND operator require from its operands?
Both must be true for the result to be true.
What does the OR operator require from its operands?
At least one must be true for the result to be true.
Fill in the blank: In Boolean logic, ‘X AND Y’ is only true if ____.
both X and Y are true.
What is meant by the term ‘truth table’?
A table that shows all possible values of input and the corresponding output.
How many rows would a truth table have for two variables?
4 rows.
True or False: The expression ‘A OR NOT A’ is always true.
True.
What is the output of the expression: FALSE OR FALSE?
FALSE.
What Boolean operation is represented by the symbol ‘∧’?
AND.
What Boolean operation is represented by the symbol ‘∨’?
OR.
What is the output of the expression: NOT (FALSE OR TRUE)?
FALSE.
True or False: A Boolean variable can hold more than two values.
False.
What is the result of the expression: (TRUE OR FALSE) AND (FALSE OR TRUE)?
TRUE.
Fill in the blank: The result of A AND B is ____ when A is false.
false.
What does the expression ‘A AND NOT B’ represent?
A is true and B is false.
True or False: The NOT operator negates the value of its operand.
True.
What is the output of the expression: TRUE AND NOT TRUE?
FALSE.