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 %.
Related study packs and tools
01. Introduction to Programming and Algorithmic Problem Solving
A medium-difficulty assessment of programming fundamentals, algorithmic problem solving, control flow, data structures, testing, debugging, complexity, and decidability. Questions progress from foundational understanding to applied reasoning.
AP Computer Science A: Integrated Java Problem Solving
A practical review of the integrated Java skills, debugging habits, algorithm reasoning, and free-response strategies needed for AP Computer Science A.
Fault Tolerance and Redundant Systems
A progressive guide to designing, operating, and testing systems that continue useful service despite component faults, overload, data loss, and recovery challenges.
How the Internet Works
A medium-difficulty quiz on how independently operated networks, protocols, addresses, naming systems, transport services, and routing mechanisms work together to form the Internet.
Java ArrayList and Collections: Operations, Traversals, and Algorithms
Learn how to create, modify, traverse, and analyze Java lists with ArrayList, wrapper types, standard algorithms, and the Collections utility class for AP Computer Science A.
Java Boolean Logic and Selection
Build a clear understanding of Java Boolean expressions, logical operators, selection statements, nested branching, equivalent logic, and systematic code tracing for AP Computer Science A.
Java Foundations and Program Design
A practical introduction to Java program structure, data types, operators, input and output, problem-solving strategy, testing, and debugging for AP Computer Science A.
Java Inheritance and Polymorphism
A practical guide to Java inheritance, constructor chaining, method overriding, polymorphism, access control, and object behavior for tracing and writing AP Computer Science A programs.
Java Objects, Classes, and the String API
A focused guide to Java classes, object references, constructors, methods, strings, wrapper classes, and API usage for AP Computer Science A.
Java Primitive Types and Expression Evaluation
A focused guide to Java primitive types, expression evaluation, numeric conversion, floating-point behavior, integer overflow, and common methods in the Math class for AP Computer Science A.
Java Primitive Types and Expressions
A focused review of Java primitive types, expression evaluation, numeric conversion, arithmetic behavior, Math methods, randomness, and tracing techniques for AP Computer Science A.
Packets, Links, and Network Performance
A progressive guide to how packet-switched networks encapsulate data, move it across links, and manage delay, throughput, queues, and congestion.