Multiple choice technology

The base 10 (or decimal - our normal way of counting) number 65535 is represented in hexadecimal as...?

  1. 0xFFFFF

  2. 0xFFFF

  3. 0xFFF

  4. 0xFFFFFF

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

65535 in decimal equals FFFF in hexadecimal because it's 16^4 - 1 (65536 - 1 = 65535), which is the maximum value representable with 4 hexadecimal digits. Each hex digit represents 4 bits, so FFFF = 15*(16^3) + 15*(16^2) + 15*(16^1) + 15*(16^0) = 65535. Option A (FFFFF) would be 5 hex digits = 1,048,575, and Option D (FFFFFF) would be 6 digits = 16,777,215. Option C (FFF) is only 3 digits = 4095.