data representation Flashcards
(23 cards)
Units of Data Storage
o Bit (1 or 0)
o Nibble (4 bits)
o Byte (8 bits)
o Kilobyte (1000B)
o Megabyte (1000KB)
o Gigabyte (1000MB)
o Terabyte (1000GB)
o Petabyte (1000 TB)
why Data must be stored in binary
because computers use switches that can be either on or off to process data.
what does
0 + 0,
1 + 0,
1 + 1,
1 + 1 + 1 equal to
0, 1, 10, 11
1 + 0 = 1
1 + 1 = 0 (carry the 1 across)
1 + 1 + 1 = 1 (carry the extra 1 across)
which direction does the binary shift to multiply / divide
if a number shifts 3 places right or 4 places left what happens to the number
left and right
halves 3 times ( ÷ by 2 to power of 3 = 8)
doubles 4 times ( x by 2 to power of 4 = 16)
if a number shifts 3 places right or 4 places left what happens to the number
halves 3 times ( divided by 2 to power of 3 = 8)
doubles 4 times ( multiplied by 2 to power of 4 = 16)
what denary number A mean in hexadecimal
10
Data Capacity: sound
Sound: File size = Sample rate (Hz) x Duration (s) x Bit depth (bits)
data capacity: image
Image: File size = Colour depth x Image height (px) x Image width (px)
data capacity: text
Text: File size = Number of characters x Bits per character
how does overflows happen
when you get a result that requires more bits than expected
Character Set meaning
stores all the characters that the computer can represent using unique binary codes for each.
ascii meaning
ASCII – uses 8 bits for each character and represents 256 characters.
unicode meaning
Unicode – uses 16 bits for each character and covers every possible character and all major languages.
images meaning
Represented as a series of pixels, represented in binary.
Each colour is represented by a binary code.
If a pixel has 3 bits, it can make 23 colours per pixel.
Colour Depth meaning
Number of bits used for each pixel.
More bits mean that more colours can be represented.
Improves image quality and increases file size.
Resolution meaning
Number of pixels in the image.
The higher the resolution, the more pixels the image is made of.
Improves image quality and increases file size.
analogue sound and sound wave meaning
Analogue sound waves need to be converted into digital form (ADConverter)
Sound wave is sampled meaning that the amplitude is measured at set intervals.
what is each sample stored as and what is the sample rate and what does greater sound rate mean
Each sample is stored sequentially as a binary number.
Sample Rate:
Number of samples taken per second (Hz).
Greater sample rate improves sound quality and increases file size.
bit depth meaning and greater bit depth improvement
Bit depth:
Number of bits available to store each sample e.g. 16 bits.
Greater bit depth improves sound quality and increases file size.
duration meaning
Duration – length of time the sound file lasts.
what is compression needed for
Compression is needed to speed up streaming, downloading files, loading web pages, and meeting size restrictions (e.g. email).
lossy compression
Lossy Compression:
Reduces the file size more so it uses less bandwidth to transmit and is faster to upload.
Removes any unnecessary detail e.g. reducing image quality.
Suitable for images and videos.
Data will be permanently lost.
lossless compression
Lossless Compression:
No data is lost/removed (only temporarily compressed meaning files can be decompressed).
Suitable for text files as they require all data to be kept in order to remain accurate