CS FundamentalsHardProduct-company MCQ pattern
A (7, 4) even-parity Hamming codeword (layout p1 p2 d3 p4 d5 d6 d7) is received as 0110111. Assuming at most one bit is in error, what are the four data bits d3 d5 d6 d7 after correction?
- A. 1111
- B. 1010
- C. 0111
- D. 1011
Correct answer: D. 1011
Check p1 (1,3,5,7): 0⊕1⊕1⊕1 = 1. p2 (2,3,6,7): 1⊕1⊕1⊕1 = 0. p4 (4,5,6,7): 0⊕1⊕1⊕1 = 1. Syndrome = 4 + 1 = 5, so bit 5 is wrong: corrected word 0110011, data 1, 0, 1, 1 = 1011. 1111 is the uncorrected data.
More Computer Networks questions
- A link has transmission time 1 ms per frame and one-way propagation delay 24.5 ms. Using Selective Repeat with sender window equal to…
- TCP Tahoe starts with cwnd = 1 MSS and ssthresh = 16 MSS. cwnd doubles each RTT in slow start (but is capped at ssthresh when doubling…
- How many of the following statements about TCP congestion control (Reno) are correct? 1. On three duplicate ACKs, ssthresh is set to half…
- TCP sequence numbers are 32 bits and count bytes. On a 1 Gbps link sending continuously, roughly how long does it take for the sequence…
- Under distance-vector routing, router A has direct links to B (cost 2) and C (cost 5). B advertises distances {D: 7, E: 1} and C…
- An undirected network has links A–B 4, A–C 1, B–C 2, B–D 5, C–D 8, C–E 10, D–E 2, D–F 6, E–F 3. What is the cost of the shortest path from…