Note AcademyNote Academy

Computer Science · Oct / Nov 2021 · Paper 12 · Question 6

0478

As printed in the paper

The question as text

A programmer can use translators, such as an interpreter and a compiler, when developing a computer program.

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

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

    Any one from:

    They both translate high-level language into machine code / low-level language
    They both check for errors
    They both report errors
  • 6(b)[4]

    Four from (Max 2 per translator):

    An interpreter translates and executes the code line by line
    … whereas a compiler translates and executes the whole code all in one go
    An interpreter stops translating and reports an error as it finds one
    … whereas a compiler produces an error report at the end of translation
    An interpreter does not produce an executable file
    … but a compiler does produce an executable file
    An interpreter will execute the code until it finds an error
    … whereas a compiler will not execute any code if there are errors present
    An interpreter allows correction of errors in real-time
    … whereas a compiler needs to retranslate the code each time after errors are found and corrected
  • 6(c)[1]

    Assembler

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