Past-paper question · 2010 October-November · Paper 32 · Q4(a)
Question 4(a) 2010 · October-November · Paper 32 · 6 marks
Reveal official mark-scheme answer
Official answer for Question 4
Part (a)
Part (a)
-Interpreter translates one instruction and runs it before translating the next.
- Compiler translates whole program before it is executed
- Interpreter maintains source code throughout run/program execution
- Compiler creates the object code and drops the source code
- Interpreter must be present in memory during run/program execution
- Compiler removed once object code produced
- Object code larger than source code
- Compiled program runs more quickly once it is translated
- interpreter produces error diagnostics as they are met
- compiler produces a file of error diagnostics at end of compilation
- interpreter makes debugging easier
- compiler needs whole program to be syntax error free to produce object code
- interpreter can execute partial programs
- compiler needs a whole block of code to run
✓
(1 per -, max 6)
[6]
Show text version of question
Question 4
Part (a)
Explain differences between using an interpreter and a compiler when translating and executing a source code program.
[6]
Topic relevance
Why this question appears here
71% assigned-topic match · System software › Language translators
Topic-match percentages estimate how closely each question fits the selected syllabus topic. They are a guide for choosing stricter or broader practice.
Permanent source page: Educate A Change · From 9691_w10_qp_32.pdf
