CHAPTER 9: Input / Output Flashcards
Which of the following is not a requirement for a computer system to handle I/O in a sufficient and effective manner?
a) Peripheral devices must be individually addressable.
b) Peripheral devices must operate only in block mode.
c) Peripheral devices can initiate communication with the CPU.
d) Programmed I/O is suitable only for slow devices and individual word transfers.
b) Peripheral devices must operate only in block mode.
An important difference between the I/O requirements of keyboards and disk drives is that
a) keyboard input is fast while disk drives are slow.
b) keyboards require constant monitoring, while disk drives do not.
c) disk drives have I/O controllers and keyboards do not have I/O controllers.
d) disk data is always transferred in blocks, never as individual bytes as with the keyboard.
d) disk data is always transferred in blocks, never as individual bytes as with the keyboard.
From the perspective of a computer, the network
a) is just another I/O device.
b) requires an Ethernet connection.
c) is complex set of interconnected hosts.
d) is addressable only in blocks of 32 bit addresses.
a) is just another I/O device.
The method used to communicate events that need special attention to the CPU are known as
a) interrupts.
b) I/O controllers.
c) programmed I/O.
d) device controllers.
a) interrupts.
The method of transferring data one word at a time from the CPU to a device is called
a) polling.
b) programmed I/O.
c) vectored interrupt.
d) direct memory access.
b) programmed I/O.
Computers provide interrupt capability by providing one or more special control lines to the central processor known as
a) fault lines.
b) address lines.
c) interrupt lines.
d) instruction lines.
c) interrupt lines.
The program that determines the appropriate course of action in the event an interrupt occurs is called the
a) fault handler.
b) device handler.
c) interrupt handler.
d) instruction handler.
c) interrupt handler.
When an interrupt causes temporary suspension of the program in progress, all the pertinent information about the program being suspended, including the location of the last instruction executed, and the values of data in various registers are stored in an area of memory known as the
a) register dump block.
b) memory dump block.
c) program method block.
d) process control block.
d) process control block.
After interrupting a program in execution, and saving the program’s context, the computer then branches to a special program known as the
a) driver routine.
b) servicing program.
c) program service program.
d) interrupt handler program.
d) interrupt handler program.
Since many interrupts exist to support I/O devices, most of the interrupt handling programs are also known as
a) device drivers.
b) device handlers.
c) peripheral handlers.
d) peripheral controllers.
a) device drivers.
The method of continuously checking the various input devices to determine if input data is waiting is called
a) polling.
b) observing.
c) monitoring.
d) supervising.
a) polling.
Which of the following is not a function of how interrupts are used?
a) A completion signal
b) An abnormal event indicator
c) A means of allocating CPU time
d) A way of buffering large amounts of data
d) A way of buffering large amounts of data
Which of the following is an example of an interrupt being used as an external event notifier?
a) A keyboard input
b) A program inadvertently attempts to divide by zero
c) A time quantum has passed and the CPU is interrupted to start another task
d) An application program requests service from the operating system using a software interrupt
a) A keyboard input
External events like keyboard input, mouse clicks, printer “out of paper” messages, and power failures are handled by
a) interrupts.
b) device handlers.
c) peripheral controllers.
d) suspension subprograms.
a) interrupts.
The computer system provides an internal clock that sends an interrupt periodically to the CPU signaling that it’s time to start processing another program or thread. The time between interrupt pulses is known as a(n) a) delta.
b) quantum.
c) unit quantity.
d) atomic quantity.
b) quantum.