Data Storage & Compression Flashcards

1
Q

How many bits are in a byte?

A

8 bits.

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

How many bytes are in a Kibibyte?

A

1024 bytes

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

What is the difference between a megabyte and a mebibyte?

A

A megabyte is 1000 squared bytes, while a mebibyte is 1024 squared bytes.

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

True or False?

When converting between units larger than a byte, we use multiples of 1000.

A

False.

When converting between units larger than a byte, we use multiples of 1024 (2^10).

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

What is a Tebibyte?

A

1,099,511,626,776 bytes (2^40 bytes).

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

How do you convert from bytes to bits?

A

multiply by 8.

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

How do you convert from kibibytes to bytes?

A

multiply by 1024.

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

What is the formula for calculating the size of a bitmap image?

A

Resolution x color depth
or
Image width x image height x color depth

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

True or False?

A color depth of 24 bits is equal to 3 bytes.

A

True.

A color depth of 24 bits is equal to 3 bytes.

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

What is the formula for calculating the size of a sound file?

A

Sample rate x duration x sample resolution.

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

Define sample rate.

A

Sample rate is the number of samples taken per second in a digital audio recording.

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

Define sample resolution.

A

Sample resolution is the number of bits stored per sample in a digital audio recording.

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

How do you convert file size from bits to bytes?

A

divide by 8

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

How do you convert file size from bytes to kibibytes?

A

divide by 1024

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

Define compression

A

Compression is reducing the size of a file so that it takes up less space on secondary storage.

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

State three benefits of compression.

A
  • Less storage space required
  • Less bandwidth required
  • Shorter transmission time
17
Q

Define lossy compression.

A

Lossy compression is a method of data compression where data is lost in order to reduce file size, resulting in a loss of quality but smaller file sizes.

18
Q

Define lossless compression.

A

Lossless compression is a method of data compression where data is encoded to reduce file size without losing any information, allowing the original data to be perfectly reconstructed.

19
Q

True or False?

Lossy compression is reversible.

A

False.

Lossy compression is irreversible

20
Q

What types of files are suitable for lossy compression?

A

Files suitable for lossy compression are those where reducing quality is acceptable, such as images, video, and sound files.

21
Q

How does lossy compression work on photographs?

A

In photographs, lossy compression tries to group similar colours together, reducing the number of colors in the image without significantly compromising the overall visual quality.

22
Q

True or False?

Lossless compression can be used on all types of data

A

True.

Lossless compression can be used on all types of data.

23
Q

How does lossless compression work on documents?

A

In documents, lossless compression uses algorithms to analyze the contents, looking for patterns and repetition, such as replacing repeating characters with a single character and the number of occurrences.

24
Q

What is the advantage of lossless compression over lossy compression?

A

An advantage of lossless compression is that the file can be returned to its original state without any loss of data quality.

25
Q

Describe how lossless compression compresses the text file.

A
  • Compression algorithm is used such as RLE
  • Patterns are identified with their position
26
Q

Give two reasons why the text file may have been compressed

A
  • To save storage space
  • To make it quicker to transmit