3.2 Data Representation Flashcards
What are the possible textual representations?
- ASCII
- Unicode
What is ASCII?
ASCII contains characters encoded with character sets → codes assigned to a character.
Originally only 7 bits long, but extended to 8 to contain 256 characters.
What is Unicode?
Unicode was created due to ASCII’s inability to represent all possible characters.
ASCII is a subset of Unicode, Unicode uses 16 bits, having codes for 120 000 characters.
What are encoding tables?
Character codes are sequential, so it is in ascending order. To find the code for another character, simply add to where a previous one is.
What is a pixel?
The smallest distinguishable feature.
How are images represented in binary?
Bitmaps, images are stored as an array of individual pixels.
How do you calculate an image’s size?
Pixel Width x Height
What is the resolution of an image?
It is the detail that an image holds, aka pixels per inch.
How is an image converted from analogue to digital?
- A grid is placed over the image
- An average colour is found for each pixel and assigned a binary value
- Each pixel is represented by multiple bits, one combination a shade
- The number of bits in a pixel is called the colour/bit depth.
What affects an image’s size?
Increasing Resolution; Increasing Colour Depth
Size = Pixel Size x Colour Depth (in bits)
What is Metadata?
It is data about data, for example it allows the image to be displayed properly as well as other unneeded data:
- File name; format; colour depth; resolution; camera details
What is the difference between analogue and digital data?
Analogue signals are continuous, represented by waves.
Digital data is discrete, falling between defined ranges and taking only certain values.
Computers require digital data, as it cannot read analogue signals.
What is a sampling frequency?
It is the number of samples obtained over second, measured in hertz. The greater the sampling frequency, the better quality but the larger file.
How is sound digitized?
- Several samples should be taken at regular intervals, with a binary value given to each reading
What is a sample size?
It is the bit depth