What is the primary purpose of data compression?
4. Data Compression Online Quiz Questions
Use this free practice quiz with 20 questions to review 4. Data Compression, test your knowledge, and prepare for your next test or exam.
True or false: After lossless decompression, the original data can be reconstructed exactly, bit for bit.
- A
True
- B
False
Which representation applies run-length encoding to the sequence AAAAABBB?
- A
A5B3
- B
5A3B
- C
5AB3
- D
A3B5
Which situation is an example of temporal redundancy?
- A
Nearby pixels in an image have similar colors.
- B
Some symbols occur more frequently than others.
- C
Consecutive audio or video frames are similar.
- D
A sound is masked by a louder sound.
A file is reduced from 10 MB to 2 MB. What is the size reduction? Enter the percentage-point value as a number; no tolerance is allowed.
When exact recovery of every bit is required, use compression.
True or false: PNG filters themselves reduce the number of bytes in the image before DEFLATE is applied.
- A
True
- B
False
Which technique exploits statistical redundancy by assigning shorter codes to more frequent symbols?
- A
Huffman coding
- B
Run-length encoding
- C
Quantization
- D
Temporal prediction
Select all data types for which lossless compression is appropriate because changes may be unacceptable.
- A
Source code and executable programs
- B
Legal, financial, or scientific records
- C
Photographs displayed on websites
- D
Spreadsheets and databases
What is the technical term for reducing precision in image data as part of a lossy compression process? Enter the term in lowercase.
Lossy compression produces an of the original data rather than an identical copy.
Select all factors that should be considered when selecting an appropriate compression method.
- A
Whether exact recovery is required
- B
The type of data being compressed
- C
Acceptable quality and quality settings
- D
Compatibility and preservation requirements
A diagram contains sharp text, flat colors, and transparency. Which choice is most appropriate for rapid delivery while preserving those features?
- A
Choose JPEG because it always preserves every pixel exactly.
- B
Choose PNG because the diagram has sharp text, flat colors, and transparency.
- C
Choose a lossy format because diagrams cannot be compressed losslessly.
- D
Choose ZIP alone because image formats cannot use compression.
A team must compress both a spreadsheet that will be edited later and a video that will be streamed over a limited-bandwidth connection. Recommend a compression approach for each and explain how quality, file size, and usability affect the choices.
A 10 MB file is compressed to 2 MB. What is its compression ratio?
- A
2:1
- B
4:1
- C
5:1
- D
8:1
A financial spreadsheet must be compressed for storage, and every cell must be recovered exactly after decompression. Which approach is most appropriate?
- A
Lossy compression, because spreadsheets contain repeated values
- B
Lossless compression, because every cell must be preserved exactly
- C
Lossy compression, because smaller files are always preferable
- D
No compression, because structured data cannot be compressed
True or false: In PNG, filtering is reversible preprocessing that can make data easier to compress, but the filters themselves do not reduce the number of bytes.
- A
True
- B
False
A designer needs to publish a diagram containing sharp text, flat colors, and transparent regions. Which format is the better choice according to the material?
- A
JPEG, because it always preserves sharp text better than PNG
- B
JPEG, because transparency requires lossy compression
- C
PNG, because it is well suited to sharp text, flat colors, and transparency
- D
Either format, because their compression behavior is identical
A file is reduced from 10 MB to 2 MB. What is its compression ratio? Enter the ratio as original size divided by compressed size; enter the number only.
A file is reduced from 50 MB to 35 MB. What is the size reduction? Enter the percentage-point value as a number only; the fixed unit is %.