Attic › Computer science › Punched card
Punched cards use the presence or absence of holes in stiff paper to store binary data for machines
A punched card is a piece of stiff paper that stores digital data as a pattern of punched holes. For decades in the twentieth century, punched cards were the main medium for data storage and computer input.
A card is divided into a grid of rows and columns. Each intersection of a row and a column is a specific punch position. A machine reads the card by checking each position on the grid in three steps:
1. The machine moves the card past a row of sensors, such as metal brushes, pins, or light beams.
2. If a hole is present at a position, the pin or light passes through the paper, and the machine records one state (such as a binary 1).
3. If no hole is present, the stiff paper blocks the sensor, and the machine records the opposite state (such as a binary 0).
By combining several holes in a single column, a card can represent a number, a letter, or a machine instruction. Because a position either has a hole or does not, punched cards naturally match the two-state logic of digital machines.
Before electronic memory and magnetic disks existed, punched cards gave engineers a reliable, physical way to store information. Paper was cheap to make, and a human operator could read the printed text at the top of a card to check the data for errors. Once a machine punched the holes, the data was permanent and could be read by different machines many times without changing.
Fact-checked against Punched card on Wikipedia
Part of the Computer science syllabus: Stored-Program Computers and Architecture
See it on the timeline of Stored-Program Computers and Architecture