Arrange the following events in correct order when an interrupt occurs during…

2026

Arrange the following events in correct order when an interrupt occurs during instruction execution.

A. Save program counter (PC) and status register.

B. Fetch interrupt vector from memory.

C. Execute the interrupted instruction completely.

D. Transfer control to interrupt service routine (ISR)

E. Restore PC and register after ISR

Choose the correct answer from the options given below:

  1. A, B, C, D, E

  2. E, D, C, B, A

  3. C, A, B, D, E

  4. A, B, E, C, D

  1. A.

    1

  2. B.

    2

  3. C.

    3

  4. D.

    4

Attempted by 106 students.

Show answer & explanation

Correct answer: C

The correct sequence of events during an interrupt is as follows: First, the CPU completes the currently executing instruction (C). Next, it saves the Program Counter and status register to preserve context (A). Then, the system fetches the interrupt vector from memory to locate the service routine address (B). Control is then transferred to the Interrupt Service Routine (ISR) (D). Finally, after the ISR completes, the PC and registers are restored (E). Thus, the correct order is C, A, B, D, E.

Explore the full course: Mppsc Assistant Professor