boolean logic Flashcards
boolean logic (10 cards)
What are the three basic operations in Boolean logic?
AND, OR, NOT
True or False: In Boolean logic, the expression A AND B is true only if both A and B are true.
True
Fill in the blank: The result of the operation A OR B is _____ if at least one of A or B is true.
true
What is the output of a NOT operation when the input is true?
false
Which Boolean operation is represented by the symbol ‘&&’ in programming languages?
AND
True or False: The expression A OR B is false if both A and B are false.
True
What is the result of the expression (TRUE AND FALSE) OR (FALSE AND TRUE)?
FALSE
Multiple Choice: What is the result of NOT (A OR B) when A is true and B is false? A) TRUE B) FALSE
B) FALSE
What is the identity law for the AND operation?
A AND TRUE = A
Fill in the blank: In Boolean algebra, the expression A AND (B OR C) is equivalent to _____ when distributed.
A AND B OR A AND C