Choosing how to earn college credit? CLEP vs AP guide
| preferred AP College board partner for AP classes
AP Computer Science Principles/Big Idea 2: Data
Start Practice TestPractice Test
About Exam
hard

Decoding Run-Length Compression

Mark
< Prev
Next >

A student media project uses a simple run-length encoding scheme to compress black-and-white pixel data. The encoding stores pairs of numbers: the first number indicates the count of consecutive pixels, and the second number indicates the color (0 for white, 1 for black).

The compressed data sequence is: 3, 1, 2, 0, 4, 1.

Which of the following represents the original uncompressed pixel sequence?

A

1, 0, 0, 1, 1, 1, 1, 0, 0

B

1, 1, 1, 0, 0, 1, 1, 1, 1

C

3, 1, 2, 0, 4, 1

D

0, 0, 0, 1, 1, 0, 0, 0, 0

Hint
Did You Know?
Explain Why
Explain All Answers
Check Answer
Show Correct Answer
Report Question

Question Leaderboard

Not enough data yet to show leaderboard.

No comments yet. Be the first to comment!

AI Tutor

How can I help?

APFIVE © 2020.
Email: apfive@apfive.org|Instagram: @_apfive_|Privacy Policy|