
The use of hex to represent binary questions and answers
Q1. Explain why hex is used by programmers.
A1. Writing out lots of bytes takes a lot of space and mistakes can be made. It is also quite hard to read long patterns of bits compared to the much simpler hex codes that are in use. It is easy to use hex codes to represent bytes (groups of 8 bits). This is because the range in binary of a byte goes from 0000 0000 to 1111 1111, and the equivalent range in hex is a two digit hex number that goes from 00 to FF. Using hex makes reading and writing binary codes a lot easier!
Q2. How many bits are there in a nibble?
A2. Four.
Q3. How many hex digits does a nibble represent?
A3. One.
Q4. How many bits are there in a byte?
A4. Eight.
Q5. How many hex digits does a byte represent?
A5. Two.
Q6. What does the hex digit A represent as a nibble in binary?
A6. 1010
Q7. What does the hex digit C represent as a nibble in binary?
A7. 1100
Q8. What does the hex digit E represent as a nibble in binary?
A8. 1110
Q9. What does the hex digit FF represent as a byte in binary?
A9. 1111 1111
Q10. What does the hex digit EE represent as a nibble in binary?
A10. 1110 1110