3.3 Data Representation Flashcards
What is denary?
Base 10, what we normally use
there are 10 digits
What is binary?
Base 2, what computers use
1’s and 0’s
what is hexadecimal?
Base 16
there are 16 digits
0 - 9 A - F
What is a bit?
A binary digit
How many bits are in a Byte?
8
How many bytes are in a kilobyte?
1,000
How many megabytes are in a Gigabyte?
1,000
What formula can be used to calculate the number of combinations in binary?
2^(Bits)
What is the method of converting Binary to Denary?
. Put the binary number into the table
. Each time there is a 1 add that power of to your total
What is the MSB?
Most significant bit
What is the LSB?
Least significant bit
What does it mean if the LSB has a value of 1?
It is an odd number
How can you convert Denary to Binary?
. Find the MSB and subtract your number from it
. Find the next MSB and subtract it from your new number
. Repeat step 2 until your denary number = 0
What is the formula for the largest possible number with a given amount of bits?
2^bits - 1
What are the rules for adding 2 binary numbers together?
. 0 + 0 = 0
. 0 + 1 = 1
. 1 + 0 = 1
. 1 + 1 = 10
. 1 + 1 + 1 = 11
What is an overflow error?
when adding two binary numbers we can end up with an extra digit that doesn’t fit into the number of bits. This is called an overflow error.
What is the range of numbers in hexadecimal
0 - F
Why is base 16 different from others
It uses letters and numbers
How do you convert binary to hex-code
. Split your binary number into nibbles
. Add up each of the values in the nibbles
. Convert the values to hex
. Join the hex together
How to convert hex to binary
. Convert each hex digit to 4 bits of binary
. Join the binary string together