The table used to represent the Boolean expression of a logic gate function called a truth table. A logic gate is an electronic circuit that operates on one or more input signals to produce an output signal. The switch contains two states which are ON or OFF. The ON means the logic 1 and the OFF means the logic 0.