
XOR gate
An XOR (exclusive OR) gate is a digital logic device that outputs true or "1" only when exactly one of its two inputs is true, and the other is false. If both inputs are the same—either both true or both false—the output is false or "0." Think of it like a toggle switch: it activates only when there's a single "on" signal. XOR gates are fundamental in digital circuits for tasks like addition, error detection, and data comparison due to their ability to identify differences between inputs.