What is the Hamming distance between the binary strings 10101 and 11100?

Options

  • A. 1
  • B. 2
  • C. 3
  • D. 4
  • E. None of the above

Correct Answer (Detailed Explanation is Below)

B. 2

Detailed Explanation

Correct Answer: (B) 2
Compare corresponding bits:
10101
11100
They differ at the second and fifth positions. Therefore, the Hamming distance is 2.