A seven-bit Hamming code is received as 1111101. What is the correct code?

This question was previously asked in
ESE Electronics 2013 Paper 2: Official Paper
View all UPSC IES Papers >
  1. 1101111
  2. 1011111
  3. 1111111
  4. 1111011

Answer (Detailed Solution Below)

Option 3 : 1111111
Free
ST 1: UPSC ESE (IES) Civil - Building Materials
6.2 K Users
20 Questions 40 Marks 24 Mins

Detailed Solution

Download Solution PDF

Hamming code is used to detect errors. Here the codeword belongs to even parity, So when the data word and the parity bits in check word is even then there is no error.

∴ P1 P2 D3 P4 D5 D6 D7

    1   1   1   1   1   1   1

C1 = (1, 3, 5, 7)

     =  1 1 1 1 (Even number of 1's, So no error)

C2 = (2, 3, 6, 7)

    = 1 1 0 1 (Odd number of 1's, So error present)

C2 = (4, 5, 6, 7)

    = 1 1 0 1 (Odd number of 1's, So error present)

∴ Check word C = C4 C2 C1

= 1 1 0 = Decimal 6

Hence error is present at 6th position.

So, New code = 1 1 1 1 1 1 1

Latest UPSC IES Updates

Last updated on May 28, 2025

->  UPSC ESE admit card 2025 for the prelims exam has been released. 

-> The UPSC IES Prelims 2025 will be held on 8th June 2025.

-> The selection process includes a Prelims and a Mains Examination, followed by a Personality Test/Interview.

-> Candidates should attempt the UPSC IES mock tests to increase their efficiency. The UPSC IES previous year papers can be downloaded here.

Get Free Access Now
Hot Links: teen patti rummy teen patti bliss teen patti win