- Foundation
- About 13 min
- 5 practice questions
CPU, memory and storage
Describe the CPU parts and separate RAM, ROM, cache and secondary storage by purpose.
If something looks wrong, please tell us.
To answer almost any hardware question you need to know three things: who does the thinking (CPU), where work is held while running (memory) and where things are kept for good (storage).
The CPU
The Central Processing Unit is the brain of the computer. It has three parts:
- Arithmetic Logic Unit (ALU): does calculations (add, subtract) and logical comparisons (greater than, equal to).
- Control Unit (CU): directs the other parts, fetching and decoding instructions.
- Registers: tiny, very fast storage inside the CPU that hold the data being worked on right now.
Primary memory
| Type | Volatile? | Purpose |
|---|---|---|
| RAM | Yes, contents lost when power is off | Holds programs and data currently in use |
| ROM | No, permanent | Holds start-up instructions |
| Cache | Yes | Small, very fast memory between CPU and RAM to speed things up |
Volatile means the contents disappear when the power goes off. That is why you must save your work: saving copies it from RAM to storage.
Secondary storage
Secondary storage keeps data permanently, even without power. Examples include hard disks, solid-state drives, pen drives and memory cards. It is larger and cheaper per byte than RAM but slower.
Worked examples
Example 1. You type an essay and the power fails before you save. The essay is lost. Why? It lived only in RAM, which is volatile.
Example 2. Put these in order from fastest to slowest: hard disk, cache, RAM, register. Registers, cache, RAM, hard disk. Speed falls as you move away from the CPU.
Register > Cache > RAM > Secondary storage in speed. RAM forgets at power off; ROM and disks do not.
Key takeaways
- CPU = ALU + Control Unit + registers.
- RAM is working memory and volatile; ROM is permanent start-up memory.
- Secondary storage keeps data without power but is slower.
Check your understanding
-
1. Which part of the CPU fetches and decodes instructions and directs the other parts?
- Arithmetic Logic Unit
- Cache
- Control Unit
- ROM
Show answer
Answer: C. The Control Unit coordinates the CPU; the ALU does calculations and comparisons.
-
2. Deciding whether one number is greater than another is done by which unit?
- Control Unit
- ROM
- Arithmetic Logic Unit
- Hard disk
Show answer
Answer: C. The ALU does both arithmetic and logical comparisons such as greater than or equal to.
-
3. You type an essay and the power fails before you save it. Why is the essay lost?
- It was held only in RAM, which is volatile
- It was stored in ROM
- The hard disk erases files at power off
- Registers keep data permanently
Show answer
Answer: A. RAM loses its contents when power goes off; saving copies the work to secondary storage.
-
4. Which memory holds the start-up instructions and keeps them without power?
- RAM
- Cache
- Registers
- ROM
Show answer
Answer: D. ROM is non-volatile and holds the start-up instructions.
-
5. Arrange from fastest to slowest: RAM, hard disk, register, cache.
- Cache, register, hard disk, RAM
- Register, cache, RAM, hard disk
- RAM, cache, register, hard disk
- Hard disk, RAM, cache, register
Show answer
Answer: B. Speed falls as you move away from the CPU: registers, then cache, then RAM, then secondary storage.
Sign in to keep track of the lessons you finish.