Computer Networks · Question 14 · Hard

How many redundant (parity) bits does a Hamming code need to correct single-bit errors in a 7-bit data word?

  1. 5
  2. 3
  3. 4
  4. 7
Answer and explanation

Answer: C. 4

Explanation: We need the smallest r with 2^r ≥ m + r + 1, where m = 7. r = 3 gives 8 ≥ 11, which fails, and r = 4 gives 16 ≥ 12, which works. So 4 parity bits are needed.

Previous: How many usable host addresses does the network 10.0.0.0/21 provide? · Next: A TCP sender has a congestion window of 16 MSS, with the whole window in…

Practise computer networks

Try a fresh set of computer networks questions with an explanation after every answer, free and without signing up: Computer Networks practice. Or sit a full placement mock test.

More computer networks questions

More technical & programming practice

Software Engineering · Cloud & DevOps · GenAI Basics · Pseudo-code · C Programming · Java · Python · Data Structures

LogicWiz Exams home · All practice topics · Placement mock tests · Daily 10 challenge