ScholaFly

CS05-01 Computer Science Watch

RAM, ROM and types of memory

Watch on YouTube

In this lesson

In this video you'll learn about RAM, ROM and types of memory for GCSE Computer Science. Watch first: {{video:CS04-02}}

By the end: Say what RAM and what ROM each hold and why a computer needs both, state two genuine differences between them (volatility and whether it can be written to), define volatile and non-volatile in a sentence that names the data and the power, and tell main memory from secondary storage using AQA's test of whether the CPU can reach it directly.

What it covers

  • WHY A COMPUTER NEEDS PRIMARY STORAGE (MEMORY) AT ALL: the CPU can only work on instructions and data it can reach quickly and directly, so whatever is running right now has to sit in memory
  • RAM: holds the instructions and data currently in use - the operating system, the programs that are open and the data they are working on. It can be read from and written to. It is volatile
  • ROM: holds the start-up instructions (the boot program / BIOS) the computer needs before anything else is loaded. It is read-only in normal use. It is non-volatile
  • VOLATILE AND NON-VOLATILE, defined precisely: volatile memory loses its data when the power is turned off; non-volatile memory keeps its data when the power is turned off. The sentence must name the DATA and the POWER
  • THE DIFFERENCES BETWEEN RAM AND ROM as differences, each stated from BOTH sides: RAM is volatile, ROM is non-volatile; RAM can be written to, ROM normally cannot; RAM is usually much larger than ROM
  • That PURPOSE is not a fundamental difference: 'RAM holds running programs, ROM holds start-up instructions' describes use, and OCR's 2022 report says it is not what a 'difference' question pays for
  • THE FAMILY OF MEMORY TYPES AQA LISTS - RAM, ROM, cache, register - named together, with registers re-mounted from CS04 in one line and cache named once as the small fast memory inside or beside the CPU whose job is the next video's
  • MAIN MEMORY VERSUS SECONDARY STORAGE using AQA's own test: main memory is directly accessible by the CPU (cache and registers excepted); secondary storage is non-volatile and is NOT directly accessible by the CPU, so a program on the disk must be copied into RAM before it can run
  • That 'memory' and 'storage' are not the same word: data is stored IN memory, so 'RAM stores memory' is a recorded nonsense answer

Key words

About this video

RAM, ROM and types of memory | GCSE Computer Science

RAM and ROM memory types for GCSE Computer Science: what each holds, volatile versus non-volatile, and main memory versus secondary storage.
AQA 8525, Edexcel 1CP2 and OCR J277 GCSE. Memory and storage 1 of 6.
Full Memory and storage playlist: https://www.youtube.com/playlist?list=PLN6LILUAa4Zs
More at https://scholafly.com

Watch first: CS04-02 - https://youtu.be/NaTcxQbZh9s
Video code: CS05-01 (search "ScholaFly CS05-01")

Videos in this chapter:
CS05-00 Memory and storage - Intro: https://youtu.be/HP7hdjSfVjI
CS05-01 RAM, ROM and types of memory: https://youtu.be/uyM_YCx5vAU
CS05-02 Cache: https://youtu.be/GZUhJCGdqMY
CS05-03 Virtual memory: https://youtu.be/BUkacndz4Nc
CS05-04 Secondary storage: magnetic, solid state and optical: https://youtu.be/5Amsjf0nS8E
CS05-05 Choosing the right storage: https://youtu.be/79gK1sMFliI
CS05-06 Cloud storage: https://youtu.be/8bnzEUvDMfQ

#GCSEComputerScience #MemoryAndStorage #RAMROMAndTypesOfMemory

For teachers
This GCSE Computer Science lesson teaches RAM, ROM and types of memory. By the end, students should be able to say what RAM and what ROM each hold and why a computer needs both, state two genuine differences between them (volatility and whether it can be written to), define volatile and non-volatile in a sentence that names the data and the power, and tell main memory from secondary storage using AQA's test of whether the CPU can reach it directly. It works through four worked examples and the mistakes examiners report, and suits Foundation and Higher tier students.

Exam board specification references:
AQA GCSE Computer Science (8525)
- 3.4.5 Systems architecture
Cambridge OCR Level 1/Level 2 GCSE (9-1) in Computer Science
- 1.2.1 Primary storage (memory)

Read the transcript

Picture typing an essay when somebody pulls the plug. The screen goes dark, and every word you had not saved is gone. Switch the computer back on, though, and it still knows how to start itself up. Something inside forgot everything the instant the power went. Something else remembered the very first instruction the machine would ever need. Two kinds of memory, doing two different jobs, and by the end you can tell them apart in words that count from both sides.

Start with where memory sits. In the chapter on what is inside the computer, main memory was a box drawn just outside the processor, with instructions travelling between the two. The processor can only work on instructions and data it can reach quickly and directly. Whatever is running right now has to sit in that box, which is called main memory, or primary storage. The first kind is RAM, which stands for random access memory. RAM holds the instructions and data in use right now: the operating system that runs the computer, the programs you have open, and the work they are doing. RAM can be read from and written to, because that work keeps changing from one second to the next. It holds what is in use at this moment, rather than everything you own. A film streaming on a smart TV passes through RAM a few seconds at a time, and the whole film is never there at once. The second kind is ROM, which stands for read-only memory. ROM holds the start-up instructions, the boot program the computer needs before anything else can be loaded. On a PC this program is often called the BIOS, the basic input output system. ROM arrives already holding that program, written in at the factory, and the computer reads it every time it starts. In normal use nothing writes to it, which is why it is called read-only. A washing machine works the same way. Its program lives in ROM, which is why it knows its wash cycles the moment it is plugged in, as the video on embedded systems showed. Now picture that smart TV again, streaming a film while a web browser sits open in one corner. What are two items of data in its RAM right now, and what sits in its ROM? In RAM: the part of the film about to play, and the website being viewed. In ROM: the start-up instructions, unchanged since the day it left the factory. Naming the film, or the name of the streaming app, would be too wide. RAM holds the part being used now, so the answer names that part.

Back to the plug being pulled. RAM is the part that forgot, ROM is the part that remembered, and each has a word to describe it. Volatile memory loses its data when the power is turned off. RAM is volatile, which is why the unsaved essay vanished. Non-volatile memory keeps its data when the power is turned off. ROM is non-volatile, which is why the start-up program survived. Both definitions name two things: the data, and the power. Those two nouns are what turn a feeling into a definition. Three students write a definition of non-volatile memory. A writes: the memory isn't lost. B writes: it stores things permanently. C writes: the data is kept when the power is switched off. Which of the three definitions, A, B or C, would you trust in an exam? C. It is the only one that says what survives, and when. A talks about the memory itself, the place, rather than what is kept in it. B never mentions the power at all. One examiner's report on a question asking for this definition puts it like this: This often resulted in responses such as “the memory isn’t lost” or “the memory isn’t deleted”, rather than a response such as “the data in the memory is not lost when power is turned off”. The fix is those two nouns. Whenever you define volatile or non-volatile, put in the data and the power, and the vague version never gets written.

Now a question that sounds similar and is not: state a difference between RAM and ROM. Picture an answer that says RAM is volatile. It is true, and it is only half a difference, because it says nothing about ROM. A difference has two sides. RAM is volatile, whereas ROM is non-volatile. The word whereas is where the second side goes in. The second difference is about writing. RAM can be written to as well as read, whereas ROM can normally only be read. A third is size. RAM is usually much larger than ROM, because ROM only has to hold the start-up program. Another student writes this as a difference: RAM holds the programs in use, whereas ROM holds the start-up instructions. Both halves are true. Why would that answer still not count as a difference between RAM and ROM? Because it says what each one is used for, not what each one is like. That is a purpose, and a difference question wants a property, such as volatile or writable. One examiner's report on a RAM and ROM question records this: This question was answered well with many candidates correctly identifying that RAM is volatile and ROM is not-volatile. The same report then adds the habit it wants: When a difference is required candidates must make sure they are giving both sides of the difference. For example RAM is volatile is not enough on its own. The report goes on: Some candidates gave the purpose of RAM and ROM. This is a difference in the use and not a fundamental difference between the two. If you knew RAM was volatile already, you are in good company. The habit to add is the shape: RAM is something, whereas ROM is something, taken from the properties and never from the purposes.

Next, widen the view. The full list of memory types inside a computer has four names: registers, cache, RAM and ROM. Registers are the tiny stores inside the processor itself, covered in the video on the registers. Cache is a small, fast memory inside or right beside the processor. What it is for, and why a computer has so little of it, is the job of the next video, called Cache. And when RAM fills up, the computer has a trick for carrying on. That trick has a video of its own, called Virtual memory. That leaves one more line to draw, between main memory and secondary storage. Main memory is memory the processor can reach directly, such as RAM and ROM. Cache and registers sit even closer to the processor, and this test leaves them to one side. Secondary storage is any non-volatile storage the processor cannot reach directly, such as a hard disk drive or a solid state drive. That is why a game saved on a hard drive cannot run from there. It has to be copied into RAM first, because RAM is where the processor can reach it. The test is one question, and it works whatever exam board you sit: can the processor reach it directly? Five items are coming up to sort with it. Main memory or secondary storage: RAM, an SSD, ROM, a memory stick, a hard disk drive? Only two are main memory, RAM and ROM. The other three are all secondary storage. The SSD is the one to look at twice. In most laptops it is built in, and it is still secondary storage, because the processor cannot reach it directly. One examiner's report on a question about RAM and secondary storage lists the mix-ups: students mixing up RAM as non-volatile and secondary storage as volatile, students stating that RAM is built into the computer and secondary storage is not and a significant number stating that RAM is used to store memory. Each mix-up has a fix. RAM is the volatile one, and storage is what keeps your files overnight. Built in is not the test; direct reach is. And RAM does not store memory. RAM is memory, and what it stores is data and instructions. One more, and this one wants reasons rather than examples. Why does a computer need both main memory and secondary storage? Main memory, because the processor needs fast, direct access to whatever is running. Secondary storage, because RAM is volatile and too small, so anything worth keeping needs somewhere that survives the power going off. One examiner's report on that question says: Some candidates found this question challenging and often gave examples of each type of storage instead of answering why both are required. Reason first, then example. A device is welcome, as long as it comes second to show the reason.

Four quick questions to close, starting back at the pulled plug. Which memory lost the unsaved essay, and what word describes it? RAM, and it is volatile: it loses its data when the power is turned off. Next, what is one difference between RAM and ROM, said from both sides? RAM loses its data when the power goes, whereas ROM keeps it. Or, RAM can be written to, whereas ROM normally cannot. Now: a phone's photos on its built-in storage. Main memory or secondary storage? Secondary storage. Built in or not, those photos have to be copied into RAM before they can be shown. One more: why must a program on the hard drive be copied into RAM before it runs? Because the processor can only reach RAM directly. The hard drive is secondary storage, out of its direct reach.

If you could teach the pulled plug to a friend, which part forgot, which remembered, and the whereas sentence, give this video a thumbs up. That thumb is a tick on your own list. If it is not there yet, save it for later. Say the whereas sentence out loud once and it sticks better than reading it twice.

Next in the chapter: Cache, the small fast memory beside the processor, and why a computer has so little of it.

For more, visit scholafly.com, or watch the next video.

Related terms

For: AQA GCSE 8525, OCR GCSE J277, Edexcel GCSE 1CP2

On the specification

BoardSpecStatement
AQA GCSE 85253.4.5Systems architecture
OCR GCSE J2771.2.1Primary storage (memory)
Edexcel GCSE 1CP2missingthe plan names no spec point for this board
For teachers

This GCSE Computer Science lesson teaches RAM, ROM and types of memory. By the end, students should be able to say what RAM and what ROM each hold and why a computer needs both, state two genuine differences between them (volatility and whether it can be written to), define volatile and non-volatile in a sentence that names the data and the power, and tell main memory from secondary storage using AQA's test of whether the CPU can reach it directly. It works through four worked examples and the mistakes examiners report, and suits Foundation and Higher tier students.