Table of Contents
Toggle Memory Definition
Memory refers to the system in which a computer stores data for immediate access or long-term retention. This is essential for the smooth functioning of any computer system as it provides the necessary data for the CPU to process tasks. There are two primary categories of memory: volatile and non-volatile. Volatile memory requires power to maintain stored data (such as RAM), while non-volatile memory retains data even when powered off (such as hard drives or flash memory).
Types of Memory
Computers use several types of memory, each serving different purposes. Understanding these types helps to understand how systems operate more efficiently and how data flows through them. The key categories are:
- Cache Memory
- Primary Memory
- Secondary Memory
Cache Memory
Cache memory is a small, high-speed storage located directly between the CPU and main memory (RAM). Its main role is to reduce the time the CPU needs to access data from the main memory. Cache memory stores frequently accessed data and instructions to improve system performance. It operates much faster than RAM, which significantly boosts the speed of processing tasks.

Primary Memory / Main Memory
Main memory, also known as primary memory, is the core temporary storage that is used while the computer is powered on. Data that is actively being used by the CPU, such as open programs or files, are stored here. It provides the working space needed for the system’s processes to run smoothly.

Characteristics of Main/Primary Memory
Primary memory is volatile, which means that all the data is lost when the power is turned off. However, it offers a significant advantage in terms of speed and direct access for the CPU. The primary types of primary memory are RAM and ROM.
Types of Main/Primary Memory
Primary memory can be divided into two main categories:
- RAM (Random Access Memory)
- ROM (Read-Only Memory)
1.RAM (Random Access Memory)
RAM (Random Access Memory) is a type of computer memory that temporarily stores data and instructions that the CPU needs while the computer is running. It is a volatile memory, which means all data is lost when the computer is turned off. RAM allows the computer to access information quickly, helping programs run faster. The more RAM a computer has, the better it can handle multiple tasks at the same time. It plays an important role in the overall speed and performance of a computer.

There are two types of RAM
A) SRAM (Static RAM): This is faster and more reliable than DRAM but is more expensive and requires more power. SRAM does not need to be refreshed, which makes it faster than DRAM. It is slower but cheaper and widely used as the main memory in computers. SRAM (Static RAM) stores data using flip-flop circuits and does not need refreshing, making it faster and more reliable than DRAM, but also more expensive.
B) DRAM (Dynamic RAM): Unlike SRAM, DRAM needs to be constantly refreshed to retain data. DRAM is slower but more cost-effective and has a higher storage capacity.DRAM stores data using tiny capacitors that need to be refreshed constantly. It is slower than other types of RAM but is cheaper. DRAM is widely used as the main memory in computers and laptops.
Comparison between SRAM and DRAM.
| SRAM | DRAM |
|---|---|
| SRAM stands for Static Random Access Memory | DRAM stands for Dynamic Random Access Memory |
| SRAM is faster than DRAM | DRAM is slower than SRAM |
| SRAM consumes more power | DRAM consumes less power |
| SRAM uses flip-flops for data storage | DRAM uses capacitors for data storage |
| SRAM is more expensive | DRAM is cheaper |
ROM
ROM is non-volatile memory that contains critical system instructions, which cannot be modified by regular processes. It holds the system’s firmware, like the BIOS, which is necessary to boot the system. There are different types of ROM:
- PROM (Programmable ROM):Â
- EPROM (Erasable Programmable ROM):Â
- EEPROM (Electrically Erasable Programmable ROM):Â
1. PROM (Programmable ROM):Â
PROM is a type of non-volatile memory that is manufactured as a blank memory chip and can be programmed only once by the user. Once data is written using a special device called a PROM programmer or burner, the stored information becomes permanent and cannot be changed or erased. PROM is typically used in applications where the data does not need to be updated after initial programming, such as firmware or hardware configuration settings.
2. EPROM Erasable Programmable Read-Only Memory)
EPROM (Erasable Programmable Read-Only Memory) is a type of non-volatile memory chip used to store data permanently. It can be programmed using a special device called a programmer. The stored data can be erased by exposing the chip to ultraviolet (UV) light for several minutes. After erasing, the chip can be reprogrammed and reused multiple times.
3. EEPROM (Electrically Erasable Programmable Read-Only Memory)
EEPROM (Electrically Erasable Programmable Read-Only Memory) is a type of non-volatile memory that can store data permanently. It can be erased electrically, unlike EPROM, which needs UV light for erasing. The data inside an EEPROM can be erased and rewritten byte by byte, making it very flexible. It is commonly used in devices to store small amounts of data like settings, configurations, and calibration values.
Comparison between RAM and ROM
Secondary Memory
Secondary memory is a type of permanent storage used in computers to store data, files, and programs for long-term use. It keeps data even when the power is turned off, unlike primary memory (RAM). Secondary memory is slower than primary memory but has a much larger storage capacity. Examples include hard drives, SSDs, CDs, DVDs, USB drives, and memory cards.
Characteristics of Secondary Memory
Secondary memory is non-volatile, meaning data is preserved even after power is turned off. While it’s slower compared to primary memory, it is much cheaper and offers much higher storage capacities.
Types of Secondary Memory
- Magnetic Storage
- Optical Storage
- Flash Memory
1. Magnetic Storage memory
Magnetic memory is a type of secondary memory that stores data using magnetic fields on a storage medium. It is non-volatile, which means the data remains intact even when the power is turned off. In magnetic memory, information is recorded by magnetizing tiny regions of the storage medium to represent binary data (0s and 1s).
This type of memory allows data to be read and written multiple times, making it reusable and reliable for long-term storage. Magnetic memory is commonly used in devices like hard disk drives (HDDs), magnetic tapes, and older floppy disks. While it offers high storage capacity and is cost-effective, its access speed is slower compared to primary memory such as RAM. Overall, magnetic memory is an essential technology for storing large amounts of data permanently in computers and other electronic devices.
- Hard Disk (HDD): This is the traditional storage device with moving parts. HDDs are relatively cheap and offer high storage capacity.
- Solid-State Drives (SSD): Unlike HDDs, SSDs have no moving parts and store data in flash memory. They are much faster and more durable but are more expensive than HDDs.
Optical Storage
Optical storage devices come in many forms. Here are some common examples that help store music, videos, and data.

CD-ROM:Â
A CD-ROM is a type of optical storage. It means Compact Disc Read-Only Memory. In this storage device, you can only read the data that is already stored on it. But you cannot write new data or change anything on it. People use CD-ROMs to store things like music, games, and software. You place the CD-ROM in the computer’s CD drive when you want to use it.
CD-R
A CD-R is a type of optical disc. You can write data on it only once. After writing the data, you cannot change it or erase it. People use CD-R discs to save songs, videos, and other types of files.
CD-RW
A CD-RW is a type of optical disc. You can write data on it and erase that data later. After erasing, you can write new data on it again. It works like a reusable notebook that you can use many times. People use CD-RW discs to save files and change them whenever they need.
DVD-ROM
A DVD-ROM is a type of optical storage. It stands for Digital Versatile Disc Read-Only Memory. You can only read the data that is stored on it. You cannot write new data or erase anything from it. People use DVD-ROMs to install games, software, and to watch movies.
DVD-R and DVD+R
DVD-R and DVD+R are types of DVDs. You can write data on them only one time. After writing the data, you cannot erase it or change it. People use these discs to save videos, music, or important files. These discs are good for keeping data safe for a long time.
DVD-RW or DVD+RW
A DVD-RW or DVD+RW is a type of DVD that you can use many times. You can save files on it, erase those files, and write new ones again. It works like a notebook where you can remove old writing and write something new. People use this type of DVD to store videos, photos, or documents. It is helpful when you want to change your data later.
BD-ROM
A BD-ROM (Blu-ray Disc Read-Only Memory) is a storage device that uses blue laser light to read data. Just like CDs and DVDs, it stores data on a shiny, round disc. You cannot write any data on a BD-ROM, and you cannot erase anything because it is a read-only medium. Movie studios often use BD-ROM discs to provide HD movies.
BD-R
BD-R stands for Blu-ray Disc Recordable. You can write data on it only once. After you save something on it, you cannot erase it or change it. People use BD-R discs to store big files like HD movies, games, or videos. It can hold much more data than CDs or DVDs.
BD-RE
BD-RE stands for Blu-ray Disc Recordable Erasable. It is a special type of Blu-ray disc. You can save data on it, delete that data, and then save new data again. This means you can use the same disc many times. People use BD-RE discs to store big videos, games, or files. It is good for backup and for sharing data.
Flash Memory
Flash memory is a type of non-volatile memory used for storing data in portable devices. It is faster and more durable than magnetic storage. Flash memory is commonly found in devices such as:
- Pen Drives: These are portable storage devices that use flash memory to store files.

Comparison Between Primary and Secondary Memory
| Features | Primary Memory | Secondary Memory |
|---|---|---|
| Speed | Faster | Slower |
| Volatility | Volatile (data is lost when power off) | Non-volatile (data is retained) |
| Capacity | Smaller capacity | Larger capacity |
| Data Access | Directly accessible by the CPU | Indirect access (via primary memory) |
| Cost | More expensive per GB | Less expensive per GB |
| Examples | RAM, Cache Memory | HDD, SSD, CDs, DVDs, USB drives |
| Purpose | Temporary storage for active processes | Long-term storage of data and files |
FAQ’s
What is the difference between primary and secondary memory?
Primary memory is used by the CPU to store data that is currently in use, while secondary memory stores data that is not actively being used. Primary memory is faster but volatile, whereas secondary memory is slower but non-volatile.
How does cache memory work?
Cache memory stores frequently accessed data, allowing the CPU to quickly retrieve it without waiting for data from slower RAM. This improves system performance.
What is the role of ROM in a computer system?
ROM contains firmware that is essential for starting up the computer system. It stores the BIOS or booting instructions.
What are the benefits of SSD over Hard Disks?
SSDs are faster, more durable, and consume less power compared to traditional hard disks. They also offer quicker data access and system boot times.
What are the types of RAM?
There are two main types of RAM: SRAM (Static RAM) and DRAM (Dynamic RAM). SRAM is faster but more expensive, while DRAM is slower but more cost-effective.
What is the difference between PROM, EPROM, and EEPROM?
- PROM can be programmed once and cannot be modified.
- EPROM can be erased with UV light and reprogrammed.
- EEPROM can be electrically erased and reprogrammed multiple times.
Compiled by Er. Basant Kumar Yadav


Good notes sir for class 9 students