Data Representation Flashcards
What do computers use to show the flow of electricity?
binary digits, 1 and 0
As a binary digit, what does 1 mean?
electricity is flowing
As a binary digit, what does 0 mean?
electricity is not flowing
What is a bit and its unit?
‘b’, a single binary digit = 1 or 0
What is a nibble?
4 bits
What is a byte and its unit?
‘B’, 8 bits
What is a Kilobyte and its unit?
‘kB’, 1000 bytes
What is a Megabyte and its unit?
‘MB’, 1000 kilobytes
What is a Gigabyte and its unit?
‘GB’, 1000 megabytes
What is a Terabyte and its unit?
‘TB’, 1000 gigabytes
What is a Petabyte and its unit?
‘PB’, 1000 terabytes
How many values can a nibble take?
2^4 = 16 values
How many values can a byte take?
2^16 = 256 values
What shift do you do to multiply a binary number?
LEFT shift = every place shifted left means the number is doubled
What shift do you do to divide a binary number?
RIGHT shift = every place shifted to the right means the number is halved
How are images stored?
as pixels - bitmap images - the colour of each pixel is represented by binary code so the number of colours available relates to the number of bits the code has
Black and White=
1 bit image, 1 bit for each pixel (eg: 0 = white and 1 = black)
To make greater range of shades…
increase the number of bits for each pixel