Question 6(c) 2007 · May-June · Paper 3 · 4 marks
Reveal official mark-scheme answer
Official answer for Question 6
Part (c)
Part (c)
- Interpreter translates one command at a time and runs it before the next is translated.
- Used during writing because it aids debugging
- (Compiler translates whole program) into object code (before running)
- Runs faster once it has been called/may be held as a library routine.
Show text version of question
Question 6
Part (c)
Question 6
A name is passed as a parameter to a function.
The function uses a loop structure to search for the name in an array. It returns the details found to the calling program.
Part (c)
Two types of translator are interpreters and compilers.
Describe the difference between an interpreter and a compiler and state why both would be used with this function.
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_s07_qp_3.pdf
