A source-code file must be restored exactly after being compressed. Which approach is appropriate?
Lossless compression
Lossy compression
Transform coding with irreversible quantization
Removing selected characters permanently
Select both statements that correctly describe run-length encoding (RLE).
It represents a consecutive run using a symbol and its repetition count.
It can reduce the size of data containing long repeated runs.
It always makes every input shorter, even when no symbols repeat.
It is lossy because it permanently removes repeated symbols.
It transforms image blocks into frequency components.
Using count-then-symbol notation, encode LLLLLLMMNNNNPP with RLE. State the number of symbols in the original and encoded forms, and explain what the comparison shows under the simple one-symbol-per-character assumption.
LLLLLLMMNNNNPP
A designer must keep the exact text of an assignment and create small JPEG previews of a photograph. Explain which type of compression is suitable for each file. Then describe how transform coding reduces the photograph's representation and identify why the result is lossy.
Automatically graded answers are checked in your browser. Written answers are sent to Lovable AI to be marked against the answer-key rubric; they are not saved and nothing is written to the course Drive. AI marks are practice feedback, not official IB grades.