GATE Computer ScienceHardGATE CS (PYQ pattern)
An 8-bit data word d1…d8 = 1 0 1 1 0 0 1 0 is stored with a 12-bit single-error-correcting Hamming code: positions 1, 2, 4, 8 hold check bits and positions 3, 5, 6, 7, 9, 10, 11, 12 hold d1…d8 in that order. Each check bit at position 2ᵏ gives even parity over all positions whose index has bit k set. What is the 12-bit codeword (position 1 first)?
- A. 101001110010
- B. 011101100010
- C. 101100101001
- D. 111001110010
Correct answer: A. 101001110010
Data positions holding 1: 3, 6, 7, 11. Check 1 covers 3,5,7,9,11 → 1+0+1+0+1 → c1 = 1; check 2 covers 3,6,7,10,11 → 1+1+1+0+1 = 4 → c2 = 0; check 4 covers 5,6,7,12 → 0+1+1+0 → c4 = 0; check 8 covers 9–12 → 0+0+1+0 → c8 = 1. Codeword 101001110010. Odd parity gives 011101100010; appending the check bits after the data gives 101100101001; counting c2's group as odd gives 111001110010.
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- A byte-addressed machine has auto-increment (R1)+ (use R1 as the address, then add 4) and auto-decrement −(R1) (subtract 4 from R1, then…
- A fully associative cache holds 4 blocks. A loop cycles through 5 distinct blocks 0,1,2,3,4,0,1,2,3,4,… for 30 references. How many hits…
- In C99, int x = −37 (32-bit two's complement), and this implementation's >> on negative values is an arithmetic shift. What are x / 4, x…
- A non-pipelined processor takes the sum of its stage delays (90, 150, 110, 170, 80, 130 ps) per instruction. Its pipelined version has the…
- Which hexadecimal pattern is the IEEE 754 single-precision representation of 0.1 (round to nearest)?
- A 4-stage pipeline has stage delays 240, 160, 320 and 200 ps and a 40 ps latch after each stage. The 320 ps stage is split into two 160 ps…