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 | |
|---|---|---|
| 1ALU | AThe CU does not do calculations or comparisons. The ALU does arithmetic and logic. The CU only controls and coordinates. | |
| 2ACC <- ACC + 5 | B(age >= 16) AND (hasTicket == TRUE) | |
| 3The ALU performs arithmetic, such as subtracting one number from another | CThe part of the CPU that carries out arithmetic calculations and logical comparisons | |
| 4The ALU performs logical decisions, such as comparing two values with AND | Dresult = 20 - 8 | |
| 5The control unit (CU) adds the numbers 4 + 3 and does the comparisons. | EThe ALU does arithmetic (add, subtract) and also logical operations (AND, OR, NOT, comparisons). | |
| 6The ALU can only add numbers. It cannot do logic such as AND, OR, NOT. | FThe ALU adds 5 to the value held in the accumulator and stores the result back in the accumulator |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
ALU — Arithmetic logic unit: the part of the CPU that does calculations (add, subtract) and logic decisions (AND, OR, NOT, comparisons). Results are held in the accumulator.ACC ← 10
ACC ← ACC + 5ACC ← 20
ACC ← ACC - 8IF age >= 16 AND mark > 50 THENIF a = 1 OR b = 1 THENACC ← ACC + 5