1.3 Data storage and compression Flashcards

(24 cards)

1
Q

What is a bit in computer data storage?

A

A bit is the smallest unit of data in a computer, represented as either 0 or 1.

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

How many bits are in a byte?

A

A byte consists of 8 bits.

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

What is the size of 1 Kibibyte (1 KiB)?

A

1 KiB equals 1,024 bytes.

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

How many bytes are in 1 Mebibyte (1 MiB)?

A

1 MiB equals 1,048,576 bytes.

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

What is the size of 1 Kilobyte (1 KB) in the conventional system?

A

1 KB equals 1,000 bytes.

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

How many bytes are in 1 Gigabyte (1 GB) in the conventional system?

A

1 GB equals 1,000,000,000 bytes.

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

How many bytes are in 1 Gibibyte (1 GiB)?

A

1 GiB equals 1,073,741,824 bytes.

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

How many bytes are in 1 Terabyte (1 TiB)?

A

1 TiB equals 1,099,511,627,776 bytes.

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

How do you calculate the file size of an image?

A

The file size of an image is calculated by multiplying the image resolution (in pixels) by the colour depth (in bits).

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

How do you calculate the file size of a mono sound and stereo file?

A

For mono sound:

File Size = Sample Rate × Sample Resolution × Length of Sample

For stereo sound:

File Size = Sample Rate × Sample Resolution × Length of Sample × 2

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

What is the main purpose of data compression?

A

The main purpose of data compression is to reduce file sizes, requiring less storage space, reducing bandwidth usage, and speeding up transmission times.

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

What is lossless compression?

A

Lossless compression reduces the file size without losing any data. It allows the original file to be reconstructed exactly after decompression.

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

What is an example of a lossless compression algorithm?

A

An example of a lossless compression algorithm is Run-Length Encoding (RLE).

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

How does Run-Length Encoding (RLE) work?

A

RLE compresses data by encoding repeating sequences. For example, the string “aaaaabbbbccddddd” would be compressed as “05 97 04 98 02 99 05 100”.

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

What is a limitation of Run-Length Encoding (RLE)?

A

RLE is not effective for data with few repeating patterns. For example, alternating patterns like “cdcdcdcd” would not compress well using RLE.

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

What is lossy compression?

A

Lossy compression reduces file size by permanently removing some data, typically reducing image resolution, colour depth, or audio sample rates. The original file cannot be fully restored after compression.

17
Q

What are two examples of lossy compression formats?

A

MP3 (for audio) and JPEG (for images) are both examples of lossy compression formats.

18
Q

How does MP3 compression work?

A

MP3 compression reduces the file size by removing sound frequencies that are less perceptible to the human ear, achieving up to a 90% reduction in file size.

19
Q

How does JPEG compression work?

A

JPEG compression reduces the file size by lowering the image resolution or colour depth, which removes less important visual data.

20
Q

What is the MIDI file format used for?

A

MIDI (Musical Instrument Digital Interface) is used for storing music as a series of commands, not actual audio. It enables electronic musical instruments to communicate with each other.

21
Q

What type of files can be stored in the MP4 format?

A

MP4 is a multimedia file format that can store audio, video, images, and animations.

22
Q

How does file compression impact the quality of a file?

A

Lossy compression reduces file quality by removing some of the original data, while lossless compression maintains the original quality.

23
Q

What is the key difference between lossless and lossy compression?

A

The key difference is that lossless compression retains all the original data, while lossy compression permanently discards some data to reduce file size.

24
Q

How does compression reduce bandwidth and storage requirements?

A

Compression reduces the size of the file, meaning it requires less bandwidth to transmit and less storage space to save.