AP Computer Science Principles Flashcards: Data Compression

Study Data Compression in AP Computer Science Principles with focused flashcards that help you recognize the idea, recall the key rule, and apply it in practice-style prompts.

QUESTION

Which compression type typically results in smaller file sizes?

Tap card or press Space to flip

ANSWER

Lossy compression. Removing data allows for greater size reduction.

1 / 40

AP Computer Science Principles: Data

All flashcards

40 cards

What this deck covers

This deck focuses on Data Compression, giving you a quick way to review the definitions, rules, and examples that matter most for AP Computer Science Principles.

How to use these flashcards

Work through these flashcards in short sessions. Try to answer each prompt before flipping the card, then revisit any cards you miss until the explanation feels automatic.

Practice questions

1 of 43Practice questions for this set
Read the passage. In a streaming service, compression shrinks data so videos load quickly and use less bandwidth. The text explains that lossless compression preserves every bit of information, while lossy compression removes some details to achieve smaller files. For digital media, JPEG commonly compresses photos by discarding subtle image data, and MPEG commonly compresses video by reducing repeated or less-noticeable visual information across frames. This creates a trade-off: smaller files and smoother streaming versus potential blur or blocky artifacts. In contrast, text and program files often use lossless methods such as Huffman coding and LZW, since even a missing character can change meaning. Based on the text, why is lossy compression preferred in streaming video?
Choose an answer

Keep your progress across every deck

Free account · cards you mark are saved to it