Secondary storage, RAM, ROM & virtual memory
Computer Science · Computer architecture & systems
Question 1 of 10
0Which list puts these units in order from smallest to largest?
Stuck? Read the explanation
Unlocks at a streak of 5 correct answers in a row.
Embed this practice on your site or class page
Paste this HTML into your page. Students practise right there; it is free and needs no account.
Secondary storage, RAM, ROM & virtual memory explained
Computer storage comes in several kinds. Random access memory (RAM) is the main memory the CPU uses to hold programs and data while they are running. It is volatile, which means its contents are lost when the power is switched off. Read only memory (ROM) holds the start-up instructions a computer needs, and it is non-volatile, so its contents are kept without power.
Secondary storage, such as a hard disk drive (HDD), a solid state drive (SSD) or an optical disc, keeps files and programs for the long term. It is non-volatile and usually much larger than RAM, but it is slower to read and write. Secondary storage is measured in gigabytes (GB) or terabytes (TB), and RAM is usually measured in fewer gigabytes.
Virtual memory is a technique in which the operating system uses part of secondary storage as an extension of RAM. When RAM is full, pages of data that are not needed right now are moved to a reserved area on disk, called swap space or a page file. When those pages are needed again, they are copied back into RAM. Virtual memory lets a computer run programs that together need more memory than it physically has, but it is much slower than using RAM alone, because disk access is slow.
Worked example
A computer has 4 GB of RAM. Several programs together need 6 GB of memory. How much memory must be held in virtual memory on disk, ignoring the operating system's own needs?
- Memory that cannot fit in RAM is GB.
- The operating system stores this 2 GB as pages in swap space on the hard disk or SSD.
What you will practise
100 multiple-choice questions (Easy, Medium, Hard). Each answer is followed by an explanation.
Example questions
- What does it mean that RAM is volatile?
- What is ROM mainly used for in a computer?
- What is RAM mainly used for?
- Which type of storage uses spinning magnetic platters and read/write heads?
- What is a key feature of a solid state drive (SSD)?
- Which technology is used to read data from a CD or DVD?
- Which of these is an example of secondary storage?
- What is virtual memory?
…and 92 more.