logo

AQA A-Level Computer Science practice

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

Try the question first, then check the answer and practise the same topic again.

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

Answer and explanation

Concise answer

3A2B1C

Why this is correct

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.

Use the concise answer above for a quick check, then reveal the full model answer and detailed explanation.

Common mistake

No common mistake is linked to this question yet.

Related flashcards

No flashcards are published for this page yet.

Related practice questions