Why can a school laptop still start up after it loses your unsaved work?
You change the title on a slide and the school laptop suddenly loses power. When it comes back on, the laptop knows how to start, but your new title is gone. Why did one survive and the other disappear?
When you run a program, the CPU needs instructions to tell it what to do and data to work on. In the Von Neumann model, it accesses main memory directly to fetch instructions, read data and write results to writable memory.
Watch the model laptop start. The CPU reads the start-up instructions, called firmware, from ROM. It doesn't write to ROM during normal use. When you open your slides, the running program and slide data are in RAM. As you type, the program writes changes to the working copy in RAM.
You're editing the slide title, and the running program needs to keep changing the working copy as you type. Which memory holds that copy? Pick the best answer.
Both memories contain something while the model laptop is on. Now cut the power. The working copy in RAM disappears, so RAM is volatile. The firmware in ROM stays without power, so ROM is non-volatile.
You save a slide titled Draft to the solid-state drive. Then you change its title to Final without saving. When power cuts, RAM loses the working copy. The ROM firmware and the saved SSD copy survive. After restarting, you reopen the saved copy and see Draft.
You save a poster to the solid-state drive with the price set to six pounds. With autosave off, you change it to eight pounds. The laptop loses power before you save again. What price will you see when you reopen the file? Pick one.
It's easy to hear volatile and think it means the contents change often. Test that idea: leave a value in RAM untouched, then cut the power. The value is still lost. Volatility is about whether the contents survive without power.
If the exam asks you to explain why a computer needs secondary storage, start with what happens when power is removed. RAM loses its contents. You save files to secondary storage because it keeps them without power, so you can open them again after restarting.