Main store (or computer memory) is divided into Read Only Memory (ROM) and Random Access Memory (RAM).
ROM is memory that cannot be changed by a program or user. ROM retains its memory even after the computer is turned off. For example, ROM stores the instructions for the computer to start up when it is turned on again.
If a computer loses power, all data stored in its RAM is lost.