Module 4 - Questions and Answers (As per FOC Notes)
1. What is Cache Memory?
Cache memory is a small, high-speed storage area located close to the CPU. It stores frequently
accessed data and instructions to reduce the time the CPU spends waiting for data from the main
memory.
2. Differentiate between L1, L2, and L3 cache.
L1 Cache: Built into the CPU core, smallest and fastest.
L2 Cache: On CPU chip but outside the core, larger and slower than L1.
L3 Cache: Shared among CPU cores, largest and slowest among caches but faster than RAM.
3. What is a cache hit and cache miss?
When the CPU finds data in the cache, it's a cache hit. If not found and data is fetched from RAM,
it's a cache miss.
4. List advantages and disadvantages of cache memory.
Advantages: Improves CPU performance, reduces RAM access time.
Disadvantages: Expensive and limited in size.
5. What is RAM and why is it important?
RAM is volatile memory that temporarily stores data and instructions for quick access by the CPU. It
improves speed and allows multitasking.
6. What is the difference between SRAM and DRAM?
SRAM is faster, used in cache memory. DRAM is slower but cheaper, used in main memory (RAM).
7. What happens when RAM is not enough?
The system uses virtual memory from the hard drive, which is slower, causing lag and performance
issues.
8. What is Virtual Memory? How does paging work?
Virtual memory uses a part of the hard drive as extended RAM. It divides memory into pages and
swaps them between RAM and storage as needed.
9. What is thrashing?
Thrashing occurs when excessive paging slows down the system. It happens when the system
spends more time swapping pages than executing instructions.
10. Difference between Physical and Virtual Memory.
Physical memory is actual RAM; fast and limited. Virtual memory is disk space used as RAM; slower
but increases capacity.