CHAPTER 9: Input / Output Flashcards

1
Q

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.

A

b) Peripheral devices must operate only in block mode.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

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.

A

d) disk data is always transferred in blocks, never as individual bytes as with the keyboard.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

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

a) is just another I/O device.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

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

a) interrupts.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

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.

A

b) programmed I/O.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

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.

A

c) interrupt lines.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

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.

A

c) interrupt handler.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

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.

A

d) process control block.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

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.

A

d) interrupt handler program.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

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

a) device drivers.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

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

a) polling.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

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

A

d) A way of buffering large amounts of data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

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) A keyboard input

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

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

a) interrupts.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

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.

A

b) quantum.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Events related to problems or special conditions within the computer system itself, like divide by zero, or attempting to execute a nonexistent op code, are called

a) irregular events.
b) unusual events.
c) abnormal events.
d) anomalous events.

A

c) abnormal events.

17
Q

Internal interrupts caused by events related to problems or special conditions within the computer itself are
sometimes called

a) exclusions.
b) exemptions.
c) special errors.
d) traps or exceptions.

A

d) traps or exceptions.

18
Q

Instructions that are intended for use by an operating system program, but not by an application program, are called

a) control instructions
b) limited instructions
c) prevalent instructions
d) privileged instructions

A

d) privileged instructions

19
Q

The software interrupt is very similar to which type of instruction?

a) STORE
b) LOAD
c) IF-THEN-ELSE
d) SUBROUTINE JUMP

A

d) SUBROUTINE JUMP

20
Q

The mnemonic for the x86 architecture instruction that simulates an interrupt is

a) SVC.
b) INT.
c) JMP.
d) GTO.

A

b) INT.

21
Q

One way to assure that multiple programs do not unintentionally alter another program’s files or intermingle printer output is to

a) only execute one interrupt at a time.
b) give programs in execution the highest priority.
c) not allow programs in execution to be interrupted.
d) require that all I/O to shared devices be handled by the operating system.

A

d) require that all I/O to shared devices be handled by the operating system.

22
Q

When the device generating the interrupt request identifies its address as part of the interrupt, it is called

a) polling interrupt.
b) discrete interrupt.
c) vectored interrupt.
d) monitoring interrupt.

A

c) vectored interrupt.

23
Q

Multiple interrupts can be handled by assigning _______ to each interrupt.

a) priorities
b) a time delay
c) queue levels
d) execution tickets

A

a) priorities

24
Q

Power failures, internal time-sensitive events, or external events that are time sensitive will trigger interrupts that are

a) low priority events.
b) high priority events.
c) dependent on the device generating the interrupt.
d) measured for time-to-complete and scheduled accordingly.

A

b) high priority events.

25
Q

Interrupts that can be temporarily disabled by program instructions are called

a) variable.
b) maskable.
c) changeable.
d) transferable.

A

b) maskable.

26
Q

Interrupts that can never be temporarily disabled by program instructions are called

a) invariable.
b) unchangeable.
c) nonmaskable.
d) non-transferable.

A

c) nonmaskable.

27
Q

Interrupts are normally checked

a) during the operation of the instruction cycle.
b) immediately, without regard to the instruction cycle.
c) simultaneously with the beginning of an execution cycle.
d) after one instruction is finished and before another begins.

A

d) after one instruction is finished and before another begins.

28
Q

An I/O technique that transfers block data directly between the I/O controller and computer memory, is called

a) direct block access.
b) direct RAM access.
c) direct block transfers.
d) direct memory access.

A

d) direct memory access.

29
Q

Data from disks, and tapes, and flash memory are transferred only in

a) bits.
b) chunks of data.
c) blocks of data.
d) characters or bytes of data.

A

c) blocks of data.

30
Q

Which of the following is not one of the three primary conditions for direct memory access to take place?

a) The I/O device must have an internal buffer.
b) There must be a method to connect together the I/O interface and memory.
c) There must be a means to avoid conflict between the CPU and the I/O controller.
d) The I/O controller associated with the particular device must be capable of reading and writing to memory.

A

a) The I/O device must have an internal buffer.

31
Q

Four pieces of data must be provided to the I/O controller for a particular I/O device to initiate the DMA transfer. Which of the following is not required?

a) The size of the block to be transferred.
b) The location of the data on the I/O device.
c) The length of time required to transfer the data.
d) The starting location of the block of data in memory.

A

c) The length of time required to transfer the data.

32
Q

The incompatibilities in speed between the various devices and the CPU make I/O synchronization difficult, especially if there are multiple devices attempting to do I/O at the same time. To handle these problems data is usually stored

a) in a buffer.
b) on the network.
c) on the disk drive.
d) in external storage.

A

a) in a buffer.

33
Q

I/O controllers that control a single type of device are often called

a) device controllers.
b) precision controllers.
c) peripheral controllers.
d) single-type controllers.

A

a) device controllers.

34
Q

An I/O controller that is designed to control hard disks is called a

a) disk handler.
b) disk controller.
c) disk coordinator.
d) disk interrupt handler.

A

b) disk controller.

35
Q

Which of the following is not a common function of an I/O disk controller?

a) The I/O disk controller manages main memory during the transfer.
b) The I/O disk controller recognizes messages addressed to it and accepts commands from the CPU.
c) The I/O disk controller has interrupt capability, which it uses to notify the CPU when the transfer is complete.
d) The I/O disk controller provides a buffer where the data from memory can be held until it can be transferred to the disk.

A

a) The I/O disk controller manages main memory during the transfer.