In every computer system, memory and storage play vital roles in how data is processed, stored, and retrieved. To understand how computers work efficiently, it is important to distinguish between memory and storage.
Memory refers to the temporary space where data and instructions are held while the computer is running. It is fast but usually volatile, meaning it loses its contents when the power is turned off.
Storage, on the other hand, is used for permanent data retention. It holds data even when the computer is powered down. Storage devices tend to be slower than memory but offer much larger capacity.
Think of memory as your desk where you keep the papers you are currently working on, and storage as your filing cabinet where you keep all your documents safely for future use.
Primary memory, also called main memory, is directly accessible by the Central Processing Unit (CPU). It temporarily holds data and instructions that the CPU needs immediately.
There are three main types of primary memory:
| Memory Type | Volatility | Speed | Capacity | Usage |
|---|---|---|---|---|
| RAM | Volatile | Fast (tens of nanoseconds) | Typically 4 GB to 64 GB | Temporary data and program storage |
| ROM | Non-volatile | Slower than RAM | Small (a few MB) | Permanent startup instructions |
| Cache | Volatile | Very fast (few nanoseconds) | Small (KB to few MB) | Speed up CPU data access |
Secondary storage devices provide permanent data storage. Unlike primary memory, these devices retain data even when the computer is turned off. They usually have much larger capacity but slower access speeds.
Common secondary storage devices include:
| Storage Device | Speed | Capacity | Durability | Cost (INR per GB approx.) |
|---|---|---|---|---|
| HDD | Slow (10-15 ms access time) | 500 GB to 10 TB+ | Moderate (mechanical parts prone to damage) | Rs.35 - Rs.50 |
| SSD | Fast (0.1 ms access time) | 120 GB to 4 TB | High (no moving parts) | Rs.100 - Rs.200 |
| Optical Discs | Slow (100 ms+ access time) | 700 MB (CD) to 50 GB (Blu-ray) | Good (if handled carefully) | Rs.2 - Rs.5 per disc |
Understanding the key characteristics of memory helps explain why different types of memory exist and how they affect computer performance.
Storage capacity is measured in units based on bytes. A byte is the basic unit of digital information, typically representing one character.
Storage units increase by powers of 10 in the metric system (used by storage manufacturers):
| Unit | Equivalent Bytes |
|---|---|
| 1 Kilobyte (KB) | 1,000 Bytes |
| 1 Megabyte (MB) | 1,000,000 Bytes |
| 1 Gigabyte (GB) | 1,000,000,000 Bytes |
| 1 Terabyte (TB) | 1,000,000,000,000 Bytes |
Note: In some computer contexts, binary units use 1 KB = 1024 Bytes, but for storage devices and competitive exams, use the metric system (powers of 10) to avoid confusion.
Understanding these units helps in calculating storage capacities and comparing devices.
Step 1: Convert 2048 MB to GB using the conversion \(1\,\text{GB} = 1000\,\text{MB}\).
\( \text{GB} = \frac{2048\,\text{MB}}{1000} = 2.048\,\text{GB} \)
Step 2: Convert 1.5 TB to GB using \(1\,\text{TB} = 1000\,\text{GB}\).
\( 1.5\,\text{TB} = 1.5 \times 1000 = 1500\,\text{GB} \)
Step 3: Add the two values to find total storage.
\( 1500\,\text{GB} + 2.048\,\text{GB} = 1502.048\,\text{GB} \)
Answer: Total storage capacity is approximately 1502.05 GB.
Step 1: Understand the units: 1 ms = 1,000,000 ns.
HDD access time in ns: \(10 \times 1,000,000 = 10,000,000\,\text{ns}\)
Step 2: Compare the access times:
Step 3: Conclusion: Cache memory is fastest because it is closest to the CPU and uses very fast technology. RAM is slower but still much faster than HDD, which relies on mechanical movement.
Answer: Cache memory is the fastest among the three.
Step 1: Convert 1 TB to GB for HDD.
\(1\,\text{TB} = 1000\,\text{GB}\)
Step 2: Calculate cost per GB for HDD.
\(\text{Cost per GB} = \frac{3500}{1000} = 3.5\, \text{INR/GB}\)
Step 3: Calculate cost per GB for SSD.
\(\text{Cost per GB} = \frac{6000}{512} \approx 11.72\, \text{INR/GB}\)
Step 4: Compare costs.
HDD is cheaper per GB but slower; SSD is faster but more expensive.
Answer: HDD costs Rs.3.5/GB, SSD costs Rs.11.72/GB.
Step 1: Non-volatile means data is retained without power.
Step 2: Capacity of 4 GB and slower speed suggests it is not cache or RAM.
Step 3: Used for permanent data storage indicates secondary storage.
Step 4: Among secondary storage, HDD and SSD fit this description.
Step 5: Since speed is slower, it is likely an HDD.
Answer: The memory type is a Hard Disk Drive (HDD).
Step 1: Convert 5 GB to bits.
\(5\,\text{GB} = 5 \times 10^9\,\text{Bytes}\)
Since 1 Byte = 8 bits,
\(5 \times 10^9 \times 8 = 4 \times 10^{10}\,\text{bits}\)
Step 2: Convert 100 Mbps to bits per second.
100 Mbps = \(100 \times 10^6 = 1 \times 10^8\,\text{bits/second}\)
Step 3: Use the formula for transfer time:
\[ t = \frac{\text{File Size (bits)}}{\text{Transfer Speed (bits/second)}} = \frac{4 \times 10^{10}}{1 \times 10^{8}} = 400\,\text{seconds} \]
Step 4: Convert seconds to minutes.
\(400 \div 60 \approx 6.67\,\text{minutes}\)
Answer: It will take approximately 6 minutes and 40 seconds to transfer the file.
When to use: When converting storage units in competitive exams to avoid confusion.
When to use: To quickly answer questions about memory hierarchy.
When to use: When solving cost-related problems in exams.
When to use: To answer conceptual questions on memory types.
When to use: To avoid unit mismatch errors in transfer time problems.
| Feature | Primary Memory | Secondary Storage |
|---|---|---|
| Volatility | Mostly volatile (RAM, Cache) | Non-volatile (HDD, SSD) |
| Speed | Very fast (ns) | Slower (ms) |
| Capacity | Small (MB to GB) | Large (GB to TB) |
| Cost per GB | High | Low |
| Usage | Temporary data for processing | Permanent data storage |
Progress tracking is paywalled — subscribe to mark subtopics as understood and save your streak.
Go to practice →