Exam-style question
Try this first
Explain one difference between how a compiler and an interpreter translate high-level programming code into machine code. Outline your point and develop it with an example or further detail. (2 marks) [2 marks].
Answer and explanation
Concise answer
A compiler translates the whole program into machine code before it is run, producing an executable file.
Why this is correct
1 mark for stating a valid difference (e.g., compiler translates the whole code before execution or produces an executable). 1 mark for developing the point with an example or expanded detail (e.g., running independently; C++). Total = 2 marks.
Use the concise answer above for a quick check, then reveal the full model answer and detailed explanation.
Common mistake
No common mistake is linked to this question yet.
