J277 3: Memory and Storage

OCR GCSE COMPUTER SCIENCE · J277 · PAPER 1

Memory and storage

Where a computer keeps its data, from fast RAM to the drives that remember everything.

Paper 1 · Lesson 3

1 / 22
next
Slide 1: Slide
New lesson editorComputer ScienceUpper Secondary (Key Stage 4)GCSE

This lesson contains 22 slides, with interactive quizzes and text slides.

time-iconLesson duration is: 60 min
Report this lesson

Introduction

OCR GCSE Computer Science (J277), Paper 1, lesson 3 of 26. Students learn why computers need primary storage, the differences between RAM and ROM, and how virtual memory works when RAM is full. They then compare magnetic, optical and solid state secondary storage by capacity, speed, portability, durability, reliability and cost, sort devices by type, spot mistakes in a student's notes and choose suitable storage for a scenario in an exam-style question with mark scheme. This lesson was created with AI assistance.

Items in this lesson

OCR GCSE COMPUTER SCIENCE · J277 · PAPER 1

Memory and storage

Where a computer keeps its data, from fast RAM to the drives that remember everything.

Paper 1 · Lesson 3

J277 1.2 Memory and storage. Ask: when a phone says "storage almost full", is that the same as its memory? (No: today explains the difference.)

Device-free: show the cover on the board.

Cover photo: Harrison Broadbent / Unsplash, shown as a hologram.

01 · LEARN · MISSION BRIEFING

By the end of this lesson you can…

01

Explain why primary storage is needed and compare RAM and ROM

02

Describe how virtual memory works and why it slows a computer down

03

Compare magnetic, optical and solid state storage and choose one for a task

SYSTEM VOICE

System online. Today's mission: find out where a computer keeps its data, what happens when memory runs out, and how to choose the right storage for the job.

Play the system voice, then read the three outcomes aloud.

Voice script: "System online. Today's mission: find out where a computer keeps its data, what happens when memory runs out, and how to choose the right storage for the job."

Device-free: read the briefing aloud; students copy the outcomes as headings.

02 · CHECK · DO NOW

Four quick questions from last time

1  What does clock speed measure?

How many fetch–execute cycles the CPU carries out each second.

2  Why does a bigger cache improve performance?

More data fits close to the CPU, so fewer slow trips to RAM.

3  Give one example of an embedded system.

For example a washing machine, microwave, thermostat or traffic lights.

4  Which register holds the address of the memory location being accessed?

The MAR (memory address register).

Retrieval from lessons 1 and 2. Three minutes to write, then click four times to reveal.

1 The number of fetch–execute cycles per second, in hertz (GHz). 2 More data and instructions fit in the cache, so the CPU fetches from slower RAM less often. 3 Any device with one dedicated job: washing machine, microwave, central heating thermostat, traffic lights, car engine management. 4 The MAR.

Device-free: students answer on mini whiteboards or in books.

Lesson 2 recap: drag each description to its term.

CLOCK SPEED

CORES

CACHE

EMBEDDED





Small, fast memory inside the CPU for frequently used data

A computer built into a larger device to do one job

How many cycles the CPU carries out each second

Processing units that can each carry out instructions

Answers: clock speed = how many cycles the CPU carries out each second; cores = processing units that can each carry out instructions; cache = small, fast memory inside the CPU; embedded = a computer built into a larger device to do one job.

Ask: name one embedded system in your kitchen (washing machine, microwave, smart fridge).

Device-free: students match the four by drawing lines in their books.

01 · LEARN · PRIMARY STORAGE

Why does a computer need primary storage?

Primary storage (main memory) is the memory the CPU works from directly.

The CPU needs the instructions and data it is using right now to be available very quickly. Secondary storage is far too slow to work from directly.

The picture shows RAM modules, the main part of primary storage.

Say: when you open a program, it is copied from secondary storage (the drive) into RAM, because the CPU can fetch from RAM much faster. Primary storage is RAM and ROM; cache and registers are also memory the CPU accesses directly.

Device-free: students write "Primary storage is needed because…" and finish the sentence. Image credit: Harrison Broadbent / Unsplash

01 · LEARN · RAM AND ROM

RAM and ROM do different jobs

RAM · random access memory

Volatile: loses its contents when the power is off. Can be read and written.

Holds the operating system, programs and data in use.

ROM · read-only memory

Non-volatile: keeps its contents without power. Read only: normally cannot be changed.

Holds the start-up instructions (the BIOS or boot program).

SYSTEM VOICE · KEY DEFINITION

Volatile memory loses its contents when the power is turned off. RAM is volatile. ROM is non-volatile, so it keeps the start-up instructions safe.

Play the system voice for the definition of volatile.

Voice script: "Volatile memory loses its contents when the power is turned off. RAM is volatile. ROM is non-volatile, so it keeps the start-up instructions safe."

Why ROM is needed: when the computer is switched on, RAM is empty, so the instructions that start the computer (and load the operating system) must be kept somewhere that survives without power.

Extra detail: on modern computers the start-up firmware is kept in flash memory that can be updated, but for J277 describe it as ROM holding the BIOS or boot-up instructions.

Misconception: "RAM is where files are saved." Files are saved to secondary storage; RAM holds what is in use now.

Device-free: students draw a two-column RAM/ROM table.

Is each statement about RAM or ROM?

RAM

ROM



Holds the start-up instructions

Volatile

Contents normally cannot be changed

Holds the programs in use

Non-volatile

Can be read and written

Answers. RAM: volatile; holds the programs in use; can be read and written. ROM: holds the start-up instructions; contents normally cannot be changed; non-volatile.

Device-free: students sort the six statements into a two-column table in their books.

01 · LEARN · VIRTUAL MEMORY

When RAM is full

RAM · FULL

Operating system

Web browser

Game

Music app

SECONDARY STORAGE

Files, photos and installed programs

VIRTUAL MEMORY

1 · RAM is full: every space is in use.

Music app

2 · A new program opens. The OS moves data not needed right now into virtual memory.

Video editor

3 · The new program loads into the space freed in RAM.

4 · When that data is needed again it is swapped back. Secondary storage is much slower than RAM, so the computer slows down.

Click four times.

Definition for books: virtual memory is part of secondary storage used as if it were extra RAM when RAM is full.

1 RAM is full. 2 A new program is opened. The operating system moves data that is not needed right now (here the music app) from RAM into virtual memory on secondary storage. 3 The new program is loaded into the space that has been freed in RAM. 4 When the moved data is needed again it has to be swapped back into RAM. Secondary storage is much slower than RAM, so lots of swapping makes the computer slow down.

The fix: add more RAM, so virtual memory is needed less often.

Misconception: virtual memory is not a separate chip and it is not cache. It is space on the hard drive or SSD.

Device-free: students draw the two boxes and the four steps as a comic strip.

Lewis's laptop slows down when many programs are open. Which upgrade helps most?

A

More RAM

B

A bigger ROM chip

C

A larger monitor

D

A faster internet connection

Answer: more RAM. With more RAM, more programs fit in memory at once, so less data has to be swapped to virtual memory on slower secondary storage.

Why the others are wrong: ROM only holds the start-up instructions; a monitor and internet speed do not change how many programs fit in memory.

Device-free: students write the answer and a "because" sentence. Image credit: Liam Briese / Unsplash

01 · LEARN · SECONDARY STORAGE

Secondary storage remembers everything

Secondary storage is non-volatile: it keeps the operating system, programs and files when the power is off.

It is needed because RAM is volatile, and there is far more to keep than RAM can hold.

The photo shows the inside of a hard disk drive: the shiny platter stores data magnetically and the arm holds the read/write head.

Say: secondary storage is for long-term storage. Primary storage is for what is in use now.

Device-free: students add a definition of secondary storage and the reason it is needed. Image credit: benjamin lehman / Unsplash

01 · LEARN · THREE TYPES

Magnetic, optical and solid state

Magnetic

Hard disk drive, magnetic tape. Spinning platters are read by a moving head.

Optical

CD, DVD, Blu-ray. A laser reads tiny pits and flat areas on a spinning disc.

Solid state

SSD, USB memory stick, SD card. Flash memory chips with no moving parts.

Introduce the three types with one example each.

Magnetic: data is stored as magnetised areas on a spinning platter (HDD) or on tape. Optical: a laser reads pits and lands on the disc surface. Solid state: data is stored electrically in flash memory chips, with no moving parts.

Misconception: an SSD is not RAM, even though both use chips. An SSD is non-volatile.

Device-free: students make three columns and list the examples under each. Image credit: Vincent Botta / Unsplash Image credit: Roberto Sorin / Unsplash Image credit: Barry A / Unsplash

01 · LEARN · COMPARING STORAGE

Six ways to compare storage

MAGNETIC

OPTICAL

SOLID STATE

Capacity

Very high: many TB

Low: CD 700 MB, DVD 4.7 GB, Blu-ray 25 GB

High: up to a few TB

Speed

Medium: parts must move

Slow

Very fast: no moving parts

Portability

Fair: internal drives are heavy

High: thin, light discs

High: small and light

Durability

Low: damaged if dropped

Low: scratches easily

High: survives knocks

Reliability

Good, but moving parts wear out

Fair: scratches can lose data

High, but a limited number of writes

Cost per GB

Low

Low per disc

Higher

These six characteristics are the ones OCR J277 names: capacity, speed, portability, durability, reliability and cost. Go row by row and ask students to predict each cell before reading it.

Units (OCR uses multiples of 1000): 1 GB = 1000 MB, 1 TB = 1000 GB. Typical capacities: CD 700 MB, single-layer DVD 4.7 GB, single-layer Blu-ray 25 GB. Hard disk drives hold several terabytes and more; consumer SSDs commonly hold up to a few terabytes.

Notes on the table: optical discs are light but need a drive to read them, and many new laptops have no optical drive. Durability means surviving physical knocks; reliability means keeping data safe over time and use. Each flash memory cell can be rewritten only a limited number of times, but this is rarely a problem for normal use.

Device-free: give out the table as a handout with some cells blank for students to fill in.

Why do most new laptops use solid state drives?

A

They are the cheapest per gigabyte

B

A laser reads the data very quickly

C

They are fast and have no moving parts

D

They have the largest capacity of all

Answer: they are fast and have no moving parts, so they start up quickly and survive knocks when a laptop is carried around. They are also light and use little power.

Why the others are wrong: magnetic hard drives are cheaper per gigabyte and can hold more; lasers are used by optical drives.

Device-free: students write the letter and one extra advantage of SSDs for laptops. Image credit: Barry A / Unsplash

Sort each device under its type of storage.

MAGNETIC

OPTICAL

SOLID STATE




Blu-ray disc

SD card

Hard disk drive

USB memory stick

Magnetic tape

DVD

Answers. Magnetic: hard disk drive, magnetic tape. Optical: Blu-ray disc, DVD. Solid state: SD card, USB memory stick.

Magnetic tape is still used by large organisations for backups because it is cheap for very large amounts of data; it is slow because it is read in order.

Device-free: students write each device in the right column of their table.

01 · LEARN · CHOOSING STORAGE

Choose storage to fit the job

The scenario

Zara is a wedding photographer. Each wedding gives her about 60 GB of photos.

She carries them from the venue to her studio, then edits them quickly.

Needs: capacity, portability, durability, speed.

Optical? No. A single-layer Blu-ray holds 25 GB, so one wedding needs several discs, and writing them is slow.

Magnetic? Possible. Plenty of space and cheap, but its moving parts could be damaged as she travels.

Solid state? Best. A portable SSD is small, light and survives knocks, and its speed makes copying and editing quick.

Worked example for "choose and justify" questions. Read the scenario, ask students to underline her needs, then click three times.

Check: 60 GB is more than one 25 GB single-layer Blu-ray (it would take three discs: 25 + 25 + 10).

Method for the exam: name the type of storage, give an example device, then link each characteristic to the scenario ("durable because she carries it between venues"). A characteristic with no link to the scenario usually earns no mark.

Device-free: students write a three-sentence justification for solid state.

03 · DEBUG · SPOT THE MISTAKES

Ollie's revision notes have two mistakes

▮ TERMINAL // ollie_notes.txt

1  RAM is volatile: it loses data without power.

2  ROM holds the programs you are using now.

3  Virtual memory is secondary storage used as RAM.

4  SSDs are slower than HDDs.

5  Hard disk drives are cheap per gigabyte.

Find both mistakes first. Then tap each marker to check.

Exam tip: RAM and ROM are both primary storage. Do not mix them up with secondary storage.

Pairs find the mistakes, then tap the markers.

Mistake 1 (line 2): ROM holds the start-up instructions; RAM holds the programs in use. Mistake 2 (line 4): SSDs are faster than HDDs, because they have no moving parts.

Lines 1, 3 and 5 are correct.

Device-free: read the five lines aloud; students write the numbers of the wrong lines and the corrections.

1

The operating system moves data that is not being used to secondary storage

2

That area of secondary storage is being used as virtual memory

3

The freed space in RAM is used for the new program

4

When the moved data is needed again, it is swapped back into RAM

5

RAM fills up with programs and data

RAM is full and another program is opened. Put the steps in order.

Correct order: RAM fills up; the OS moves unused data to secondary storage; that area acts as virtual memory; freed RAM is used for the new program; moved data is swapped back when needed.

Misconception: virtual memory is not extra RAM. It is part of secondary storage, so it is much slower, and lots of swapping makes the computer slow down.

Device-free: students number the five steps in their books.

Complete the summary.

RAM is volatile, so it loses its contents when the power is off. ROM holds the start-up instructions. When RAM is full, the computer uses virtual memory on secondary storage. A hard disk drive is magnetic storage, a DVD is optical storage and an SSD is solid state storage.

volatile
ROM
virtual
magnetic
optical
solid state
non-volatile
cache

Answers in order: volatile, ROM, virtual, magnetic, optical, solid state. Distractors: non-volatile and cache.

Device-free: write the paragraph on the board with gaps; students fill them in their books.

Exam practice: Ravi takes 50 GB of music project files between home and college on the bus. Recommend a type of secondary storage and justify your choice. [4 marks]

Give six minutes. Remind students to link every reason to Ravi's situation.

Mark scheme: 1 mark for a suitable type, up to 3 for justification linked to the scenario. Type: solid state, for example a portable SSD or a USB flash drive (1). Portable: small and light enough to carry on the bus every day (1). Durable: no moving parts, so it is unlikely to be damaged if knocked or dropped (1). Fast: large project files copy quickly at home and at college (1). Capacity: enough to hold 50 GB (1).

Accept a portable magnetic hard drive only if the answer recognises the risk to moving parts. Do not accept optical: 50 GB is more than a single-layer Blu-ray (25 GB) and writing discs is slow.

Device-free: students answer in books; model answer on the next slide.

04 · EXAM · MODEL ANSWER

What a 4-mark answer looks like

Ravi should use solid state storage, such as a portable SSD (1).

It is small and light, so it is easy to carry on the bus every day (1).

It has no moving parts, so it is durable if the bag is knocked or dropped (1).

It is fast, so his large project files copy quickly at home and at college (1).

Examiner checklist

Names a type and an example device.

Every reason is linked to Ravi: the bus, the 50 GB, the two places.

Uses the characteristic words: portable, durable, fast, capacity.

Click once for the model answer and once for the checklist. Students mark their own answers in a different colour, one mark per pink (1).

Common lost marks: listing "fast, portable, durable" with no link to the scenario, or naming a device without its type.

Device-free: read the model answer aloud; students tick matching points.

1

I am confident with all of it

2

RAM and ROM

3

Virtual memory

4

Comparing types of storage

Which part would you like to go over again?

Exit check. Use the most popular topic for a starter next lesson.

Device-free: students write the topic on a sticky note on the way out.

04 · EXAM · KEEP GOING

Keep going

Isaac Computer Science

Free GCSE topic pages and questions. Search for "primary storage" and "secondary storage".

BBC Bitesize

GCSE Computer Science, OCR: read the memory and storage pages, then try the test.

OCR past papers

J277/01 Computer systems: find the questions on memory and storage and check them against the mark scheme.

Next lesson: units and binary: from bits and bytes to petabytes, and counting in ones and zeros.

Homework idea: list every storage device in your home (phones, consoles, cameras, laptops) and say whether each is magnetic, optical or solid state.

Device-free: write the three resources on the board.