Computer Memory and storage

Introduction

Computer memory and storage are essential components that enable a computer to process, store, and retrieve data efficiently. Memory is temporary and used for fast processing, while storage is permanent and used to save data for long-term use.


Types of Computer Memory

1. Primary Memory (Volatile Memory) 🖥️

  • Directly accessed by the CPU for fast data retrieval.
  • Temporary and loses data when power is off.
  • Examples: RAM (Random Access Memory) and Cache Memory.

a. RAM (Random Access Memory)

Stores data and instructions currently in use.

The more RAM a system has, the better its performance.

Types:

  • SRAM (Static RAM) – Faster but expensive, used in cache memory.
  • DRAM (Dynamic RAM) – Slower but cheaper, used in main memory.

b. Cache Memory

  • High-speed memory between CPU and RAM.
  • Stores frequently accessed data to speed up processing.

c. Registers

  • Small, high-speed storage areas within the CPU.
  • Store instructions and data during execution.

d. ROM (Read-Only Memory) (Non-Volatile Memory)

Stores firmware (essential programs like BIOS).

Retains data even when the computer is powered off.

Types:

  • PROM (Programmable ROM) – Can be programmed once.
  • EPROM (Erasable Programmable ROM) – Can be erased and reprogrammed.
  • EEPROM (Electrically Erasable Programmable ROM) – Can be reprogrammed multiple times electronically.

2. Secondary Storage (Non-Volatile Storage) 💾

Stores data permanently for long-term use.

Slower than primary memory but provides high storage capacity.

Examples: HDD, SSD, Flash Drives, Optical Discs.

a. Hard Disk Drive (HDD)

  • Traditional storage device with spinning magnetic disks.
  • Large storage capacity (500GB to 10TB).
  • Slower than SSDs but cost-effective.

b. Solid-State Drive (SSD)

  • Uses flash memory for faster data access.
  • No moving parts, making it durable and energy-efficient.
  • Common in modern laptops and high-performance PCs.

c. Flash Memory (USB Drives, SD Cards)

  • Portable and used for quick data transfer.
  • USB Flash Drives (Pen Drives) and Memory Cards (SD, MicroSD).

d. Optical Storage (CD, DVD, Blu-ray)

  • Stores media and software.
  • CD (Compact Disc): 700MB capacity.
  • DVD (Digital Versatile Disc): 4.7GB to 17GB.
  • Blu-ray Disc: Up to 128GB, used for high-definition videos.

3. Tertiary Storage (Backup Storage) 🔄

  • Used for long-term archiving and backups.
  • Examples: Magnetic Tape Drives, Cloud Storage.
  • a. Magnetic Tape
  • Used for massive data storage (corporate backups).
  • Slower access speed but highly durable.
  • b. Cloud Storage ☁️
  • Data stored on remote servers via the internet.
  • Examples: Google Drive, OneDrive, Dropbox.

Memory Hierarchy Table

LevelMemory TypeSpeed 🔥Cost 💰Capacity 📦VolatileFunction
L1CPU RegistersFastestVery HighVery Small (Bytes)YesStores instructions & data for immediate execution.
L2Cache Memory (L1, L2, L3)Very FastHighSmall (KB to MB)YesStores frequently accessed data for quick retrieval.
L3Primary Memory (RAM)FastMediumModerate (GBs)YesTemporary storage for active programs & OS.
L4Secondary Storage (SSD/HDD)SlowLowLarge (GBs to TBs)NoStores OS, applications, files, and documents permanently.
L5Tertiary Storage (Magnetic Tape, Cloud Storage)SlowestVery LowMassive (TBs to PBs)NoUsed for data backup, archival, and cloud storage.


Memory Units in Computers

Memory units measure the amount of data a computer can store and process. The smallest unit of memory is a bit, while larger units are measured in bytes, kilobytes, megabytes, and beyond.

Memory Units Table

UnitSymbolSize (Bytes)Equivalent
BitbSmallest unit0 or 1 (Binary Digit)
Nibble-4 BitsHalf a Byte
ByteB8 Bits1 Character (e.g., ‘A’ or ‘9’)
KilobyteKB1,024 BytesSmall text file (~1 page)
MegabyteMB1,024 KBA short MP3 song (~4MB)
GigabyteGB1,024 MBA full HD movie (~4-8GB)
TerabyteTB1,024 GBA large external hard drive
PetabytePB1,024 TBLarge-scale cloud storage
ExabyteEB1,024 PBMassive global data storage
ZettabyteZB1,024 EBInternet-scale data
YottabyteYB1,024 ZBBeyond current technology
Qus. 1 : The access method used for magnetic tape is

  1. Direct
  2. Random
  3. Sequential
  4. Indexed
Qus. 2 : The instructions or programs that are loaded into main memory when a computer is booted are

  1. Internal commands.
  2. External commands.
  3. Utility Programs.
  4. Bootloader
Qus. 3 : The factor that does not affect the storage capacity of a hard disk

  1. Track density
  2. Height of the hard disk drive
  3. Recording density
  4. Number of plates
Qus. 4 : Main function of shared memory is:

  1. to use primary memory efficently
  2. to do intra process communication
  3. to do inter process communication
  4. None of above
Qus. 5 : EEPROM stands for

  1. Electrically Erasable Programmable Read Of Memory
  2. Erasable Electrically Programmable Read Only Memory
  3. Easily Erasable Programmable Read Only Memory
  4. Electrically Erasable Programmable Read Only Memory
Qus. 6 : An example of a volatile memory is:

  1. CD-ROM
  2. RAM
  3. ROM
  4. Hard Disk
Qus. 7 : Which of the following is a storage device?

  1. Tape
  2. Hard Disk
  3. Floppy Disk
  4. All of the above
Qus. 8 : 1024 bits equal to

  1. 1KB
  2. 1MB
  3. 128 bytes
  4. None of The Above
Qus. 9 : This is a volatile type of memory used only for temporary storage while a program is running.

  1. RAM (Random Access Memory)
  2. Secondary Storage
  3. The disk drive
  4. The USB drive
Qus. 10 : Which of the following component is the main memory of computer?

  1. CD
  2. DVD
  3. Internal Hard Drive
  4. RAM
Qus. 11 : What is the name of the component that used to both read and writes data

  1. ROM
  2. RAM
  3. Hard Drive
  4. Cache Memory
Qus. 12 : Flash memory and Blu Ray disk are the example of

  1. Hardware
  2. Software
  3. CPU
  4. None of these
Qus. 13 : Flash memory is a type of________memory

  1. Primary
  2. RAM
  3. Secondary
  4. All of these
Qus. 14 : Which of the following memory types will store the data or information permanently

  1. RAM
  2. Cache
  3. Register
  4. Hard disk
Qus. 15 : Which of the following memory types cannot store the data or information permanently ?

  1. RAM
  2. ROM
  3. Flash Memory
  4. Hard disk
Qus. 16 : What Is The Capacity of A 3.5 Inch Floppy Disk?

  1. 1.40 Mb
  2. 1.44 Gb
  3. 1.40 Gb
  4. 1.44 Mb
Qus. 17 : Which of the following memory devices is very much similar, mailny in terms of speed, to the cache memory?

  1. Flash Memory
  2. DRAM
  3. SRAM
  4. EEPROM
Qus. 18 : Which among the following memories is used in Digital Camera?

  1. Virtual Memory
  2. Flash Memory
  3. Main Memory
  4. Cache Memory
Qus. 19 : Information in computer on read only memory is stored by :

  1. User
  2. Programmer
  3. Manufacturer
  4. Engineer
Qus. 20 : 1 kilobyte is equals to :

  1. 1024 bytes
  2. 1048576 bytes
  3. 102400 bytes
  4. 1048 bytes
Qus. 21 : Which of the following options shows the correct storage device hierarchy in terms of decreasing access time?

  1. magnetic tape, magnetic disk, cache, main memory
  2. magnetic disk, optical disk, main memory, register
  3. magnetic tape, magnetic disk, main memory, register
  4. register, main memory, magnetic disk, magnetic tape
Qus. 22 : 1 Petabytes (PB) of memory is equal to how many Gigabytes (GB) ?

  1. 1024 GB
  2. 1048576 GB
  3. 524288 GB
  4. 4194304 GB
Qus. 23 : What is full form of ODMR?

  1. On-Demand Mail Relay
  2. Online Demand Mail Relay
  3. Online Delivery Mail Relay
  4. On-Demand Mail Reply
Qus. 24 : What is the Full Form of SSD

  1. Soft State Drive
  2. Solid State Disk
  3. Solid State Drive
  4. Soft State Disk
Qus. 25 : The saving of data and instruction to make them available for later use is a job of

  1. Cache unit
  2. Input unit
  3. Output unit
  4. Storage unit
Qus. 26 : What is the primary purpose of an SSD (Solid State Drive)?

  1. To provide power to the computer
  2. To store data
  3. To connect to a network
  4. To increase processing speed
Qus. 27 : What is the purpose of a solid-state drive (SSD) in modern laptops and desktops

  1. To improve the graphical rendering capabilities of the system.
  2. To provide high-speed data storage and faster read/write performance.
  3. To enhance network connectivity and internet speed.
  4. To act as a backup power source during outages.
Qus. 28 : Which of the following devices uses optical technology for data storage

  1. Hard Disk Drive (HDD)
  2. Solid-State Drive (SSD)
  3. CD-ROM
  4. RAM
Qus. 29 : What is the role of virtual memory in a computer system

  1. Increase the clock speed of the CPU
  2. Simulate additional RAM using storage space
  3. Store frequently used data for quick access
  4. Boost graphical performance
Qus. 30 : What is the function of the registers in a CPU

  1. Store frequently used data and instructions for quick access
  2. Perform arithmetic operations
  3. Manage power supply to the CPU
  4. Control input/output devices
Qus. 31 : What type of storage is a Solid State Drive (SSD)

  1. Optical storage
  2. Magnetic storage
  3. Volatile storage
  4. Flash memory
Qus. 32 : The main memory of a computer is also called

  1. ROM
  2. RAM
  3. Cache memory
  4. Hard disk
Qus. 33 : What is the smallest unit of data in a computer system

  1. Byte
  2. Bit
  3. Nibble
  4. Word
Qus. 34 : Virtual memory is part of

  1. RAM
  2. Hard disk
  3. ROM
  4. Cache
Qus. 35 : <p>Match the following terms with their correct descriptions.</p><table class="table table-bordered"><tbody><tr><td><span style="font-size: 14px;"><b>Terms</b></span></td><td><span style="font-size: 14px;"><b>Descriptions</b></span></td></tr><tr><td><span style="font-size: 14px;">A. CPU</span></td><td><span style="font-size: 14px;">1. Non-volatile storage device</span></td></tr><tr><td><span style="font-size: 14px;">B. RAM</span></td><td><span style="font-size: 14px;">2. Executes program instructions</span></td></tr><tr><td><span style="font-size: 14px;">C. Hard Disk Drive</span></td><td><span style="font-size: 14px;">3. Temporary storage for active processes</span></td></tr><tr><td><span style="font-size: 14px;">D. Operating System</span></td><td><span style="font-size: 14px;">4. Interface between hardware and software</span></td></tr></tbody></table><p><br></p>

  1. A-2, B-3, C-1, D-4
  2. A-3, B-4, C-2, D-1
  3. A-1, B-2, C-4, D-3
  4. A-4, B-1, C-3, D-2
Qus. 36 : <p>Match the following types of memory with their characteristics.</p><table class="table table-bordered"><tbody><tr><td><span style="font-size: 14px;"><b>Memory Type</b></span></td><td><span style="font-size: 14px;"><b>Characteristics</b></span></td></tr><tr><td><span style="font-size: 14px;">A. RAM</span></td><td><span style="font-size: 14px;">1. Non-volatile memory</span></td></tr><tr><td><span style="font-size: 14px;">B. ROM</span></td><td><span style="font-size: 14px;">2. High-speed memory close to CPU</span></td></tr><tr><td><span style="font-size: 14px;">C. Cache Memory</span></td><td><span style="font-size: 14px;">3. Simulated memory using storage</span></td></tr><tr><td><span style="font-size: 14px;">D. Virtual Memory</span></td><td><span style="font-size: 14px;">4. Volatile memory</span></td></tr></tbody></table><p><br></p>

  1. A-1, B-2, C-3, D-4
  2. A-2, B-3, C-4, D-1
  3. A-4, B-1, C-2, D-3
  4. A-3, B-4, C-1, D-2
Qus. 37 : <p>Arrange the following memory types in the correct order from lowest to highest in speed and cost:</p><p>1️⃣ Hard Disk Drive (HDD)</p><p>2️⃣ Cache Memory</p><p>3️⃣ Registers</p><p>4️⃣ RAM (Random Access Memory)</p><p>5️⃣ Solid-State Drive (SSD)</p>

  1. 1 → 4 → 5 → 2 → 3
  2. 4 → 2 → 3 → 5 → 1
  3. 3 → 2 → 4 → 5 → 1
  4. 1 → 5 → 4 → 2 → 3
Qus. 38 : <p>Arrange the following storage devices based on access speed from slowest to fastest:</p><p>1️⃣ HDD (Hard Disk Drive)</p><p>2️⃣ RAM (Random Access Memory)</p><p>3️⃣ SSD (Solid State Drive)</p><p>4️⃣ Cache Memory</p>

  1. 1 → 3 → 2 → 4
  2. 3 → 2 → 1 → 4
  3. 1 → 2 → 3 → 4
  4. 4 → 3 → 2 → 1

Programs

Latest Current Affairs 2025 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online MBA 2 years Online MCA Online BCA Best Website and Software Company in Allahabad