Input Output 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

Q11

GATE CS 2024 CS-2Input OutputMCQ1 mark−1/3 if wrong
Consider a computer with a 4 MHz processor. Its DMA controller can transfer 8 bytes in 1 cycle from a device to main memory through cycle stealing at regular intervals. Which one of the following is the data transfer rate (in bits per second) of the DMA controller if 1% of the processor cycles are used for DMA?
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

Q17

GATE CS 2022 CSInput OutputMCQ1 mark−1/3 if wrong
Which one of the following facilitates transfer of bulk data from hard disk to main memory with the highest throughput?
Show answer without attempting

Answer: A

Q20

GATE CS 2021 CS-2Input OutputNAT1 mark
Consider a computer system with DMA support. The DMA module is transferring one 8-bit character in one CPU cycle from a device to memory through cycle stealing at regular intervals. Consider a 2 MHz2\text{ MHz} processor. If 0.5%0.5\% processor cycles are used for DMA, the data transfer rate of the device is ____________ bits per second.
Show answer without attempting

Answer: 80000

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

Q31

GATE CS 2016 CS-1Input OutputNAT2 marks
The size of the data count register of a DMA controller is 16 bits. The processor needs to transfer a file of 29,154 kilobytes from disk to main memory. The memory is byte addressable. The minimum number of times the DMA controller needs to get the control of the system bus from the processor to transfer the file from the disk to main memory is ________.
Show answer without attempting

Answer: 456.0

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/110 correct0 marks

Related topics in Computer Organization and Architecture