What is the function of the cache memory in a computer's memory hierarchy?
Show answer & explanation
Correct answer: B
Explanation
The correct answer is Option 2 i.e. To store frequently used data for faster access by the CPU.
In a computer's memory hierarchy, cache memory is used to store data that the CPU frequently needs, allowing for quicker access. Located between the CPU and the main memory (RAM), cache memory is a fast and small type of volatile memory. By keeping often-used data and instructions near the processor, it reduces the delay of fetching information from the slower RAM. This setup boosts the overall efficiency and speed of the system by cutting down on latency and speeding up processing.