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 (16 bits all set to 1). This is because 65535 = 2^16 - 1 = 65536 - 1, which is the maximum value representable with 16 bits. Each hexadecimal digit represents 4 bits, so 4 hexadecimal digits (FFFF) can represent 16 bits. 0xFFFFF would be 20 bits, 0xFFF would be 12 bits, and 0xFFFFFF would be 24 bits.