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 | |
|---|---|---|
| 1Run 1: translate line 1, line 2, line 3... Run 2: translate line 1, line 2, line 3... | AThis is wrong because an interpreter works line by line and stops at the first error, so only one error is shown at a time. | |
| 2Give the user: game.py + Python interpreter | Bfor i in range(1000): translate(line) then execute(line) | |
| 3Interpreted programs run more slowly because each line is translated while the program is running | CThe source code and the interpreter must both be supplied to anyone who wants to run the program | |
| 4An interpreter stops at the first error it finds, so only one error is shown at a time | DThe interpreter translates the source code again from the start every time the program is run | |
| 5Once an interpreter has run a program, the user no longer needs the source code or the interpreter to run it again. | EThis is wrong because the interpreter produces no saved executable file, so both the source code and the interpreter are needed every time. | |
| 6An interpreter lists every error in the whole program after translating all of it at once. | FLine 4: SyntaxError (fix it, run again, then Line 9: SyntaxError) |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
line by line every run — An interpreter translates the source code again on every run, so programs run slower and need the interpreter and source code each time. Only one error is shown at a time.Translation happens again on every runInterpreted code runs slower than compiledUsers need the source code and the
interpreter to run the programThe user must be given the source codeOnly one error is shown at a time