Hex conversion

dazerskidazerski Member Posts: 106 ■■■□□□□□□□
I received a few hex conversion questions on my boson practice exam...

uhh.. should I be quick at this or could this likely be one of those out-of-scope questions for ICND1?

/sigh... one more thing to start practicing in the next 2 weeks I guess!!

Comments

  • scheistermeisterscheistermeister Member Posts: 748 ■□□□□□□□□□
    From the old CCNA it was something you should know. I am not sure about the new one.
    Give a man fire and he'll be warm for a day. Set a man on fire and he'll be warm for the rest of his life.
  • dynamikdynamik Banned Posts: 12,312 ■■■■■■■■■□
    I wouldn't worry about it, but it's pretty easy anyway.

    Hex is just 0-9 and A-F (10-15) for a total 16 values.

    Each hex digit can therefore be represented by 4 binary bits.

    i.e. 6f7c would be 0110 1111 0111 1010 in binary and 6 15 7 12 in decimal.

    Just out of curiosity, what was the scenario where you were required to do that? MAC address to binary?
  • dazerskidazerski Member Posts: 106 ■■■□□□□□□□
    dynamik wrote:
    I wouldn't worry about it, but it's pretty easy anyway.

    Hex is just 0-9 and A-F (10-15) for a total 16 values.

    Each hex digit can therefore be represented by 4 binary bits.

    i.e. 6f7c would be 0110 1111 0111 1010 in binary and 6 15 7 12 in decimal.

    Just out of curiosity, what was the scenario where you were required to do that? MAC address to binary?

    Ok cool... yeah it was just a general question on the practice exam.. it didn't place the question in a scenario.

    I'd have to go back and look but it said something like,

    What is the binary equivalent of BC14?

    Something along those lines.
  • dynamikdynamik Banned Posts: 12,312 ■■■■■■■■■□
    Yea, just give each hex value four binary bits and go from there. There's really nothing to it.
  • tmlerdaltmlerdal Member Posts: 80 ■■□□□□□□□□
    What I did when I took my ccna, was before the exam started, I just wrote out the conversions quick on the dry erase board they gave me. That way I had it handy if I needed it.
  • tech-airmantech-airman Member Posts: 953
    ddzierzek wrote:
    dynamik wrote:
    I wouldn't worry about it, but it's pretty easy anyway.

    Hex is just 0-9 and A-F (10-15) for a total 16 values.

    Each hex digit can therefore be represented by 4 binary bits.

    i.e. 6f7c would be 0110 1111 0111 1010 in binary and 6 15 7 12 in decimal.

    Just out of curiosity, what was the scenario where you were required to do that? MAC address to binary?

    Ok cool... yeah it was just a general question on the practice exam.. it didn't place the question in a scenario.

    I'd have to go back and look but it said something like,

    What is the binary equivalent of BC14?

    Something along those lines.

    ddzierzek,

    A little terminology refresher:
    1. 1 bit = a binary digit, 1 or 0
    2. 1 nibble = 4 bits
    3. 1 byte = 2 nibbles = 8 bits

    To convert hexadecimal to binary, here's what I would do:
    1. Take the "BC14" and separate them into separate "numbers" like "B C 1 4"
    2. Convert the hexadecimal to decimal by counting up 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F as 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15.
    3. Convert the decimal to binary.
    4. Move to the next hexadecimal number and do the same as above.
    5. When you run out of hexadecimal numbers, combine the binary nibbles together into a single binary number.

    I hope this helps.
  • tierstentiersten Member Posts: 4,505
    A little terminology refresher:
    1. 1 bit = a binary digit, 1 or 0
    2. 1 nibble = 4 bits
    3. 1 byte = 2 nibbles = 8 bits
    This is assuming that you're using a system with 8 bit bytes. A byte isn't actually fixed at 8 bits but for most modern systems it has been standardised at 8. It is usually whatever is the smallest individually addressable location in memory.
Sign In or Register to comment.