Which is the hex representation of binary 1011 0101 1001 0011?

Enhance your programming skills with the RECF Programming Test. Features flashcards and multiple choice questions with hints and explanations. Prepare for success!

Multiple Choice

Which is the hex representation of binary 1011 0101 1001 0011?

Explanation:
Hex numbers are written by grouping binary into 4-bit chunks, since each hex digit represents one 4-bit nibble. For the 16-bit string 1011 0101 1001 0011, the chunks are 1011, 0101, 1001, and 0011. Converting those to hex gives B, 5, 9, and 3, respectively, so the hex representation is B593. The 0x prefix is just another way to denote hex in many languages, so 0xB593 would mean the same value, but the digits themselves are B593.

Hex numbers are written by grouping binary into 4-bit chunks, since each hex digit represents one 4-bit nibble. For the 16-bit string 1011 0101 1001 0011, the chunks are 1011, 0101, 1001, and 0011. Converting those to hex gives B, 5, 9, and 3, respectively, so the hex representation is B593. The 0x prefix is just another way to denote hex in many languages, so 0xB593 would mean the same value, but the digits themselves are B593.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy