EX-OR gate: The output is high if either of the input is high. The EX-OR gate and its truth table is given in Figure 2.4. Figure 2.4: EX-OR gate and its truth table.