Data Representation Flashcards
(46 cards)
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
How do you calculate file size?
file size (in bits) = width x height x colour depth ( or = image resolution x colour depth)
What does image resolution mean?
the number of pixels in the image so the higher the image resolution, the higher the quality and the number of pixels
What does colour depth mean?
the number of bits used for each pixel
Using the colour depth, how do you calculate the number of colours that can be made?
total number of colours = 2^n (where n = number of bits per pixel = (bpp)
What is metadata and why is it needed?
devices need metadata to display the images, its the information stored in the image file that helps the computer recreate the image
What does metadata normally include?
the images file format, height, width, colour depth and resolution