The files and programs on which the user is currently working are stor

The files and programs on which the user is currently working are stored on which one of the following memories?

Secondary memory
RAM
ROM
Register
This question was previously asked in
UPSC CBI DSP LDCE – 2023
RAM (Random Access Memory) is the primary volatile memory in a computer. When a user opens a program or a file, it is loaded from secondary storage (like an SSD or hard drive) into RAM. The CPU then accesses the instructions and data from RAM to execute the program or work with the file.
RAM holds the data and programs that are actively being used by the computer’s processor. Secondary memory is for long-term storage, ROM holds boot firmware, and registers are temporary storage within the CPU itself for immediate operations, not for the entire working files/programs.
RAM is volatile, meaning its contents are lost when the computer is turned off. Its speed allows the CPU to access data quickly, which is essential for smooth performance. The amount of RAM often determines how many programs can be run simultaneously and how large the files can be efficiently handled.