Match the gates of List I with the descriptions of List II, for gates with two inputs.
| List I | List II |
| --- | --- |
| (P) NAND | (1) The output is 1 only when both inputs are 0 |
| (Q) NOR | (2) The output is 0 only when both inputs are 1 |
| (R) XOR | (3) The output is 1 when the two inputs are different |
| (S) XNOR | (4) The output is 1 when the two inputs are the same |
Which matching is correct?