Given below are symbols for some gates. The OR gate and the AND gate, respectively are
1 and 3
2 and 3
1 and 2
2 and 1
(2) is OR gate and (1) is AND gate.