Difficulty: Easy
Correct Answer: disk
Explanation:
Introduction / Context:
Operating systems distinguish between character devices (stream-oriented) and block devices (random-access, block-oriented). This affects buffering, caching, and I/O interfaces.
Given Data / Assumptions:
Concept / Approach:
Disks are canonical block devices: the OS issues reads/writes for blocks identified by logical block numbers, enabling caching and random access. Peripherals like mice, printers, and terminals handle streams of characters or events and are treated as character devices.
Step-by-Step Solution:
Verification / Alternative check:
UNIX device taxonomy (e.g., /dev/sdX as block, /dev/tty as character) exemplifies this distinction.
Why Other Options Are Wrong:
Common Pitfalls:
Confusing printer spool files (which are stored on disks) with the printer device itself; thinking a terminal emulator’s scrollback implies block I/O—it does not.
Final Answer:
disk
Discussion & Comments