← AP CSP

Data: AP CSP practice

Compression, metadata and using data. 9 questions in the style of the AP CSP exam.

Sample questions

A hospital needs to compress medical scan images to save storage space, but every detail of each image must be recovered exactly when it is opened. Which type of compression should be used?

  1. Either type, because both restore the original exactly
  2. No compression is possible for images
  3. Lossy compression
  4. Lossless compression

In a survey, people typed their state as "NY", "New York" and "new york". Before counting responses by state, an analyst changes all of these to "New York". What is this process called?

  1. Overflow
  2. Data cleaning
  3. Encryption
  4. Lossy compression

A sound is recorded by measuring (sampling) the analog signal at regular intervals. What is the main effect of taking samples more often?

  1. The digital version is a closer match to the original, but the file is larger
  2. The file is smaller and the sound is less accurate
  3. The sound is converted into lossless metadata
  4. There is no effect, because digital data is always exact