ADD one 0001 0000 0001 STA score 0011 0011 1010 An interpreter would translate the code between which two types of language? From high level language … to machine code … What are some of the advantages and disadvantages of using an interpreter rather than a compiler? Compiler translates code in one batch interpreter translates one line at a time. … Compiler provides a list of all syntax errors interpreter stops at the first error. … Compiler translates all code before executing interpreter executes each line as soon as it is translated. … Compiler produces a machine code file interpreter does not. … Compiled code can be executed again without being re-translated interpreted code needs to be translated each time it is run. … Compiled machine code keeps the source code secret interpreted programs mean that the source code is visible. … A programmer wants to write a computer program for creating 3D models that can be used by pupils in schools. They are not sure whether to write it in assembly language or a high level language. They are not sure what kind of translator to use either. What are the consequences for each choice and advise the programmer on what to do. The following is indicative of possible factors/evidence that candidates may refer to but is not prescriptive or exhaustive: Indicative Content: Assembly Language Harder / more time consuming to write Produces more lines of code Produces code that could be more efficient Harder to maintain / update use libraries to speed up programming Can’t Likely to run very quickly Machine specific would need to be re-written for a different platform – High Level Language More use friendly to write Easier to maintain / update Can use libraries to simplify some sections
ADD one STA score 0001 0000 0001 0011 0011 1010 An interpreter would translate the code between which two types of language? From high level language … … to machine code What are some of the advantages and disadvantages of using an interpreter rather than a compiler? Compiler translates code in one batch … interpreter translates one line at a time. Compiler provides a list of all syntax errors … interpreter stops at the first error. Compiler translates all code before executing … interpreter executes each line as soon as it is translated. Compiler produces a machine code file … interpreter does not. Compiled code can be executed again without being re-translated … interpreted code needs to be translated each time it is run. Compiled machine code keeps the source code secret … interpreted programs mean that the source code is visible. A programmer wants to write a computer program for creating 3D models that can be used by pupils in schools. They are not sure whether to write it in assembly language or a high level language. They are not sure what kind of translator to use either. What are the consequences for each choice and advise the programmer on what to do. The following is indicative of possible factors/evidence that candidates may refer to but is not prescriptive or exhaustive: Indicative Content: Assembly Language Harder / more time consuming to write Produces more lines of code Produces code that could be more efficient Harder to maintain / update Can’t use libraries to speed up programming Likely to run very quickly Machine specific – would need to be re-written for a different platform High Level Language More use friendly to write Easier to maintain / update Can use libraries to simplify some sections