$D_{12}$ |
$D_{11}$ |
$D_{10}$ |
$D_9$ |
$P_8$ |
$D_7$ |
$D_6$ |
$D_5$ |
$P_4$ |
$D_3$ |
$P_2$ |
$P_1$ |
$1$ |
$0$ |
$1$ |
$0$ |
$0$ |
$0$ |
$0$ |
$0$ |
$1$ |
$0$ |
$1$ |
$0$ |
for $P_1$ we check $D_3D_5D_7D_9D_{11}=00000$ Hence $P_1$ should be $0$
for $P_2$ we check $D_3D_6D_7D_{10}D_{11}=00010$ Hence $P_2$ should be $1$
for $P_4$ we check $D_5D_6D_7D_{12}=0001$ Hence $P_4$ should be $1$
for $P_8$ we check $D_9D_{10}D_{11}D_{12}=0101$ Hence $P_8$ should be $0$
Hence the correct codeword should be
$D_{12}$ |
$D_{11}$ |
$D_{10}$ |
$D_9$ |
$P_8$ |
$D_7$ |
$D_6$ |
$D_5$ |
$P_4$ |
$D_3$ |
$P_2$ |
$P_1$ |
$1$ |
$0$ |
$1$ |
$0$ |
$0$ |
$0$ |
$0$ |
$0$ |
$1$ |
$0$ |
$1$ |
$0$ |
Hence Option $ 1010\ 0000\ 1010$ is correct answer.