What is logic gates?

Truth table of AND Gate:

INPUT OUTPUT
A B Y = A.B
0 0 0
0 1 0
1 0 0
1 1 1

Truth table of NOT Gate.

INPUT OUTPUT
A Y
0 1
1 0

Truth table of OR Gate.

INPUT OUTPUT
A B Y = A+B
0 0 0
0 1 1
1 0 1
1 1 1

Truth table of NAND Gate.

INPUT OUTPUT
A B Y
0 0 1
0 1 1
1 0 1
1 1 0

Truth table of NOR Gate.

INPUT OUTPUT
A B Y
0 0 1
0 1 0
1 0 0
1 1 0

Truth table of XOR Gate.

INPUT OUTPUT
A B Y
0 0 0
0 1 1
1 0 1
1 1 0