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 | AA translator that converts a whole high-level program into machine code before the program is run | |
| 2source.c -> compiler -> program.exe | BThe compiled machine code can run on its own. The source code is not needed to run it. | |
| 3A compiler translates the whole program in one go, before any of it is run | Ccompiler: high-level -> machine code; assembler: assembly -> machine code | |
| 4A compiler turns high-level code into machine code, but an assembler turns assembly language into machine code | DThis describes an interpreter, not a compiler. A compiler translates the whole program before it runs. | |
| 5A compiler translates and runs the program one line at a time | Ecompile(whole_program) THEN run(machine_code) | |
| 6The program only works if the source code is kept with the compiled file | FThe compiler translates all the source code into an executable file, which can run without 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.
compiler — A translator that converts a whole high-level language program into machine code in one go, before the program is run. The machine code can then run without the source code.source code -> compiler -> machine codehigh-level program -> compiler ->
machine codecompile(source)
delete(source)
run(program_exe)compiler: translates all of the code at oncecompiler input: high-level language