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 | |
|---|---|---|
| 1high-level: portable | ALow-level languages are machine dependent, so they only work on the processor they were written for. High-level languages are the portable ones. | |
| 2low-level: direct hardware control | BThe programmer can control memory, registers and other hardware directly, which suits device drivers and embedded systems. | |
| 3High-level code is easier to read, write and debug because it uses English-like words and statements. | CHigh-level languages give less direct hardware control because they hide the hardware details. Being easy to read does not give more control. | |
| 4Low-level code is hard to read and debug because each line is a single machine-level instruction. | DLDA 20 ADD 21 STA 22 | |
| 5Low-level languages are portable because they work on every type of computer. | EIF score >= 50 THEN PRINT "Pass" | |
| 6High-level languages give the most hardware control because they are easy to read. | FThe same program can run on different types of computer with little or no change, because it is not tied to one processor. |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
high-level vs low-level — High-level is easy to read, debug and portable but gives less hardware control; low-level is hard to read and machine dependent but gives direct hardware control.High-level code is easy to read because
it uses English-like words.Low-level code is machine dependent because
it is written for one type of processor.Low-level languages give direct control of
the hardware, so they suit device drivers.High-level code is portable but gives less
control of the hardware.Four criteria: readability, debugging,
machine independence, hardware control.