A programmer can use translators, such as an interpreter and a compiler, when developing a computer program.
- (a)Give one similarity between a compiler and an interpreter.[1]
- (b)Describe two differences between a compiler and an interpreter. Difference 1 Difference 2[4]
- (c)Identify one other type of translator.[1]
Mark scheme
Marking points from the official mark scheme (Oct/Nov 2021). The mark or mark type is shown in brackets.
- 6(a) 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) 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) - Assembler
Write your answer and get it marked
On Oracle Prep you can write or photograph your own answer and have it marked by AI against this mark scheme, with feedback on what you missed.
Sign up free →