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 | |
|---|---|---|
| 1interrupt | AAn interrupt is a signal, not a program. The CPU may run a program (a routine) in response, but the interrupt itself is just the signal. | |
| 2resume original task | BA signal sent to the CPU telling it to pause its current task so something more urgent can be dealt with | |
| 3An interrupt is a signal, not a program, that makes the CPU stop its current task temporarily | CAn interrupt does not mean the computer has crashed. It is a normal signal, and the CPU returns to its original task afterwards. | |
| 4An interrupt does not mean the computer has crashed, because normal work continues afterwards | DAfter the interrupt is dealt with, the CPU goes back to the task it was doing before | |
| 5An interrupt is a program that runs inside the CPU | Einterrupt handled -> continue task | |
| 6interrupt received -> computer has crashed | Fsignal -> CPU: STOP current task |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
interrupt — A signal sent to the CPU telling it to pause its current task so something more urgent can be dealt with. The CPU then returns to the original task. It is not a crash.IF interrupt = TRUE THEN
PAUSE current_task
ENDIFIF interrupt = TRUE THEN
PAUSE current_task
ENDIFHANDLE interrupt
RESUME original_taskinterrupt ← TRUE
crashed ← FALSEIF urgent = TRUE THEN
PAUSE task
ENDIF