Hardware is every physical part of a computer that you can touch. It is grouped into input devices, output devices, processing (CPU), storage and the motherboard that connects them.
Devices:
- Input: keyboard, mouse, scanner, microphone, webcam, joystick, barcode reader, OMR/OCR/MICR readers (MICR is used for cheques).
- Output: monitor, printer, speaker, projector, plotter.
- Both: touchscreen, modem, headset with microphone.
- Printers: impact (dot-matrix) strike the paper; non-impact (inkjet, laser) do not.
Memory hierarchy (fastest and costliest at the top): registers → cache → RAM (main memory) → secondary storage (SSD, hard disk, optical disc, pen drive).
RAM vs ROM:
- RAM (Random Access Memory) is volatile — data is lost when power goes. SRAM (static, faster, used for cache) and DRAM (dynamic, must be refreshed, used as main memory).
- ROM (Read Only Memory) is non-volatile and holds start-up firmware (BIOS/UEFI). Types: PROM (programmable once), EPROM (erased by ultraviolet light), EEPROM (erased electrically; flash memory is a form of it).
Worked example: A student is typing in a word processor and the power fails before saving. The unsaved text was in RAM, which is volatile, so it is lost; the saved file on the hard disk/SSD survives because secondary storage is non-volatile.
Ports and units: USB connects most peripherals; processor speed is measured in hertz (GHz); storage in bytes (KB, MB, GB, TB, each step ×1024).
Common confusions: cache is faster than RAM but smaller; ROM is primary memory, not secondary; a hard disk is storage, not "memory" in the RAM sense.