CS FundamentalsHardIBM · Deloitte pattern
Using the (7, 4) Hamming code with even parity and bit layout p1 p2 d3 p4 d5 d6 d7 (data in positions 3, 5, 6, 7), what codeword is sent for the data 1011?
- A. 1010101
- B. 0111011
- C. 0110011
- D. 1011010
Correct answer: C. 0110011
d3 = 1, d5 = 0, d6 = 1, d7 = 1. p1 covers 3, 5, 7: 1⊕0⊕1 = 0. p2 covers 3, 6, 7: 1⊕1⊕1 = 1. p4 covers 5, 6, 7: 0⊕1⊕1 = 0. Codeword p1 p2 d3 p4 d5 d6 d7 = 0 1 1 0 0 1 1.
More Computer Networks questions
- A stop-and-wait link runs at 1 Mbps with 1000-bit frames and a one-way propagation delay of 20 ms. Ignoring ACK size and processing, what…
- A Selective Repeat protocol uses 4-bit sequence numbers. What is the maximum window size (equal sender and receiver windows)?
- A CSMA/CD network runs at 10 Mbps over a 2 km cable where signals travel at 2 × 10⁸ m/s. What is the minimum frame size needed for…
- A 4000-byte IPv4 datagram (20-byte header, no options) must cross a link with MTU 1500 bytes. What is the fragment offset field value of…
- A TCP connection has a 65,535-byte receive window (no window scaling) and a round-trip time of 50 ms. What is the best throughput it can…
- A client's SYN carries initial sequence number 1000. After the handshake it sends one segment with 200 bytes of data. What sequence number…