Digital systems use logic gates like AND, OR, NOT, NAND, NOR, EXOR and EXNOR. The AND gate outputs 1 only if all inputs are 1. The OR gate outputs 1 if one or more inputs are 1. The NOT gate inverts the input, outputting 1 for a 0 input and vice versa. NAND and NOR gates are composed of an AND/OR gate followed by a NOT. EXOR outputs 1 if either but not both inputs are 1, while EXNOR does the opposite. Truth tables define all possible input/output combinations for each gate.