All mock tests are FREE till 31 December — register to save your progress
Unit 2 · Computer System Architecture Paper 2 CS · September 2022

The representation of the 4-bit code 1101 as a 7-bit even-parity Hamming code is

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: A. 1010101

Explanation

Positions 1 2 3 4 5 6 7 = P1 P2 D1 P4 D2 D3 D4 with data 1, 1, 0, 1 in positions 3, 5, 6, 7. P1 (1, 3, 5, 7): 1+1+1 is odd → P1 = 1. P2 (2, 3, 6, 7): 1+0+1 → P2 = 0. P4 (4, 5, 6, 7): 1+0+1 → P4 = 0. Code: 1010101.

More Computer System Architecture questions