AP® Computer Science Principles Data Analysis Multiple Choice Questions
Work through AP Computer Science Principles multiple-choice questions on Data Analysis, then check each answer against a worked solution.
Free · no sign-up Open questions need no account. Sign up or log in to open the rest.
Subtopic: Data Insights Clear filter
Question 2
A person wants to transmit an audio file from a device to a second device. Which of the following scenarios best demonstrates the use of lossless compression of the original file?
Main Solution
Correct Answer: A
Lossless compression is a method of reducing file size in a way that allows the original data to be perfectly reconstructed from the compressed data. No information is lost in the process.
In option A, the device compresses the audio file (reducing its size) and then the second device restores the compressed file to its original version before playing it. This is the defining characteristic of lossless compression — the original file can be fully recovered from the compressed version.
Why the other options are wrong:
- B: Removing details not easily perceived by the human ear describes lossy compression (e.g., MP3 encoding), where some data is permanently discarded and the original cannot be perfectly reconstructed.
- C: Transmitting the original file and then removing metadata is not compression at all — it is simply editing the file after transmission.
- D: Transmitting the original file without any compression and playing it as-is involves no compression whatsoever.
Teacher Explanation
This question tests students' understanding of the distinction between lossless and lossy compression. Lossless compression preserves all original data and allows perfect reconstruction; lossy compression permanently removes some data to achieve greater size reduction. Students should recognize that the key phrase in option A — "restores the compressed file to its original version" — is the hallmark of lossless compression.
Education Coach Advice
On the AP CSP exam, remember the key distinction: lossless = original can be perfectly restored; lossy = some data is permanently removed. When you see a question about compression, look for the phrase about restoring or reconstructing the original — that signals lossless. If the question mentions removing details or reducing quality, that signals lossy.
Traps
The most common trap is option B. Students may think that compressing an audio file by removing imperceptible details is a form of lossless compression because the human ear cannot detect the difference. However, this describes lossy compression — data is permanently removed and the original file cannot be reconstructed. Lossless compression, by definition, allows full recovery of the original data.
Answer images
Question 3
Question 4
Question 5
Question 6
Question 7
Question 8
AP® and Advanced Placement® are registered trademarks of the College Board, which is not affiliated with, and does not endorse, Verityprep. Names are used for identification purposes only.

