logical operations Flashcards
go through questions
go through questions
Boolean values
False or True
0 or 1
What does the AND function return
Returns true (1) if both values are true(1), otherwise returns false (0)
What does the symbol for the AND function look like
D shape
What does the OR function return
Returns true(1) if either values are true(1), returns false if both values are false
What does the symbol for the OR function look like
Moon crest
What does the NOT function return
Only takes one input (unlike the others) and reverses it
What does the symbol for the NOT function look like
Sideways triangle
What does the NAND function return
NOT AND
Returns false(0) only if both values are true(1), otherwise returns true(1)
Carries out an AND operation and performs a NOT on the result (reverses it)
What does the NAND symbol look like
D symbol with tiny circle on output
What does NOR output
Returns true (1) if both values are false(0), returns false(0) if either values are true(1)
Carries out an OR operation then performs a NOT on the result (reverses it)
What does a XOR output
Exclusive OR
Same as OR, returns 1 if either value is 1
However does not return 1 if both values are 1
What does XOR symbol look like
moon crest with parallel curvy line on left
How do bitwise operations work
Bitwise operations work by applying the operation successfully to each pair of binary digits
How is OR written in boolean algebra
+