A network adapter sends incoming data to a computer and sends outgoing data from it. How should it be classified?
7 Input and Output Online Quiz Questions
Use this free practice quiz with 20 questions to review 7 Input and Output, test your knowledge, and prepare for your next test or exam.
True or false: Repeatedly checking a device's status during polling uses CPU time that could otherwise be spent on other work.
- A
True
- B
False
A CPU repeatedly reads a device's status register to find out whether the device is ready. What I/O coordination method is being used?
What is the main role of a device controller in a computer's I/O system?
- A
It prepares every program's request and makes the result available to that program.
- B
It manages a peripheral and presents device information to the CPU in a standard form.
- C
It replaces the CPU when a peripheral needs to perform an operation.
- D
It stores all data exchanged between the computer and the peripheral.
Which operating-system software component uses a device controller's interface to manage a peripheral?
True or false: When responding to an interrupt, the processor temporarily saves enough information to resume its current work afterward.
- A
True
- B
False
Complete the names of three common device-controller registers: a register for exchanging data, a register for checking device readiness, and a register for requesting an operation.
Which statement describes memory-mapped I/O?
- A
Device registers occupy addresses in the memory address space.
- B
The CPU must copy every value to a peripheral directly, without using a controller.
- C
The operating system places device registers outside every address space.
- D
The peripheral communicates with the CPU without any register access.
Select all statements that correctly describe interrupt-driven I/O.
- A
The CPU can run other instructions after starting the operation.
- B
The CPU must continuously reread the device's status register until the operation ends.
- C
The controller can signal the processor when the device needs attention or finishes.
- D
An interrupt handler responds to the signal, after which the processor can continue its work.
Select all statements that correctly describe a direct memory access (DMA) transfer.
- A
The CPU can specify the transfer direction.
- B
The CPU can specify a memory address and transfer size.
- C
The CPU must copy every byte or word for the transfer to count as DMA.
- D
A DMA-capable controller moves data between a device and main memory.
In a typical storage read, the controller may report completion or an error by raising an .
Describe the main stages of a typical storage read, from a program requesting data until the result is available to the program. Identify the roles of the driver, CPU, controller, and operating system.
A processor uses a separate I/O address space rather than memory-mapped I/O. If it supports this approach, how does the CPU access that I/O space?
- A
The CPU repeatedly checks the device until it is ready.
- B
The CPU uses special instructions to access the separate I/O address space.
- C
The controller moves data between the device and memory without CPU setup.
- D
The operating system replaces the controller's registers with ordinary memory.
A program copies a value from a CPU register into RAM, without communicating with an external device. Which statement best classifies this operation?
- A
It is I/O because RAM is outside the CPU.
- B
It is not I/O because no external device is involved.
- C
It is output because the value moves toward RAM.
- D
It is input because the value enters a CPU register.
A checkout computer receives a product code from a barcode scanner. How is the scanner functioning in this data exchange?
- A
Output, because the computer receives a barcode.
- B
Neither input nor output, because the scanner reads printed information.
- C
Input, because the scanner sends data into the computer.
- D
Both input and output, because the scanner uses a light source.
A computer sends a completed chart to a display so the chart can be shown. Which statement describes the display’s role in this exchange?
- A
The display is receiving output from the computer.
- B
The display is sending input to the computer.
- C
The display is performing an internal CPU-to-memory transfer.
- D
The display is neither input nor output because it only shows data.
In a text-entry system, a user types on a keyboard and sees the text appear on a display. Which classification correctly describes the two devices?
- A
The keyboard and display are both output devices.
- B
The keyboard and display are both input devices.
- C
The keyboard is output, and the display is input.
- D
The keyboard is input, and the display is output.
A value moves from RAM into a CPU register, with no external device involved. This operation is input/output.
- A
True
- B
False
What is the term for exchanging data between a computer and devices outside its main processor and memory?
What general term describes an external device such as a keyboard or printer that communicates with a computer through a device controller?