{"base":{"id":"cs10-14","subject":"Computer systems","title":"Memory and storage","scene":"mix","steps":[{"use":"chip","mode":"ram","eyebrow":"RAM","title":"Working memory","body":"RAM holds the programs and data in use right now. It is fast and can be read and written, but it is volatile. Open, save, then cut the power and see what survives.","actions":[{"id":"open","label":"Open a file"},{"id":"save","label":"Save it"},{"id":"power","label":"Switch off"}]},{"use":"chip","mode":"boot","eyebrow":"ROM","title":"Instructions that never vanish","body":"ROM is non-volatile, read-only memory. It holds the start-up instructions (the BIOS or firmware) that run when you switch on. Power the computer up.","actions":[{"id":"power","label":"Switch on"}]},{"use":"chip","mode":"ramsize","eyebrow":"Virtual memory","title":"When RAM is full","body":"If RAM fills up, the operating system moves some data to secondary storage as virtual memory. It works, but it is much slower. Change the RAM and open more programs.","controls":[{"id":"ram","label":"RAM","min":4,"max":16,"step":4,"value":8,"unit":"GB"}],"actions":[{"id":"open","label":"Open a program"},{"id":"close","label":"Close one"}]},{"use":"sys10","mode":"storage","eyebrow":"Secondary storage","title":"Magnetic, optical, solid state","body":"Secondary storage keeps files when the power is off. Each type stores data differently and suits different jobs. Compare all three.","actions":[{"id":"s0","label":"Magnetic"},{"id":"s1","label":"Optical"},{"id":"s2","label":"Solid state"}]},{"use":"chip","mode":"quiz","look":"boot","eyebrow":"Check yourself","title":"Which memory?","body":"When a laptop is switched on, it runs instructions that check the hardware and load the operating system.","question":"Where are these start-up instructions stored?","options":["RAM","ROM","Cache"],"answer":1,"right":"Correct. ROM is non-volatile, so the start-up instructions are there even after the power was off.","wrong":"Not quite. It must keep its contents when the power is off."}],"more":[{"type":"cards","id":"worked","eyebrow":"Worked examples","title":"Step by step","items":[{"tag":"Choose storage","title":"A photographer travelling","body":"needs: large, portable, robust\nchoice: SSD (no moving parts, fast, survives knocks)","code":true},{"tag":"Choose storage","title":"A school backup","body":"needs: huge capacity, low cost per GB\nchoice: magnetic hard disks or cloud backup","code":true}]},{"type":"cards","id":"detail","eyebrow":"The ideas in detail","title":"The ideas in detail","items":[{"tag":"Primary","title":"RAM, ROM, cache","body":"Memory the CPU can access directly. RAM is volatile; ROM is not."},{"tag":"Secondary","title":"HDD, SSD, optical, USB","body":"Non-volatile storage for files and software, much bigger and slower than RAM."},{"tag":"Virtual memory","title":"Borrowed storage","body":"Part of the hard disk or SSD used as extra RAM. Swapping data back and forth slows the computer (\"disk thrashing\")."},{"tag":"Cloud storage","title":"Someone else's servers","body":"Files stored on remote servers over the internet. Access anywhere and easy sharing, but needs a connection and trust in the provider."}]},{"type":"cards","id":"mistakes","eyebrow":"Common mistakes","title":"Watch out for these","items":[{"tag":"Mistake","title":"\"ROM is where you save files\"","body":"ROM is read-only and holds start-up firmware. Files go on secondary storage."},{"tag":"Mistake","title":"\"More storage makes a computer faster\"","body":"More RAM can help; a bigger hard disk just holds more."},{"tag":"Mistake","title":"\"Virtual memory is in RAM\"","body":"It is on secondary storage, pretending to be RAM."},{"tag":"Mistake","title":"\"Cloud storage means no hardware\"","body":"The files are on physical servers in data centres."}]},{"type":"bars","id":"data","eyebrow":"Data","title":"Approximate cost per terabyte (2025)","intro":"Prices fall every year.","items":[{"label":"Hard disk","value":20,"display":"about $20","color":"#2f6fdb"},{"label":"SSD","value":60,"display":"about $60","color":"#1f9d55"},{"label":"Blu-ray discs","value":30,"display":"about $30 (many discs)","color":"#d9a020"},{"label":"Cloud (per year)","value":100,"display":"about $100 a year","color":"#7c3aed"}],"facts":[{"title":"Why SSDs win in laptops","body":"They are faster, quieter, lighter and tougher, even if they cost more per GB."},{"title":"3-2-1 backup rule","body":"Keep 3 copies of important files, on 2 different kinds of storage, with 1 copy somewhere else."}]},{"type":"cards","id":"deeper","eyebrow":"Go deeper","title":"More than the lesson","items":[{"tag":"History","title":"From punched cards to SSDs","body":"Early computers stored data on punched cards and magnetic tape. In 1956 IBM's first hard disk held 5 MB and was the size of two fridges."},{"tag":"Real world","title":"Data centres","body":"Cloud services run in huge buildings full of servers that use as much electricity as a small town, much of it for cooling."},{"tag":"Careers","title":"Who manages storage?","body":"System administrators, cloud engineers, data centre technicians and backup specialists."},{"tag":"Coming next","title":"Where this leads","body":"Next: how data is split into packets and sent across networks."}]},{"type":"cards","id":"challenge","eyebrow":"Challenge yourself","title":"Stretch your brain","intro":"Try each one on paper before opening the card.","items":[{"tag":"Challenge","title":"A computer has 8 GB RAM. Programs need 11 GB. What happens, and how could you fix it?","body":"The OS uses about 3 GB of virtual memory on the disk. The computer slows down as data swaps in and out. Fix: add more RAM or close programs."},{"tag":"Challenge","title":"Why is ROM still needed if a computer has an SSD?","body":"When the computer is first switched on, the CPU needs instructions before the SSD and its drivers are ready. These boot instructions are in ROM."}]},{"type":"activities","id":"try","eyebrow":"Try it at home","title":"Try it yourself","items":[{"title":"Memory check","time":"10 minutes","need":["A computer"],"steps":["Find how much RAM and storage your computer has (System settings).","Open lots of browser tabs and watch memory use.","Notice when it slows down.","Close tabs and compare."],"why":"When RAM fills, the system starts using virtual memory and slows down.","safety":"Save your work first."},{"title":"Backup plan","time":"15 minutes","need":["Paper"],"steps":["List your most important files (photos, schoolwork).","Plan where 3 copies would be kept using the 3-2-1 rule.","Estimate how much space you need.","Discuss the plan with a parent."],"why":"A good backup plan protects you from broken devices, theft and accidents.","safety":"Ask before copying family files."}]},{"type":"quiz","id":"quiz","eyebrow":"Quiz","title":"Eight more questions","questions":[{"question":"Which memory is volatile?","options":["ROM","SSD","RAM"],"answer":2,"right":"Correct.","wrong":"Not quite."},{"question":"What is stored in ROM?","options":["Start-up instructions","Your homework","Web pages"],"answer":0,"right":"Correct.","wrong":"Not quite."},{"question":"Which storage has no moving parts?","options":["Hard disk","SSD","DVD drive"],"answer":1,"right":"Correct.","wrong":"Not quite."},{"question":"Virtual memory is…","options":["memory in the cloud","faster than RAM","storage used as extra RAM"],"answer":2,"right":"Correct.","wrong":"Not quite."},{"question":"Which uses a laser?","options":["Optical storage","Magnetic storage","Solid state"],"answer":0,"right":"Correct.","wrong":"Not quite."},{"question":"A drawback of cloud storage is…","options":["files can't be shared","it needs an internet connection","it has no capacity"],"answer":1,"right":"Correct.","wrong":"Not quite."},{"question":"Secondary storage is needed because…","options":["ROM is too fast","the CPU can't use RAM","RAM loses data when off"],"answer":2,"right":"Correct.","wrong":"Not quite."},{"question":"Which is cheapest per TB?","options":["Hard disk","SSD","RAM"],"answer":0,"right":"Correct.","wrong":"Not quite."}]},{"type":"checklist","id":"check","eyebrow":"Self-check","title":"I can…","items":["compare RAM and ROM","explain volatile and non-volatile","explain why computers need secondary storage","describe magnetic, optical and solid-state storage","choose storage for a scenario and justify it","explain virtual memory and its drawback","describe cloud storage with pros and cons","explain a sensible backup plan"]},{"type":"keywords","id":"words","eyebrow":"Key words","title":"Words to know","items":[{"word":"primary storage","meaning":"Memory the CPU accesses directly: RAM, ROM, cache."},{"word":"secondary storage","meaning":"Non-volatile storage for files."},{"word":"RAM","meaning":"Random access memory: volatile working memory."},{"word":"ROM","meaning":"Read-only memory: non-volatile start-up instructions."},{"word":"volatile","meaning":"Loses data without power."},{"word":"SSD","meaning":"Solid-state drive: flash memory, no moving parts."},{"word":"HDD","meaning":"Hard disk drive: magnetic, spinning platters."},{"word":"optical storage","meaning":"Discs read by a laser."},{"word":"virtual memory","meaning":"Secondary storage used as extra RAM."},{"word":"cloud storage","meaning":"Files kept on remote servers."}]},{"type":"sources","id":"sources","title":"Sources","items":["BBC Bitesize, GCSE Computer Science: Memory and storage","Isaac Computer Science: Primary and secondary storage","Computer History Museum: IBM 350 disk storage","Backblaze: hard drive cost per gigabyte"]}]},"overlay":null}