5.2 Language translators
24 questions in this subtopic. Open a question to solve it and check the official answer.
Language translators · 2 marks · official answer ready
(c) Describe one benefit and one drawback of using an interpreter for part of the software development. Benefit ...................................................................…
Language translators · 2 marks · official answer ready
(c) Describe one benefit and one drawback of using an interpreter for part of the software development. Benefit ...................................................................…
Language translators · 7 marks · official answer ready
(b) Use the following list to identify the labels 1 to 7 on the diagram opposite. Two of the items on the list will not be used. • Assembler • Compiler • Code execution • File all…
Language translators · 1 mark · official answer ready
(ii) Describe one drawback in the use of an interpreter. ..........................................................................................................................…
Language translators · 2 marks · official answer ready
(i) State when and how syntax errors are detected. [2]
Language translators · 2 marks · official answer ready
(i) State when and how syntax errors are detected. [2]
Language translators · 2 marks · official answer ready
(a) A source code program is compiled for the first time. State two outputs that could be produced by the compiler. 1 2 [2]
Language translators · 2 marks · official answer ready
(b) Describe two benefits of using a compiler (rather than an interpreter). 1 2 [2]
Language translators · 3 marks · official answer ready
(c) Explain what is meant by code optimisation. [3]
Language translators · 6 marks · official answer ready
4 (a) Explain differences between using an interpreter and a compiler when translating and executing a source code program. [6]
Language translators · 6 marks · official answer ready
4 (a) Explain differences between using an interpreter and a compiler when translating and executing a source code program. [6]
Language translators · 4 marks · official answer ready
4 (a) Explain why an interpreter may be preferred to a compiler as a translator when writing a high- level language program. [4]
Language translators · 0 marks
(i) the translation of a high-level language program,
Language translators · 6 marks
(ii) the execution of a high-level language program. [6]
Language translators · 0 marks
(i) the translation of a high-level language program,
Language translators · 6 marks
(ii) the execution of a high-level language program. [6]
Language translators · 2 marks · official answer ready
(i) Name the two phases that are carried out before code generation. [2]
Language translators · 2 marks · official answer ready
(i) State one reason for using a compiler rather than an interpreter to execute a piece of high level language code. Justify your answer. [2]
Language translators · 2 marks · official answer ready
(ii) State one reason for using an interpreter rather than a compiler to execute a piece of high level language code. Justify your answer. [2]
Language translators · 6 marks · official answer ready
7 Describe how a variable in a high level language program is dealt with by a compiler. [6] 3
