Multiple choice

Hamming distance between 001111 and 211 is

  1. 1

  2. 2

  3. 3

  4. 4

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

Hamming distance counts positions where corresponding bits differ. 001111 vs 000111 (padding 211 to 3 bits) differ only in position 3 from the left. Comparing full strings: 001111 vs 000211 gives distance 3 in binary positions.