It is the primary memory of the computer system. RAM is a piece of hardware device that is located inside the motherboard. The main work of RAM is to execute the program by storing the data and instructions of that program via read and write and then when the user called to open the program it will execute.