Decimal 255 is the largest number representable with eight bits set to 1, that is 11111111โ. Grouping the bits in fours gives 1111 and 1111, which correspond to F and F in hexadecimal. Thus, the hex representation of 255 is FFโโ.
Option A:
Option A, EFโโ, corresponds to 14ร16 + 15 = 239, which is less than 255. It has a different high-order digit than FF.
Option B:
Option B, FEโโ, represents 15ร16 + 14 = 254, one less than 255. It is frequently seen in contexts like signed ranges, but it is not equal to 255.
Option C:
Option C is correct because FFโโ equals 15ร16 + 15 = 255. It reflects a full set of ones in binary and is widely used as a maximum byte value.
Option D:
Option D, EEโโ, equals 14ร16 + 14 = 238, which is significantly smaller than 255. Its binary form does not have all bits set.
Comment Your Answer
Please login to comment your answer.
Sign In
Sign Up
Answers commented by others
No answers commented yet. Be the first to comment!