Correct option is B
Cache memory is a small, high-speed memory located close to the CPU.
It stores frequently accessed data and instructions, allowing the CPU to retrieve them more quickly than if they were stored in the main memory.
(a) To provide permanent storage for data and files: This is incorrect because cache memory is volatile and provides temporary storage, not permanent storage.
(c) To control the flow of data between the CPU and memory: This is incorrect as this task is generally managed by the memory controller, not cache memory.
(d) To manage the allocation of memory resources to different programs: This is incorrect because memory allocation is typically managed by the operating system, not cache memory.