The data on computer is stored in memory. Memory is divided into two main parts RAM and ROM.
Data stored in RAM is temporarily while data lies in ROM is permenant.
The computer memory is any kind of physical device which can store data temporarily or permanently. Memory consist of instructions and data saved into computer through CPU. The performance of computer depends upon CPU and memory.
Computer memory is divided into two main parts which are Primery memory and secondary memory. Primary memory has two types. Random Acces Memory (RAM) and Read Only Memory. (ROM).
a) Random Access Memory:This memory is also known as volatile memory because data is not stored in it permanently and it stored data temporarily. The information will lost if the computer is turned off or any power failure. Data can be read and written on it. It is also known as random access memory because of the random selection of memory locations for data storage. It is fast memory because it is the internal memory of computer.
b) Read Only Memory :Read only memory is a permenant memory location. Once a computer is manufactured, the instructions are saved on the ROM chip permanently. It works as read only operation so data can’t be changed. It is also called non-volatile memory because data stored in it can not be lost in any power failure case.