logo

Question detail

A sequence contains the values A, A, A, B, B, C. Which is a suitable run length encoding representation?

Try the question, check the answer, then read the explanation to understand the curriculum point.

At a glance

MCQ

Type

practice

Style

Topic

Representing images, sound and other data

Exam-style question

Try this first

A sequence contains the values A, A, A, B, B, C. Which is a suitable run length encoding representation?.

  1. A.3A2B1C
  2. B.A3B2C1
  3. C.3A3B
  4. D.AABBC1

Model answer

What a good answer should say

  • 3A2B1C

Explanation

Why this works

Run length encoding represents consecutive repeated values by storing the number of repetitions and the value. Three As, followed by two Bs and one C, can therefore be represented as 3A2B1C.

Common mistake

No common mistake is linked to this question yet.

Related flashcards

No flashcards are published for this page yet.

Related practice questions

No questions are published for this page yet.