The XOR gate also known as the exclusive OR, it is a simple logic gate and takes two input, and produces an output of "true" when one of its input is false. Its input condition states that it only returns 1 when both inputs do not match, eg lets assume the two inputs are 1 and 1, then the result will be 0. If they are 0 and 0, the result will also be 0, it will only return 1 when, the two inputs are 0 and 1.