Brain Teasers
Binary Code
What is the hexadecimal code for the following binary code? 11111111
Hint
Remember 0's and 1's in computer terms mean on and off, and binary starts at 1 and keeps doubling itself to infinity. Also, hexadecimal consists of combinations of numbers and letters A thru F.Answer
FF, or the equivalent of 255, which is the actual technical value of a 256 MB stick of RAM.Hide Hint Show Hint Hide Answer Show Answer
What Next?
View a Similar Brain Teaser...
If you become a registered user you can vote on this brain teaser, keep track of which ones you have seen, and even make your own.
Solve a Puzzle
Comments
any comments would be greatly appreciated thank you
some more explanation is nessicary
No offence but thats crap. Its just a conversion from binary to Hex.
its 255 because it includes 0, there is the ability to label 256 elements.
its 255 because it includes 0, there is the ability to label 256 elements.
It looks like some context has been snipped,
which makes the wording confusing. For example,
the teaser says "Going by the following table," but
there is no following table. Also, it wasn't
clear from the wording whether the number "11111111"
was to be interpreted as binary or decimal.
A simple "What is the hexidecimal code for the following binary number"
would have been a lot clearer.
which makes the wording confusing. For example,
the teaser says "Going by the following table," but
there is no following table. Also, it wasn't
clear from the wording whether the number "11111111"
was to be interpreted as binary or decimal.
A simple "What is the hexidecimal code for the following binary number"
would have been a lot clearer.
when code is written in just 0's and 1's then it is just binary.
i think the point that dewtell is trying to make is that binary code is all 1's and 0's, but not all 1's and 0's are necessarily binary code.
i'm glad y'all know what you are all talkin about bc i am way too blonde for that one!!!
if you know computer language it would be easy but i didnt get it. o well
The teaser now stands corrected. It was wrongly worded before.
For all those who dont how to convert binary to hexadecimal!
binary to decimal
0 0
1 1
so to convert 11111111 (binary) to decimal,
1(the right-most) x 2^0 = 1
1 x 2^1 = 2
1 x 2^2 = 4
1 x 2^3 = 8
1 x 2^4 = 16
1 x 2^5 = 32
1 x 2^6 = 64
1 x 2^7(the left-most) = 128
total = 255 in decimal system (which is the one we are using in our daily life, using the digits 0 - 9)
decimal to hexadecimal
0 0
1 1
...
9 9
10 A
11 B
12 C
13 D
14 E
15 F
so to convert 255 (in decimal) to hexadecimal,
255/16 = 15(F) remainer of 15(F)
so 11111111 in binary is 255 in decimal, and FF in Hexadecimal.
another example.
1011010011 (binary)
1 x 2^0 = 1
1 x 2^1 = 2
0 x 2^2 = 0
0 x 2^3 = 0
1 x 2^4 = 16
0 x 2^5 = 0
1 x 2^6 = 64
1 x 2^7 = 128
0 x 2^8 = 0
1 x 2^9 = 512
total = 723 (decimal)
723/16 = 45 remainder of 3
45/16 = 2 remainder of 13 (D)
so 1011010011 (binary) = 723 (decimal) = 2D3 (Hexadecimal).
a short-cut would be to group the binary digits into 4 digits from the right.
so in our 1011010011 example, it would be
10 1101 0011
0 x 2^0 = 0
1 x 2^1 = 2
total = 2
1 x 2^0 = 1
0 x 2^1 = 0
1 x 2^2 = 4
1 x 2^3 = 8
total = 13 (D)
1 x 2^0 = 1
1 x 2^1 = 2
0 x 2^2 = 0
0 x 2^3 = 0
total = 3
hence 2D3!
binary to decimal
0 0
1 1
so to convert 11111111 (binary) to decimal,
1(the right-most) x 2^0 = 1
1 x 2^1 = 2
1 x 2^2 = 4
1 x 2^3 = 8
1 x 2^4 = 16
1 x 2^5 = 32
1 x 2^6 = 64
1 x 2^7(the left-most) = 128
total = 255 in decimal system (which is the one we are using in our daily life, using the digits 0 - 9)
decimal to hexadecimal
0 0
1 1
...
9 9
10 A
11 B
12 C
13 D
14 E
15 F
so to convert 255 (in decimal) to hexadecimal,
255/16 = 15(F) remainer of 15(F)
so 11111111 in binary is 255 in decimal, and FF in Hexadecimal.
another example.
1011010011 (binary)
1 x 2^0 = 1
1 x 2^1 = 2
0 x 2^2 = 0
0 x 2^3 = 0
1 x 2^4 = 16
0 x 2^5 = 0
1 x 2^6 = 64
1 x 2^7 = 128
0 x 2^8 = 0
1 x 2^9 = 512
total = 723 (decimal)
723/16 = 45 remainder of 3
45/16 = 2 remainder of 13 (D)
so 1011010011 (binary) = 723 (decimal) = 2D3 (Hexadecimal).
a short-cut would be to group the binary digits into 4 digits from the right.
so in our 1011010011 example, it would be
10 1101 0011
0 x 2^0 = 0
1 x 2^1 = 2
total = 2
1 x 2^0 = 1
0 x 2^1 = 0
1 x 2^2 = 4
1 x 2^3 = 8
total = 13 (D)
1 x 2^0 = 1
1 x 2^1 = 2
0 x 2^2 = 0
0 x 2^3 = 0
total = 3
hence 2D3!
Not much of a teaser.
To post a comment, please create an account and sign in.
Follow Braingle!