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 | |
|---|---|---|
| 1LDA 200 | AMOV AX, 5 | |
| 2STA 305 | BPython is a high-level language that hides registers, so it does not give this direct control. Assembly or another low-level language should be used. | |
| 3Low-level code lets the programmer choose which register holds a value | CLoads the value stored at memory location 200 into the accumulator register | |
| 4High-level languages hide registers and memory addresses, giving less direct control | DThis is the wrong way round. Low-level languages let the programmer work with memory locations directly, while high-level languages hide them. | |
| 5A programmer writes in Python to choose exactly which register stores a value in a device driver. | Etotal = price + tax | |
| 6Low-level languages hide memory locations from the programmer so they never have to think about them. | FStores the value in the accumulator register into memory location 305 |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
direct hardware control — Low-level code can work directly with hardware, such as registers and memory locations, which high-level languages usually hide from the programmer.LDA 200 ; load from memory address 200LDA 200
STA 300 ; copy accumulator to address 300MOV R1, 5 ; put 5 into register 1LDA 200 ; load first number
ADD 201 ; add second number
STA 202 ; save result in memoryIN ; read from the keyboard
STA 200 ; store in memory
OUT ; send to the display