Hexadecimal numbers

Cards (17)

  • What is the hexadecimal number system used for?
    It is used regularly in programming.
  • How does hexadecimal represent numbers?
    It uses a combination of digits and letters.
  • How does hexadecimal compare to binary?
    Hexadecimal numbers are shorter than binary.
  • What digits does hexadecimal (base-16) use?
    • Sixteen different digits: 0-9 and A-F
  • What does a single hex character represent in denary?
    It represents any denary number from 0 to 15.
  • How many bits are required to represent 0-15 in binary?
    4 bits are required, known as a nibble.
  • Why do programmers prefer hexadecimal when coding?
    • Simpler to remember large numbers
    • Shorter than binary numbers
    • Less chance of input errors
    • Easier to convert between binary and hex
  • What is the process to convert hex to denary?
    1. Draw a table for hex number
    2. Multiply each hex character by its place value
    3. Add up the results
  • What is the denary equivalent of the hexadecimal number 87?
    135
  • How do you convert denary to hex?
    1. Draw a table for division
    2. Divide the denary number by 16
    3. Record the remainder
    4. Repeat until the quotient is 0
  • What is the hexadecimal equivalent of the denary number 106?
    6A
  • How do you convert binary to hex?
    1. Split binary into nibbles (4-bit chunks)
    2. Convert each nibble to hex
    3. Combine hex values
  • What is the hexadecimal equivalent of the binary number 10111001?
    89
  • How do you convert a binary number that can't be split into nibbles?
    Add zeros to the front of the binary number.
  • What is the hexadecimal equivalent of the binary number 111110?
    3E
  • How do you convert hex to binary?
    1. Convert each hex character to denary
    2. Find the binary value of each denary number
    3. Combine the binary numbers
  • What is the binary equivalent of the hexadecimal number 8C?
    10001100