Learn the types of computer memory, primary and secondary memory, RAM vs ROM, cache memory, examples, and practice MCQs for SSC and Railway exams
Computer memory is one of the most important topics in Computer Awareness for SSC, Railway, Banking, Police, and other competitive examinations. Questions are commonly framed around RAM, ROM, cache memory, primary memory, secondary memory, and volatile and non-volatile memory.
In this guide, you will learn the types of computer memory in simple English, with examples, comparison tables, important exam points, and 15 practice MCQs with answers and explanations.
Computer memory is the part of a computer system that stores data, instructions, and information required for processing. Depending on the type of memory, information may be stored temporarily while a program is running or retained for future use.
For example, when you open a document, the computer loads the required data into working memory so that the processor can work with it. When you save the document to an SSD or hard disk, the file is retained for later use.
Definition for exams: Computer memory is a storage component or system used to hold data, instructions, and processing results.
Computer memory and storage can be classified in different ways. For basic computer awareness, the most useful categories are primary memory, secondary memory, and cache memory. Registers are another important part of the processor’s memory hierarchy.
Cache and registers are often discussed separately when studying the memory hierarchy. In modern computers, the exact hardware organization varies by processor and system design.
Primary memory, also called main memory in many basic computer textbooks, holds information needed by the computer during operation. RAM is the main working memory, while ROM or firmware storage holds essential instructions used to start and operate hardware.
Primary memory is designed for fast access compared with conventional secondary storage. Its capacity, speed, and role depend on the type of memory.
RAM stands for Random Access Memory. It stores programs, data, and instructions that the computer is actively using.
When you open a browser, edit a document, or run a program, the operating system loads the necessary information into RAM. The processor can then access the working data as needed.
Important characteristics of RAM:
Example: When you type in a word-processing application, the active document and application data use RAM while you work. Save the document to permanent storage to retain it after shutdown.
SRAM stands for Static Random Access Memory. It retains its stored data while power is supplied without requiring the periodic refresh used by DRAM.
DRAM stands for Dynamic Random Access Memory. It stores bits in memory cells that require periodic refreshing while power is supplied.
Exam tip: SRAM is commonly associated with cache, whereas DRAM is commonly associated with main system RAM.
ROM stands for Read-Only Memory. In traditional computer fundamentals, ROM refers to non-volatile memory used to retain instructions even when power is switched off.
Computer startup instructions and firmware are stored in non-volatile memory. Modern systems often use flash-based firmware storage that can be updated, so the term ROM does not always mean that the contents can never be changed.
Important characteristics of ROM:
Mask ROM is programmed during manufacturing. Its contents are not normally changed after production.
PROM is supplied in an unprogrammed state and can be programmed once. In conventional PROM technology, the programmed contents cannot be erased and rewritten.
EPROM can be erased using ultraviolet light and then programmed again.
EEPROM can be erased and reprogrammed electrically. It is useful when stored information must be updated without physically replacing the memory chip.
Remember: Flash memory is a form of electrically erasable non-volatile memory and is widely used in SSDs, USB flash drives, memory cards, and firmware storage.
The RAM and ROM difference is an important topic in computer awareness examinations. Learn the following comparison table for quick revision.
| Basis | RAM | ROM |
|---|---|---|
| Full form | Random Access Memory | Read-Only Memory |
| Basic purpose | Stores working data and active programs | Retains firmware and essential instructions |
| Volatility | Generally volatile | Non-volatile |
| Data after power loss | Normally lost | Retained |
| Read and write | Supports normal read and write operations | Depends on the ROM technology; traditional ROM is not routinely rewritten |
| Common examples | DRAM and SRAM | Mask ROM, PROM, EPROM, and EEPROM |
| Typical use | Running applications and processing data | Firmware and startup-related instructions |
Quick memory trick: RAM is the computer’s working area. ROM retains important instructions even when the computer is turned off.
Cache memory is a small, high-speed memory that stores copies of data and instructions likely to be needed by the processor. It reduces the average time required to access information from main memory.
Processors operate very quickly, and retrieving every item directly from RAM can create delays. Cache helps reduce these delays by keeping selected information closer to the processor.
Example: If the processor repeatedly uses the same instructions or data, finding the required information in cache can be faster than fetching it from RAM again.
Not every processor uses exactly the same cache design. The important exam concept is that cache reduces average memory access time.
Key points:
Secondary memory, also called secondary storage or auxiliary storage, is used to keep programs, documents, photographs, videos, and other data for future use.
Unlike volatile RAM, secondary storage normally retains information when the computer is switched off. It generally offers much greater capacity than main memory, although access speed depends on the device and technology.
An HDD stores data on rotating magnetic disks. It is commonly used for storing operating systems, software, documents, and large files.
An SSD uses flash memory and has no rotating disk. It generally offers faster access and better resistance to mechanical shock than a conventional HDD.
A USB flash drive is a portable storage device that uses flash memory. It is useful for transferring documents and other files between compatible devices.
Memory cards are compact flash-based storage devices commonly used in cameras, smartphones, and other electronic equipment.
CDs, DVDs, and Blu-ray Discs use optical technology to read data. Depending on the disc type, data may be read-only, recordable once, or rewritable.
Magnetic tape is a storage medium used for backups and archival purposes. It is useful for storing large amounts of data but usually provides sequential rather than direct access to individual records.
| Basis | Primary Memory | Secondary Memory |
|---|---|---|
| Purpose | Supports current processing and system operation | Stores data and programs for future use |
| Examples | RAM and ROM | HDD, SSD, USB drives, and optical discs |
| Volatility | Depends on the type; RAM is volatile and ROM is non-volatile | Usually non-volatile |
| Capacity | Usually smaller than secondary storage | Usually larger |
| Speed | Designed for fast access by the computer | Speed varies by storage technology and is generally slower than RAM |
| Typical use | Working data, active programs, and firmware | Long-term files, installed software, and backups |
Important: Avoid memorizing an absolute speed rule for every device. Modern SSDs can be very fast, and different memory technologies have different performance characteristics. The basic exam distinction is that RAM serves as working memory, whereas secondary storage retains files for future use.
Virtual memory is a memory-management technique used by an operating system to provide programs with an address space that may exceed the available physical RAM. Depending on the system, the operating system can keep some less-active memory pages in secondary storage and bring them back when needed.
Virtual memory can help a computer run applications when physical RAM is limited, but accessing data from storage is generally much slower than accessing it from RAM. Heavy use of paging can therefore reduce performance.
Exam point: Virtual memory is not an additional physical RAM chip. It is a technique managed by the operating system and hardware.
Registers are very small, high-speed storage locations inside the processor. They hold values, addresses, instructions, and intermediate results needed during processing.
Examples include the Program Counter (PC), Instruction Register (IR), and general-purpose registers. Their precise functions depend on the processor architecture.
Registers are typically faster to access than cache and RAM, but their storage capacity is very small.
Computer memory is organized in a hierarchy to balance speed, capacity, and cost. A simplified hierarchy from fastest to slower storage is:
In general, moving down this simplified hierarchy means greater available capacity and lower cost per bit, but slower access. Exact performance depends on the hardware and workload.
Volatile memory requires power to retain its contents. When power is removed, the stored information is normally lost.
Examples: Main RAM, SRAM, and processor cache.
Non-volatile memory retains its contents without continuous power.
Examples: ROM, flash memory, SSDs, and HDDs.
| Feature | Volatile | Non-volatile |
|---|---|---|
| Needs power to retain data | Yes | No |
| Typical example | RAM | ROM and SSD |
| Common purpose | Temporary working data | Persistent data and instructions |
Test your understanding with these 15 original practice questions. These are practice questions prepared for revision, not claimed previous-year examination questions.
What is the full form of RAM?
Correct Answer: B. Random Access Memory
Explanation: RAM stands for Random Access Memory. It holds the data and instructions currently required by running programs.
Which type of memory normally loses its contents when the power is switched off?
Correct Answer: C. RAM
Explanation: RAM is volatile memory. Its contents are normally lost when the computer loses power.
Which memory is commonly used to store frequently needed data close to the CPU?
Correct Answer: A. Cache memory
Explanation: Cache stores copies of selected data and instructions to reduce average access time.
Which of the following is a common use of DRAM?
Correct Answer: B. Main system memory
Explanation: DRAM is widely used for main system RAM because it provides relatively high capacity at a practical cost.
Which type of RAM does not require periodic refreshing while power is supplied?
Correct Answer: C. SRAM
Explanation: Static RAM retains its stored state without the periodic refresh required by DRAM, as long as power remains available.
Which of the following is non-volatile memory?
Correct Answer: D. ROM
Explanation: ROM retains its stored information when power is removed. SRAM, DRAM, and conventional processor cache are volatile.
Which device is an example of secondary storage?
Correct Answer: C. SSD
Explanation: An SSD is a non-volatile storage device used to retain operating systems, applications, and files.
Which type of ROM can be erased using ultraviolet light?
Correct Answer: A. EPROM
Explanation: EPROM stands for Erasable Programmable Read-Only Memory. Traditional EPROM chips are erased using ultraviolet light.
Which memory can be erased and programmed electrically?
Correct Answer: B. EEPROM
Explanation: EEPROM stands for Electrically Erasable Programmable Read-Only Memory.
What is the main purpose of virtual memory?
Correct Answer: C. To provide a memory-management mechanism that can use storage to support memory beyond physical RAM
Explanation: Virtual memory enables an operating system to manage address spaces larger than available physical RAM. Storage-backed paging is slower than RAM access.
Which component contains very small, high-speed storage locations used directly during processor operations?
Correct Answer: B. Registers
Explanation: CPU registers hold values, instructions, addresses, and intermediate results needed during processing.
Which statement correctly describes secondary storage?
Correct Answer: D. It normally retains data after shutdown.
Explanation: Devices such as SSDs, HDDs, and USB flash drives are non-volatile and retain stored information without continuous power.
What does DRAM stand for?
Correct Answer: A. Dynamic Random Access Memory
Explanation: DRAM is a type of RAM that requires periodic refreshing while powered.
Which of the following is a flash-based storage device?
Correct Answer: C. USB flash drive
Explanation: USB flash drives use non-volatile flash memory to store files and transfer data.
Which option gives the usual order from faster to slower in a simplified memory hierarchy?
Correct Answer: B. Registers, cache, RAM, secondary storage
Explanation: Registers and cache generally provide faster access than RAM, while secondary storage is designed for persistent data and is generally slower than RAM.
For basic computer awareness, the main categories are primary memory and secondary memory. Cache memory and CPU registers are also important parts of the memory hierarchy.
RAM is generally volatile working memory used by active programs. ROM is non-volatile memory traditionally associated with firmware and essential startup instructions.
Processor cache is generally faster to access than main RAM. Cache is smaller and keeps copies of selected data and instructions that the processor may need.
An SSD is normally classified as secondary storage. It retains data when power is switched off and stores files, programs, and the operating system.
Volatile memory normally loses its contents when power is removed, as RAM does. Non-volatile memory retains data without continuous power, as ROM and flash storage do.
Understanding the types of computer memory is essential for computer fundamentals and competitive examinations. Remember the main differences between RAM and ROM, the role of cache memory, the uses of secondary storage, and the meaning of volatile and non-volatile memory.
For quick revision, remember these four points: RAM supports active processing, ROM retains firmware, cache reduces average access time, and secondary storage keeps files for future use.
Practise the MCQs regularly and revise the comparison tables to strengthen your Computer Awareness preparation for SSC and Railway examinations.
Computer fundamentals is an important topic for students preparing for SSC, Railway, Banking, Police, and…
English tenses help us understand when an action happens. They tell us whether something happens…
Explore useful five-letter English words beginning with Y, including meanings, examples and vocabulary for kids,…
Previous Year Question Papers Prepare smarter with exam-wise PYQ papers and practice tests. All Exams…
UPPSC RO ARO Previous Year Question Paper PDF Download UPPSC RO ARO previous year question…
Check the UPPSC RO ARO Exam Pattern 2026, including Prelims, Mains, subjects, marking scheme, negative…