Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.
Shade in the A or B circle for each question.
Draw a line connecting each item on the left to its match on the right.
| Left column | Right column | |
|---|---|---|
| 1compiler: translates the whole program | AThe compiler translates all of the source code in one go and produces an executable file, which can then be run without the compiler or the source code. | |
| 2interpreter: translates line by line | BCompiler: Error on line 3, Error on line 9, Error on line 14 | |
| 3A compiler gives a full list of errors after it has tried to translate the whole program | CInterpreter: Error on line 3 - stopped | |
| 4An interpreter stops at the first error it meets, so later lines are not checked until that one is fixed | DA compiled program is translated once into an executable, so it runs without further translation and is usually faster. An interpreted program is translated every time it runs. | |
| 5An interpreter creates an executable file that can be sent to other users | EThe interpreter translates one statement, runs it, then moves to the next. It produces no executable file, so the source code and interpreter are needed every time. | |
| 6A compiled program must be translated again every time it is run, so it runs more slowly than an interpreted one | FAn interpreter does not create an executable file. Only a compiler does. Users need the interpreter and the source code to run the program. |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
compiler vs interpreter — A compiler translates the whole program into an executable before it runs; an interpreter translates and runs line by line, stopping at the first error, with no executable.Compiler: translates the whole programInterpreter: translates line by lineCompiler produces an executable fileInterpreter stops at the first errorCompiled code runs faster than interpreted