Explain logic gates. State different logic gates, OR, NOR, AND and NAND. Construct the TRUTH table for each of the above mentioned gates.