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 | |
|---|---|---|
| 1Assembly code -> assembler | AAn interpreter needs the source code each time and runs slowly. A compiler should be chosen for release because it gives an executable file. | |
| 2Testing a program -> interpreter | BInterpreter, because it stops at the error line | |
| 3Releasing software to customers: choose a compiler because it makes an executable file that does not need the source code. | CAssembly language can only be translated by an assembler, so choose an assembler for it. | |
| 4A justified answer names the translator and gives a reason after the word 'because'. | DTranslator = compiler (release) | |
| 5Assembly code -> use a compiler | EA compiler translates high-level code, not assembly language. Assembly code needs an assembler. | |
| 6Selling the game to customers -> interpreter | FWhile a program is being developed and tested, choose an interpreter because it runs line by line and stops at an error. |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
choose a translator — Pick an assembler for assembly code, an interpreter while testing a program, or a compiler for release to customers, then justify your choice using 'because'.IF language = "assembly" THEN
translator ← "assembler"
ENDIFIF stage = "testing" THEN
translator ← "interpreter"
ENDIFIF stage = "release" THEN
translator ← "compiler"
ENDIFstage ← "release"
OUTPUT "Compiler because it is for release"IF language = "assembly" THEN
translator ← "assembler"
ENDIF