Memory and storage
About this lesson: Memory and storage
In short
RAM holds the programs and data in use right now. It is fast and can be read and written, but it is volatile. Open, save, then cut the power and see what survives.

What you'll explore
- RAM: Working memory
- RAM holds the programs and data in use right now. It is fast and can be read and written, but it is volatile.
- ROM: Instructions that never vanish
- ROM is non-volatile, read-only memory. It holds the start-up instructions (the BIOS or firmware) that run when you switch on. Power the computer up.
- Virtual memory: When RAM is full
- If RAM fills up, the operating system moves some data to secondary storage as virtual memory. It works, but it is much slower.
- Secondary storage: Magnetic, optical, solid state
- Secondary storage keeps files when the power is off. Each type stores data differently and suits different jobs. Compare all three.
- Check yourself: Which memory?
- When a laptop is switched on, it runs instructions that check the hardware and load the operating system.
Also in this lesson
- Step by step
- The ideas in detail
- Watch out for these
- Approximate cost per terabyte (2025)
- More than the lesson
- Stretch your brain
- Try it yourself
Words to know
- primary storage
- Memory the CPU accesses directly: RAM, ROM, cache.
- secondary storage
- Non-volatile storage for files.
- RAM
- Random access memory: volatile working memory.
- ROM
- Read-only memory: non-volatile start-up instructions.
- volatile
- Loses data without power.
- SSD
- Solid-state drive: flash memory, no moving parts.
- HDD
- Hard disk drive: magnetic, spinning platters.
- optical storage
- Discs read by a laser.
- virtual memory
- Secondary storage used as extra RAM.
- cloud storage
- Files kept on remote servers.
Sources
- BBC Bitesize, GCSE Computer Science: Memory and storage
- Isaac Computer Science: Primary and secondary storage
- Computer History Museum: IBM 350 disk storage
- Backblaze: hard drive cost per gigabyte
← Input devices, output devices and sensors · Packets and transmission →