Select one option to show what code should be written at point P5 of the algorithm in Figure 1 to correctly decompress a run-length encoded string consisting of single-digit counts followed by their corresponding characters (such as "3A2B" representing "AAABB").
Figure 1
compressed ← USERINPUT
decompressed ← ""
i ← 0
WHILE i < LEN(compressed)
count ← TO_INTEGER(compressed[i])
char ← compressed[i + 1]
j ← 0
WHILE j < count
decompressed ← decompressed + char
j ← j + 1
ENDWHILE
P5
ENDWHILE
OUTPUT decompressed
i←i+1i \leftarrow i + 1i←i+1
i←i+2i \leftarrow i + 2i←i+2
i←i+counti \leftarrow i + \text{count}i←i+count
i←i+ji \leftarrow i + ji←i+j
37 exam-style questions on AQA GCSE Computer Science Data compression. Each one has a worked solution and a mark scheme showing where the marks go.