A parity checker is a simple method used for error control.
In this method, the total number of 1’s in a block of data is made odd or even by adding a bit.
For example: if we add a 1 at the end of 1010111 to get 10101111 we obtain even parity.
Similarly, we can add a 0 to 1010111 to get 10101110 to maintain the odd parity.
When the data we transmit does not match the parity we specified, we know that there is an error somewhere.
Let’s try to figure out the parity bit we need for 1010101 and 1100010 to have even parity.