GateAI
I/O Interface, Interrupts and DMA

GATE CSE 2018 · Q9

MCQ1 markEasy

Time

The following are some events that occur after a device controller issues an interrupt while process LL is under execution. (P) The processor pushes the process status of LL onto the control stack. (Q) The processor finishes the execution of the current instruction. (R) The processor executes the interrupt service routine. (S) The processor pops the process status of LL from the control stack. (T) The processor loads the new PC value based on the interrupt.

Which one of the following is the correct order in which the events above occur?

Select one answerSingle correct

Pick an option to check

Solution

Step-by-step verified solution

Official answer: A) QPTRS

I/O Interface, Interrupts and DMA

When an interrupt occurs during the execution of process LL, the CPU handles it in the following sequence:

  1. (Q) The processor completes the execution of the currently running instruction before switching contexts.

  2. (P) The processor saves the context (process status/registers/return PC) of LL by pushing it onto the control stack.

  3. (T) The processor loads the program counter (PC) with the starting address (vector) of the interrupt handler.

  4. (R) The processor executes the Interrupt Service Routine (ISR).

  5. (S) After servicing the interrupt, the processor pops the saved status of LL from the control stack and resumes execution of process LL.

Thus, the correct order is QPTRS, which corresponds to option (A).

Try the question first, then check your work.

Think the official key or this write-up is wrong?

Report error or challenge

Examiner trap

The misconception this question tests

This I/O Interface, Interrupts and DMA previous year question is Q9 of the GATE CSE 2018 paper. Find more GATE CSE PYQs on I/O Interface, Interrupts and DMA in Computer Organization and Architecture, or browse all GATE CSE PYQs.

Free diagnostic

Where do you stand for GATE?

Take the 20-minute diagnostic: the 3 topics that cost you the most marks, and a rank range. Or sit 5 related I/O Interface, Interrupts and DMA PYQs now with no account.

One GATE CSE PYQ every morning

An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.

I/O Interface, Interrupts and DMA in GATE CSE

I/O Interface, Interrupts and DMA has 13 GATE CSE PYQs across 12 papers from 2011 to 2026. 8 of them are 1-mark MCQs like this one, and it is the only one in GATE CSE 2018.

How GATE tests I/O Interface, Interrupts and DMA

More from GATE CSE 2018

Share this solution

A plain-text card for WhatsApp or Telegram study groups.

GateAI solution cardGATE CSE 2018 · Q9 · MCQ

The following are some events that occur after a device controller issues an interrupt while process L is under execution. (P) The processor pushes the process status of L onto the control stack. (Q) The processor finishes the execution of the current instruction. (R) The processor executes the interrupt service routine. (S) The processor pops the process status of L from the control stack. (T) The processor loads the new PC value based on the interrupt. Which one of the following is the correct order in which the events above occur?

Topic-wise GATE CS PYQs with verified steps

Independent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.