🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: I/O Organisation: all 10 questions

Quiz: I/O Organisation · Question 8 of 10

When an interrupt arrives, what does the CPU do first?

When an interrupt arrives, what does the CPU do first?

  1. A.Abandons the current instruction and jumps to the ISR
  2. B.Finishes the current instruction, saves its state (PC, flags) and jumps to the ISR
  3. C.Restarts the program
  4. D.Waits for the DMA controller
Answer & explanation

Correct answer: Finishes the current instruction, saves its state (PC, flags) and jumps to the ISR

Saving the state lets the CPU return to exactly where it was after the ISR.

Can you get the rest right without peeking?

Take the timed Quiz: I/O Organisation quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →