You add a point to a GAA scoreboard and the power cuts out. Which score survives?
You're keeping score at a GAA match. The scoreboard app shows thirteen points when the power cuts out. You know you last saved at twelve. When you reopen the app, which number will you see?
The scoreboard app needs instructions that tell it what to do. It also needs data, such as the score you enter. The computer represents both the instructions and the score as patterns of bits, made up of zeros and ones.
The installed app and saved score are on the solid-state drive, or SSD. When you open the app, the operating system loads the instructions the app needs into RAM, its working memory. Then the app reads the saved score from the SSD into RAM. The saved copies stay on the drive.
You open the scoreboard app from the solid-state drive. Where are the instructions the app needs while it runs, and where does the installed copy stay? Pick the pair that fits.
While you use the app, RAM holds the score and the instructions the processor runs. This computer has read-only memory, or ROM, that holds start-up instructions. The solid-state drive is secondary storage. It holds the installed app and the last saved score, twelve points.
Start with twelve on the drive and in RAM. Add one without saving. Now cut the power. Volatile RAM loses the working score of thirteen. Non-volatile ROM keeps its start-up code, and the non-volatile drive keeps the app and twelve points. After power returns, reopen the app. It reads twelve.
The app has sixteen points saved on the drive. You change it to eighteen, but autosave is off and you don’t press Save. The power goes out. What score appears when you reopen the app? Pick one.
When you add a point without saving, RAM holds thirteen but the SSD still holds twelve. A new number on screen doesn't mean you've saved it. When a save completes, RAM still holds thirteen and the drive now holds thirteen too. That saved copy survives a power cut.
If you're asked to name the component holding the unsaved score and explain why that score is lost when power is removed, name RAM. Explain that RAM holds the working score of thirteen and loses it without power. The saved twelve stays on the drive.