Binary Flashcards
why is binary in 1 and 0’s?
1 and 0 represent on and off
when converting to denary what digit represents on
1
when converting to binary we minus of the denary to get the binary numbers
so say we had the number 129 128 would go into it so we would minus it leaving us with one and place all of 0’s until 1 where we minus 1 of 1 and place a 1
why do we not use binary that often?
binary is full of 1 and 0’s and it makes it harder for us to read so we use something called Hexadecimal.
hexadecimal is in what base?
Base 16
what base is Binary in?
Base 2
what base is Denary in
Base 10
after the digit 9 in Hexadecimal what do we use?
we use letters representing 10-16 from A-F
how do we convert hexadecimal?
we split the number/letter say 6E to there values in our language and there we convert them into there binary values
why do we use hexadecimal?
hexadecimal allows us to convert in 4 bits at a time which denary cannot do
when doing binary arithmetic what do we do when we add 1+1?
we add 0 to the answer and carry 1
what is a logical left shift? Hint: its all the same for the right
when we move the binary digits to the left once and add a zero to the end for the least significance
what is an overflow error?
the maximum an 8 digit binary can hold is 255 and sometimes when we add binary it can overflow creating a 9 bit binary
what is sign and magnitude?
with this we have an extra column replacing the 128 bit with 1 being a negative number and 0 remaining positive so we would minus 128 of all the values.
how does 2’s compliment work?
twos compliment turns the 128 to a minues 128 and has the samr principel when adding all the 1’s together