GATE Computer ScienceVery hardGATE CS (PYQ pattern)
An 8-bit value is stored with an even-parity Hamming code in 12 positions 1..12 (check bits at positions 1, 2, 4, 8). The word read back is 001001110000 (position 1 first). The syndrome is computed as the XOR of the positions of all 1 bits. Which position is in error, and is that position a data bit or a check bit?
- A. Position 11, a data bit
- B. Position 6, a data bit
- C. Position 10, a check bit
- D. Position 10, a data bit
Correct answer: D. Position 10, a data bit
XOR of the positions holding 1 gives 10 (binary 1010); this is not a power of two, so it is a data position. Flip it to recover the stored word.
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- A microprogrammed control unit has 2048 microinstructions of 100 bits each, but only 300 of them are distinct. Using a two-level…
- A DRAM has 8192 rows, each to be refreshed once every 64 ms, and refreshing one row blocks the chip for 50 ns. Under burst refresh all…
- Which of the following statements about caches are correct? I. A dirty bit lets a write-back cache avoid writing unmodified blocks back to…
- A cache has hit time 2 ns, hit ratio 0.9 and the memory access time is 60 ns. Compare the access time in the hierarchical organisation…
- A loop executes for (i = 0; i < n; i++) sum += a[i]; with a large array a. Which memory access pattern shows strong spatial locality but…
- An instruction mix is: ALU 45% (CPI 1), loads 25% (CPI 2), stores 10% (CPI 2), branches 20% (CPI 3). A compiler optimisation deletes one…