Answer
(a) AND Gate
(b) XOR Gate
Work Step by Step
(a) The truth table of the given configuration will be -
0 0 -> 0
0 1 -> 0
1 0 -> 0
1 1 -> 1
This is also the truth table of AND Gate hence the given configuration represents AND Gate.
(b) The truth table of the given configuration will be -
0 0 -> 0
0 1 -> 1
1 0 -> 1
1 1 -> 0
This is also the truth table of XOR Gate hence the given configuration represents XOR Gate.