Examveda

Which type of memory is directly accessed by the CPU during program execution?

A. Cache Memory

B. RAM

C. Hard Disk

D. None of the above

Answer: Option B

Solution (By Examveda Team)

The correct answer is B: RAM (Random Access Memory)

Let's break down why:

A: Cache Memory
While the CPU uses cache memory, it's not directly accessed for every instruction.
Think of it as a small, super-fast storage for frequently used data from RAM.
The CPU first checks the cache.
If the data is there ("cache hit"), it's used.
If not ("cache miss"), the CPU fetches it from RAM.

B: RAM (Random Access Memory)
RAM is the main memory of a computer.
When a program is running, its instructions and data are stored in RAM so the CPU can access them quickly and directly.
The CPU fetches instructions and data directly from RAM to execute the program.

C: Hard Disk
The hard disk is for long-term storage.
It's much slower than RAM.
Programs and data need to be loaded from the hard disk into RAM before the CPU can use them.
The CPU does not directly execute code or access data directly from the hard disk.

D: None of the above
Since RAM is directly accessed, this option is incorrect.

In summary: The CPU uses RAM to directly access and execute programs and their data during program execution.

This Question Belongs to Computer Science >> Computer Architecture

Join The Discussion

Comments (1)

  1. Md. Milon
    Md. Milon:
    6 months ago

    Cache Memory = For the CPU to quickly access frequently used data and instructions.

    RAM = For temporarily storing programs and data so that the CPU can use them.

    so, answer should be option A.

Related Questions on Computer Architecture