FC0-U71 ยท IT concepts and terminology
Hexadecimal and octal
Base-16 and base-8, digits used, where hex appears (colors, MAC addresses) and converting to binary.
Key points
- Hexadecimal is base 16: digits 0-9 plus A-F (A = 10 ... F = 15).
- One hex digit equals 4 bits, so a byte is two hex digits (FF = 255).
- It appears in web colors (#FF0000) and MAC addresses.
- Octal is base 8: digits 0-7, one digit equals 3 bits (octal 10 = decimal 8).
Source: https://en.wikipedia.org/wiki/Hexadecimal
Practice questions
How many bits does one hexadecimal digit represent?
- 2 bits
- 3 bits
- 4 bits
- 8 bits
Show answer
Answer: C. 4 bits
16 values need 4 bits (2^4 = 16). Two bits would cover only 4 values and 8 bits is a full byte, i.e. two hex digits.
Which characters are NOT valid digits in a hexadecimal number?
- G
- 7
- Z
- A
- 9
Show answer
Answer: A. G, C. Z
Hex digits stop at F, so G and Z are invalid. 7 and A are both valid (A = 10).
True or false: the digit 8 can appear in an octal number.
Show answer
Answer: False
False. Octal is base 8, so its digits are 0-7. Decimal 8 is written 10 in octal.
Practice 8 questions on this topic in Bitzu
Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.
