Solution:
(a) The Boolean expression for NAND gate is given as
Let the output of the NAND gate be
Therefore, Final output of the combination will be
The given circuit acts as an AND gate.
(b) Boolean expression for NOT gate is
For the first NOT gate, the output
For the second NOT gate, the output
The output of the combination will be
This is the Boolean expression for OR gate.