Interrupts questions

Q18

GATE CS 2026 CS-2Input OutputMCQ1 mark−1/3 if wrong
Consider the following two statements about interrupt handling mechanisms in a CPU.

S1: In non-vectored interrupt mechanism, it usually takes more time to start the Interrupt Service Routine (ISR) when compared to that in a vectored interrupt mechanism.

S2: In daisy-chain interrupt mechanism, the CPU polls all the input devices individually to determine the source of the interrupt.

Which one of the following options is correct with respect to S1 and S2 ?
Show answer without attempting

Answer: C

Q11

GATE CS 2025 CS-1Input OutputMCQ1 mark−1/3 if wrong
Suppose a program is running on a non-pipelined single processor computer system. The computer is connected to an external device that can interrupt the processor asynchronously. The processor needs to execute the interrupt service routine (ISR) to serve this interrupt. The following steps (not necessarily in order) are taken by the processor when the interrupt arrives:
(i) The processor saves the content of the program counter.
(ii) The program counter is loaded with the start address of the ISR.
(iii) The processor finishes the present instruction.
Which ONE of the following is the CORRECT sequence of steps?
Show answer without attempting

Answer: A

Q15

GATE CS 2024 CS-1Input OutputMCQ1 mark−1/3 if wrong
Which one of the following statements is FALSE?
Show answer without attempting

Answer: C

Q34

GATE CS 2023 CSInput OutputNAT1 mark
A keyboard connected to a computer is used at a rate of 1 keystroke per second. The computer system polls the keyboard every 10 ms (milliseconds) to check for a keystroke and consumes 100 μs (microseconds) for each poll. If it is determined after polling that a key has been pressed, the system consumes an additional 200 μs to process the keystroke. Let T1T_1 denote the fraction of a second spent in polling and processing a keystroke.

In an alternative implementation, the system uses interrupts instead of polling. An interrupt is raised for every keystroke. It takes a total of 1 ms for servicing an interrupt and processing a keystroke. Let T2T_2 denote the fraction of a second spent in servicing the interrupt and processing a keystroke.

The ratio T1T2\frac{T_1}{T_2} is ____________. (Rounded off to one decimal place)
Show answer without attempting

Answer: 10.2

Q3

GATE CS 2020 CSInput OutputMCQ1 mark−1/3 if wrong
Consider the following statements.

I. Daisy chaining is used to assign priorities in attending interrupts.
II. When a device raises a vectored interrupt, the CPU does polling to identify the source of interrupt.
III. In polling, the CPU periodically checks the status bits to know if any device needs its attention.
IV. During DMA, both the CPU and DMA controller can be bus masters at the same time.

Which of the above statements is/are TRUE?
Show answer without attempting

Answer: C

Q9

GATE CS 2018 CSInput OutputMCQ1 mark−1/3 if wrong
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?
Show answer without attempting

Answer: A

Q28

GATE CS 2013 CSInput OutputMCQ2 marks−2/3 if wrong
Consider the following sequence of micro-operations.

<br>MBR←PC<br>MAR←X<br>PC←Y<br>Memory←MBR<br>\begin{align*}<br>\text{MBR} &\leftarrow \text{PC} \\<br>\text{MAR} &\leftarrow \text{X} \\<br>\text{PC} &\leftarrow \text{Y} \\<br>\text{Memory} &\leftarrow \text{MBR}<br>\end{align*}

Which one of the following is a possible operation performed by this sequence?
Show answer without attempting

Answer: D

0/70 correct0 marks

Related topics in Input Output