Six original Cambridge-style questions on assemblers, compilers and interpreters, with mark-scheme solutions.
Describe how a compiler translates a high-level language program and how it reports errors.
Describe how an interpreter translates a high-level language program and how it reports errors.
State the type of translator needed for: (a) a program written using mnemonics such as LDD and ADD; (b) a program written in Python that is to be sold as an executable file.
Give two advantages of a compiler and two advantages of an interpreter.
A programmer uses an interpreter while writing an app and a compiler when the app is finished. Explain why.
A program is run with an interpreter. It outputs two lines and then stops with an error message. When the same program is compiled, nothing is output at all. Explain the difference.
Mark this once you have attempted all six and checked your working. It records a Practiced badge on the topic and adds a one-time bonus. Revealing the solutions alone does not count.