Multiple choice

What is the hexadecimal equivalent of decimal number 511?

  1. FF1

  2. 1FF

  3. 3FF

  4. FF3

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

Divide 511 by 16 repeatedly: 511 = 31*16 + 15 (F), 31 = 1*16 + 15 (F), 1 = 0*16 + 1. Reading remainders bottom to top gives 1FF. Also note 511 = 2^9 - 1 = 512 - 1 = 0x1FF.