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 | |
|---|---|---|
| 1game.exe | ALine-by-line translation at run time is how an interpreter works. A compiled program is translated once beforehand, so it runs faster. | |
| 2compiler.translate(source) -> report | Bgive users: game.exe (keep game.py) | |
| 3A compiled program runs faster because no translation happens while it is running | CAn executable does not need the compiler to run. The translation was already done, so the compiler is not needed on the user's computer. | |
| 4Source code stays private because only the executable is given to users | DThe compiler translates the whole program and then gives a report of all the errors it found | |
| 5Users must install the compiler to run game.exe | Etranslate once -> run many times | |
| 6Compiled programs run slowly because they are translated line by line each time | FAn executable file made by a compiler that can run on its own, without the compiler or the source code |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
compiled program — A program translated all at once into an executable. It runs faster, needs no compiler to run, keeps the source code private, and gives a whole-program error report.EXE ← COMPILE("game.c")RUN("game.exe")app ← COMPILE("game.c")
SHARE(app)// The compiler reports all errors at onceIF compiled = TRUE THEN
OUTPUT "Runs faster"
ENDIF