2.4 Flashcards
What is Boolean Logic?
Boolean Logic is a form of algebra that uses true or false values to perform logical operations.
What are the three basic operations in Boolean Logic?
The three basic operations are AND, OR, and NOT.
True or False: The AND operation returns true only if both operands are true.
True
Fill in the blank: In Boolean Logic, the OR operation returns true if at least one operand is ______.
true
What is the symbol commonly used for the AND operation?
The symbol used for the AND operation is && or ∧.
What is the symbol commonly used for the OR operation?
The symbol used for the OR operation is || or ∨.
What is the symbol commonly used for the NOT operation?
The symbol used for the NOT operation is ! or ¬.
True or False: The expression A AND B is true if A is true and B is false.
False
What is a truth table?
A truth table is a mathematical table used to determine the output of logical expressions based on their inputs.
What is the output of the expression TRUE OR FALSE?
TRUE
What is the output of the expression NOT TRUE?
FALSE
Fill in the blank: The result of A OR B is false only if both A and B are ______.
false
What is the purpose of Boolean Logic in computer science?
Boolean Logic is used to create conditions and control the flow of programs.
True or False: Boolean values can only be true or false.
True
What is the result of the expression (A AND B) OR (NOT A)?
The result depends on the values of A and B.
What does De Morgan’s Theorems state?
De Morgan’s Theorems state that NOT (A AND B) is equivalent to (NOT A) OR (NOT B), and NOT (A OR B) is equivalent to (NOT A) AND (NOT B).
Fill in the blank: The AND operation is also known as ______.
conjunction
Fill in the blank: The OR operation is also known as ______.
disjunction
What is the output of the expression FALSE AND TRUE?
FALSE
What is the output of the expression TRUE AND TRUE?
TRUE
What is the output of the expression FALSE OR FALSE?
FALSE
What does the NOT operation do to a Boolean value?
The NOT operation inverses the value: it turns true to false and false to true.
True or False: In Boolean Logic, (A OR B) AND (A OR NOT B) is always true.
True
What is a logical expression?
A logical expression is a combination of Boolean variables and operations that evaluates to true or false.
True or False: Boolean Logic is not used in programming languages.
False
What is the significance of Boolean Logic in digital circuits?
Boolean Logic is used to design and analyze digital circuits, enabling the implementation of logical operations.