Question 1
4 marksDid your answer earn the marks?
20 original exam-style questions - 11 pages of questions with a full mark scheme - free printable PDF.
FOR i = 0 TO LEN(runLengths) - 1
count = 0
WHILE count < runLengths[i]
output = output + symbols[i]
count = count + 1
ENDWHILE
NEXT i
OUTPUT outputOUTPUT totalBytes
This checks your answers in your browser, stores nothing on a server and needs no account.