Why is data stored in binary
Inside cpu there are transistors that can only be on or off representing 1 and 0
How can you calculate image files size
Height * width*colour depth
Sound file size in bits
Sample rate* duration*bit depth
Text file size
Number of characters * bits per character
How is an image stored in binary
An image is made of pixels ,each with a colour, each colour has a unique binary code
What is a pixel
The smallest part of an image that is a square with one colour
What is metadata
Extra data stored with an image
What is colour depth
Number of bits used to store each individual colour
What is ment by resolution
Number of pixels contained in an image
How are characters stored in binary
Each character is given a unique binary code
What is a character set
The characters and symbols a computer can represent
Ascii
8 bit, logically ordered, store 256 characters
Unicode
16 bit, logically ordered, 65536, allows all languages and emojis
How is sound stored
Sound wave sampled
The height of the wave is measured
At regular intervals
And stored in binary
What does sampling mean
When the amplitude of the sound wave is measured at set intervals
What is sample rate
Number of samples per second
What is duration
How long the sound file is