Note AcademyNote Academy

Computer Science · May / June 2022 · Paper 11 · Question 6

0478

As printed in the paper

The question as text

A compiler and an interpreter are two different types of translator.

Read automatically from the paper; the printed page above is exact.

Show the answer and mark scheme
  • 6(a)(i)[1]

    They both report/check for errors
  • 6(a)(ii)[4]

    Four from (MAX 2 per translator):

    An interpreter translates the code line by line (and executes each line immediately)
    … whereas a compiler translates the whole code at the same time (before executing it)
    A compiler produces an executable file
    … but an interpreter does not
    An interpreter is required to run the code each time if used
    … whereas a compiler is not
    An interpreter stops and reports an error as it is encountered
    … whereas a compiler creates a report of all errors at the end of translation
    An interpreter will run code up to the point it finds an error
    … whereas a compiler will not run the code at all if an error is found

Make a free account to save your answers and see your weak topics and ask the AI why a wrong answer is wrong.