Which of the following is the fastest memory in a computer system?
- A.Cache memory
- B.Register
- C.Main memory
- D.Hard disk
Show answer
Correct answer: B. Register
Explanation
The correct answer is B, register. A register is built into the CPU itself and holds the word the arithmetic and logic unit is operating on at that instant, so it is read and written in a single clock cycle. Nothing in the machine is closer to the processor, and nothing is faster.
Option A, cache memory, is the second fastest and is the right answer only when registers are missing from the options; it sits between the CPU and main memory and is built from static RAM. Option C, main memory, is the DRAM the processor addresses directly, which is fast but an order slower than cache because every cell has to be refreshed. Option D, the hard disk, is secondary storage with moving platters and heads, so its access time is measured in milliseconds against nanoseconds for the levels above it. The order to memorise is register, cache, main memory, secondary storage, magnetic tape.