Memory and storage
This topic covers the fundamental principles of primary and secondary storage, including the roles of RAM, ROM, and virtual memory. It also explores data representation units, binary and hexadecimal number systems, character sets, and the digital representation of images and sound, alongside the principles of data compression.
Quick Revision Summary (Key Takeaway)
Memory and storage covers the difference between primary (RAM/ROM) and secondary storage (HDD, SSD, optical, magnetic), their characteristics (capacity, speed, volatility, cost), and how data is stored using binary. It explains virtual memory, cache, and the need for secondary storage in a computer system.
Topic Overview
Memory and storage is a fundamental topic in computer science that explains how computers hold data and instructions. Primary memory (RAM and ROM) is directly accessible by the CPU and is essential for running programs. RAM is volatile and temporary, while ROM is non-volatile and stores the bootloader. Secondary storage (HDD, SSD, optical, magnetic tape) provides long-term, non-volatile storage for files and programs.
Understanding the characteristics of different storage technologies—such as capacity, speed, cost, and durability—helps in choosing the right storage for a given purpose. Virtual memory extends RAM by using secondary storage as overflow, but it is slower. Cache memory is a small, fast memory that stores frequently used data to speed up processing.
This topic also covers how data is stored in binary, including units like bit, byte, KB, MB, GB, TB, and how to calculate storage requirements. It is essential for understanding system performance and data management in computing.
Key Concepts
Core ideas you must understand for this topic
- →Primary vs secondary storage: primary is directly accessed by CPU (RAM, ROM), secondary is for long-term storage (HDD, SSD).
- →Volatility: RAM loses data when power off (volatile), ROM and secondary storage retain data (non-volatile).
- →Virtual memory: uses part of secondary storage as an extension of RAM when RAM is full.
- →Cache memory: small, high-speed memory between CPU and RAM to reduce access time.
- →Storage characteristics: capacity, speed (access time), cost per GB, portability, durability.
What You Need to Demonstrate
Key skills and knowledge for this topic
- Distinguish between RAM (volatile) and ROM (non-volatile) and their respective purposes.
- Explain the need for virtual memory when RAM is full.
- Compare secondary storage types (optical, magnetic, solid state) based on capacity, speed, portability, durability, reliability, and cost.
- Perform conversions between denary, binary, and hexadecimal number systems.
- Explain binary shifts and overflow errors.
- Calculate file sizes for text, images, and sound using provided formulas.
- Understand the relationship between bit depth, sample rate, and resolution on file size and quality.
- Distinguish between lossy and lossless compression.
Marking Points
Key points examiners look for in your answers
- Distinguish between RAM (volatile) and ROM (non-volatile) and their respective purposes.
- Explain the need for virtual memory when RAM is full.
- Compare secondary storage types (optical, magnetic, solid state) based on capacity, speed, portability, durability, reliability, and cost.
- Perform conversions between denary, binary, and hexadecimal number systems.
- Explain binary shifts and overflow errors.
- Calculate file sizes for text, images, and sound using provided formulas.
- Understand the relationship between bit depth, sample rate, and resolution on file size and quality.
- Distinguish between lossy and lossless compression.
Examiner Tips
Expert advice for maximising your marks
- 💡Always show your working for calculations, as marks are often awarded for the process.
- 💡Be precise with units (e.g., bits vs bytes) when calculating file sizes.
- 💡Use the provided formulas for sound and image file sizes.
- 💡Remember that binary shifts left multiply by 2 and shifts right divide by 2.
- 💡When comparing storage devices, ensure you refer to the specific characteristics requested (e.g., durability, cost).
- 💡Always use correct terminology: 'volatile' vs 'non-volatile', 'primary' vs 'secondary'. Avoid vague terms like 'memory' when you mean 'storage'.
- 💡For calculation questions, show all working and include units (e.g., GB, MB). Check if the question asks for capacity in bytes or bits.
- 💡When comparing storage devices, mention at least three characteristics (e.g., speed, capacity, cost) and give a specific example use case.
Common Mistakes
Pitfalls to avoid in your exam answers
- Confusing the roles of RAM and ROM.
- Incorrectly calculating file sizes by omitting metadata or using wrong units.
- Failing to account for the effect of colour depth or resolution on image file size.
- Misunderstanding the impact of binary shifts on the value of a number.
- Confusing lossy and lossless compression methods.
- Misconception: 'More RAM always makes a computer faster.' Correction: More RAM helps if you run out, but beyond a point it doesn't increase speed; CPU and storage speed matter too.
- Misconception: 'SSDs are faster because they use magnetic disks.' Correction: SSDs use flash memory with no moving parts, which is much faster than magnetic HDDs.
- Misconception: 'ROM is used to store data permanently like a hard drive.' Correction: ROM stores firmware/bootloader, not user data; it is read-only and not meant for general storage.
Revision Plan
How to revise this topic in 1–2 weeks
- 1Day 1-2: Learn the difference between primary and secondary storage, and the characteristics of RAM, ROM, HDD, SSD, optical, and magnetic tape.
- 2Day 3-4: Focus on virtual memory and cache: how they work, advantages and disadvantages.
- 3Day 5-6: Practice calculations: storage capacity, file sizes, and virtual memory size. Use past paper questions.
- 4Day 7: Review common misconceptions and exam tips. Create flashcards for key terms.
- 5Day 8-10: Attempt full past paper questions on memory and storage, time yourself.
- 6Day 11-12: Revise weak areas, use active recall prompts, and teach a friend.
Exam Question Types
How this topic typically appears in the exam
- 📋Multiple-choice: Identifying characteristics of storage types (e.g., 'Which is volatile?'). Tip: Memorise key properties.
- 📋Short answer: Explain the purpose of virtual memory or cache. Tip: Use correct terms and give a clear example.
- 📋Calculation: Compute storage capacity or file size. Tip: Show all steps and check units.
- 📋6-mark comparison: Compare two storage devices (e.g., HDD vs SSD). Tip: Structure answer with three clear points and a conclusion.
Command Word Expectations (OCR)
What examiners look for when using specific command words in this specification
Give a detailed account of how or why something works, including reasons and mechanisms. Must include specific technical details.
Describe similarities and differences between two items. Must include at least two points of comparison and a concluding statement.
Use given data to compute a numerical answer. Show all working and include units in final answer.
How Students Lose Marks (Examiner Pitfalls)
Common mark loss traps and how to write 100% full-mark answers
Step-by-Step Worked Solutions
Detailed solution breakdown for typical exam problems
Question: A computer has 4 GB of RAM and a 500 GB HDD. The operating system uses 2 GB of RAM. A program requires 3 GB of RAM to run. Explain what happens and calculate the size of virtual memory needed.
- 1.Step 1: Identify available RAM: 4 GB total, 2 GB used by OS, so 2 GB free.
- 2.Step 2: Program needs 3 GB, but only 2 GB free. So 1 GB must be moved to virtual memory on the HDD.
- 3.Step 3: Virtual memory size needed = 3 GB (program) - 2 GB (free RAM) = 1 GB.
Question: Calculate the storage capacity of a CD-ROM with a 120 mm diameter, assuming data is stored in a single spiral track with a track pitch of 1.6 µm and each bit occupies 0.3 µm along the track. (Assume the spiral starts at radius 25 mm and ends at 58 mm.)
- 1.Step 1: Calculate number of tracks: (58 mm - 25 mm) / 0.0016 mm = 33 mm / 0.0016 mm = 20625 tracks.
- 2.Step 2: Average track length = 2π × average radius = 2π × (25+58)/2 mm = 2π × 41.5 mm ≈ 260.75 mm.
- 3.Step 3: Total track length = average length × number of tracks ≈ 260.75 mm × 20625 ≈ 5,376,000 mm = 5,376 m.
- 4.Step 4: Number of bits = total length / bit spacing = 5,376,000 mm / 0.0003 mm = 17,920,000,000 bits ≈ 2.24 GB.
Active Recall Memory Test
Test your memory before revealing the key facts
Frequently Asked Questions
Common questions students ask about this topic
Before You Start
Prior knowledge that will help with this topic
- •Binary representation and data units (bit, byte, KB, MB, GB).
- •Basic CPU architecture (fetch-execute cycle, registers).
- •Understanding of computer components (motherboard, CPU, storage).
Likely Command Words
How questions on this topic are typically asked
Ready to test yourself?
Practice questions tailored to this topic