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 | |
|---|---|---|
| 1keyboard -> interrupt signal -> CPU | Amouse moved -> hardware interrupt -> CPU | |
| 2printer: out of paper -> interrupt | BPressing a key on the keyboard sends a hardware interrupt to the CPU so the key press can be dealt with. | |
| 3Moving the mouse is an event that makes the mouse send a hardware interrupt to the CPU. | CA hardware interrupt is generated by the hardware device (the keyboard), not by the CPU. The CPU receives the signal and responds to it. | |
| 4A device that finishes a data transfer sends a hardware interrupt so the CPU knows it can carry on. | Dtransfer complete -> hardware interrupt | |
| 5The CPU generates the hardware interrupt when a key is pressed. | EA printer running out of paper generates a hardware interrupt to tell the CPU it needs attention. | |
| 6A hardware interrupt is caused by an error in a program, such as dividing by zero. | FAn error in a program, such as divide by zero, causes a software interrupt. A hardware interrupt comes from a hardware device such as a keyboard, mouse or printer. |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
hardware interrupt — A signal sent by a hardware device, such as a keyboard, mouse or printer, to tell the CPU it needs attention, for example a key press or a printer out of paper.A hardware interrupt is sent by a deviceIF keyPressed THEN SEND interrupt TO CPUIF paperTray = 0 THEN SEND interruptIF transferDone = TRUE THEN SEND interruptIF mouseMoved THEN SEND interrupt TO CPU