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
what is a left shift?
multiplies the number
for every place shifted left the number is doubled
moves LEFT
what is a right shift?
divides a binary number
for every place shifted right the number is halved
moves RIGHT
what are hexadecimal numbers?
uses a combination of digets and letters to represent a number
what is the highest hex number before it becomes a letter?
9
converting binary to hex?
split into nibbles(4s)
draw table 8,4,2,1 and fill in
for each nibble(4) add up the numbers with a 1
put hex numbers together
what is ascii?
a commonly used english character set
how to work out file size?
number of bits per char X num of chars