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 | |
|---|---|---|
| 1ISR | AAn ISR should be short so the CPU can return quickly to what it was doing. | |
| 2ISR_keyboard() and ISR_printer() | BEach type of interrupt has its own ISR, because each one needs different instructions to deal with it. | |
| 3The operating system chooses which ISR to run for the interrupt that has occurred | Cinterrupt = printer_error run ISR_printer_error | |
| 4An ISR is short so the CPU can return quickly to the task it was doing | DA different ISR for each type of interrupt | |
| 5One ISR is used to deal with every type of interrupt | EA small program the CPU runs to deal with one particular interrupt | |
| 6The ISR is a long program that takes a long time to finish before the CPU returns to its task | FISR_keypress read key store in buffer return to task |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
interrupt service routine (ISR) — A small program the CPU runs to deal with one particular interrupt. Each type of interrupt has its own ISR, kept in memory, and it is short so the CPU can quickly return to its task.IF interrupt = KEYBOARD THEN CALL keyISRIF interrupt = MOUSE THEN CALL mouseISRDECLARE ISRtable : ARRAY[1:5] OF STRINGinterruptType ← GetInterrupt()
CALL ISRtable[interruptType]PROCEDURE mouseISR()
OUTPUT "Mouse clicked"
ENDPROCEDURE