$\begin{array}{1 1}(i) 1 \quad (ii) 0 \\ (i) 0 \quad (ii) 1 \\ (i) 1 \quad (ii) 1 \\(i) 0 \quad (ii) 0 \end{array} $