The question asks to identify the type of memory that loses its stored information immediately when the electrical power is disconnected. This property is known as volatility.
Computer memory can be broadly classified based on whether it retains data without power:
Let's examine each option provided:
1. ROM (Read-Only Memory): ROM is a type of non-volatile memory. It stores firmware or essential instructions needed to start the computer. The data in ROM is permanent or semi-permanent and is not lost when the power is turned off.
2. RAM (Random Access Memory): RAM is the primary type of volatile memory used in computers. It is used for temporary storage of data that the CPU is actively working with. Because it's volatile, RAM loses all its contents as soon as the power supply is cut off. This is why saving your work frequently is important.
3. USB flash drive: A USB flash drive uses flash memory, which is a type of non-volatile storage technology. It retains data even without power, allowing you to store files long-term.
4. Hard disk drive (HDD): Hard disk drives are a form of non-volatile storage that uses magnetic storage to hold data. They keep stored information permanently (or until deleted) regardless of power status.
Based on the analysis, RAM is the memory type that loses all its stored data when the power is turned off due to its volatile nature.