data representation Flashcards
what is binary?
1s and 0s that computers understand
size of a bit?
a single binary digit (1 or 0)
size of a nibble
4 bits
EG: 0101
size of a byte?
8 bits
EG: 01011101
size of a kilobyte?
1000 bytes
size of a megabyte?
1000 kilobytes
size of a gigabyte?
1000 megabytes
size of a terabyte?
1000 gigabytes
size of a petabyte?
1000 terabytes
order of bits (small-large)
Bats -bit
Nibble -nibble
Bread -byte
Knowing -kilobyte
Mice -megabite
Give -gigabyte
Terrible -terabyte
Presents -petabyte
what is denary?
standard number system
1-10
whats the highest binary can go?
255
how to convert from binary to denary?
add up the numbers with a 1 in their collumn
how to convert from denary to binary?
subtract from left to right
how to add binary?
put them into collums
start on the right add the numbers
when doing 1+1 = 10 (2) place 0 and carry 1 to the next collumn
when doing 1+1+1 = 11 (3) place 1 and carry 1 to the next column like regular addition
what is an overflow?
when a number has too many bits than a CPU is expdcting
what is a binary shift?
moves every bit in a binary number left or right
gaps on the ends get filled by 0s