Memory And Storage (part 2) Flashcards
How many bits are in a byte?
8
How many bytes are in a kilobyte?
1000
How would you calculate the file size of a text file?
Number of bits per character x number of characters
How would you calculate the file size of an audio file?
Sample rate x duration (s) x bit depth
How would you calculate the file size of an image?
Colour depth x image width (px) x image height (px)
What do binary shifts do?
Divide or multiply the number
What are the problems with binary shifts?
- Can create an overflow
- Number is rounded and therefore loses precision
What is metadata?
Additional information stored about an image eg. height, width
What is a character set?
A defined list of characters recognised by the computer
Give 2 examples of character sets
- ASCII
- UNICODE
What is ASCII?
Early 7 bit character set which was later extended to 8 bits
What is UNICODE?
The modern most commonly used character set that uses 24 bits
How many characters can be used in a 7 bit character set?
27 = 128
How are images represented on a computer?
As a series of pixels which is represented in binary, each pixel has a specific colour and each colour has a specific code
What effect does increasing the colour depth have on an image?
- Increased file size
- Increased quality
What effect does increasing the resolution have on the image?
- Increased file size
- Increased image quality
What is colour depth?
The number of bits for each pixel
What factors affect the quality of digitally converted sound?
- Sample rate
- Bit depth
What is sample rate?
How often you record the amplitude of the sound wave
How is sound converted into a file?
The sound is sampled by measuring the height of the wave at set intervals and then converted into binary
What is sample rate measured in?
Hertz (Hz)
What effect does increasing the sample rate have on the file?
- Higher quality sound
- Larger file size
What is the bit depth?
The number of bits used for each sample
What does compression do?
Reduce the size of a file so it takes up less space on a storage device