1.3 - data storage and compression ๐Ÿ“‚ Flashcards

1
Q

what systems exist for measuring memory size?

A

SI denary (kilobytes, megabytes, gigabytes, etc.) + IEC binary (kibibytes, mebibytes, gibibytes, etc.)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

whatโ€™s the equation for image file size?

A

file size = resolution * color depth

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

whatโ€™s the equation for audio file size?

A

file size = sample rate * resolution * sample length

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

how does lossy compression work?

A

it permanently erases all metadata deemed unnecessary from a file reducing in a smaller file that canโ€™t be used to reconstruct the original file

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

what are some examples of lossy file formats?

A

MP3 (only includes sounds within the human hearing range), JPEG (separates pixel colors and brightness levels in the original bitmap from each other)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

how does lossless compression work?

A

it effectively ensures no dataโ€™s permanently lost via RLE when there are long runs of repeated bits in the original file while still creating a smaller file

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

what are some examples of lossless file formats?

A

WAV (can include sounds outside the human hearing range while also not perceptually shaping the audio), PNG (keeps the same pixel colors and brightness that were in the original bitmap)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

when should lossy compression NEVER be used?

A

if the file to be compressed could become permanently corrupted with this kinda compression (eg. complex XLSX spreadsheets/large APKs and MSIs/ISO and DMG files for installing new OSes)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly