• 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

Primary memory types
TypeVolatile?Purpose
RAMYes, contents lost when power is offHolds programs and data currently in use
ROMNo, permanentHolds start-up instructions
CacheYesSmall, 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.

— Remember

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. 1. Which part of the CPU fetches and decodes instructions and directs the other parts?

    1. Arithmetic Logic Unit
    2. Cache
    3. Control Unit
    4. ROM
    Show answer

    Answer: C. The Control Unit coordinates the CPU; the ALU does calculations and comparisons.

  2. 2. Deciding whether one number is greater than another is done by which unit?

    1. Control Unit
    2. ROM
    3. Arithmetic Logic Unit
    4. Hard disk
    Show answer

    Answer: C. The ALU does both arithmetic and logical comparisons such as greater than or equal to.

  3. 3. You type an essay and the power fails before you save it. Why is the essay lost?

    1. It was held only in RAM, which is volatile
    2. It was stored in ROM
    3. The hard disk erases files at power off
    4. Registers keep data permanently
    Show answer

    Answer: A. RAM loses its contents when power goes off; saving copies the work to secondary storage.

  4. 4. Which memory holds the start-up instructions and keeps them without power?

    1. RAM
    2. Cache
    3. Registers
    4. ROM
    Show answer

    Answer: D. ROM is non-volatile and holds the start-up instructions.

  5. 5. Arrange from fastest to slowest: RAM, hard disk, register, cache.

    1. Cache, register, hard disk, RAM
    2. Register, cache, RAM, hard disk
    3. RAM, cache, register, hard disk
    4. 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.

Privacy · Terms · Refunds · Delivery