Try it on paper first. A hint, the key idea and the worked solution are here when you need them.
A student says: "ROM is pointless. A computer could keep everything in RAM, because RAM can be read and written."
Describe two differences between RAM and ROM. Then explain why a computer needs both.
Primary storage is directly accessed by the CPU. RAM is read and write and volatile, and holds the programs and data in use. ROM is read only and non-volatile, and holds the start-up instructions. Secondary storage is not directly accessed by the CPU and keeps data permanently. Virtual memory is part of secondary storage used as if it were RAM: pages move between RAM and virtual memory when needed. One GiB is 1024 MiB.
Have you tried it?
Work it out on paper first. It is fine to get stuck or make a mistake: that is how we learn. When you are ready, go through the solution one step at a time, and check each step against your own.
Step 1. Two differences.
Step 2. Why ROM is needed. When the computer is switched on, RAM is empty. The CPU needs the start-up instructions at once, so they must be kept somewhere that keeps them without power. That is ROM.
Step 3. Why RAM is needed. The programs and data in use change all the time. ROM cannot be changed, so they must be in RAM.
Answer: RAM is volatile and can be written to, while ROM is non-volatile and read only. ROM keeps the start-up instructions with no power. RAM holds the programs and data that are in use and change.
Watch out. The student's idea fails at the very first step: with only RAM, there would be nothing to run when the power came on.
Log in to join the discussion.
Loading…