This is how a computer works
A drive such as a hard drive, optical drive and solid state drive is something that is a device for storing and retrieving digital information, primarily computer data.
A optical drive is a disk drive that uses laser light or electromagnetic waves within or near the visible light spectrum as part of the process of reading or writing data to or from optical discs.
A solid state drive is a data storage device that uses integrated circuit device assemblies as memory to store data persistently such as a memory card or memory stick
RAM stands for Random-access memory it is a form of computer data storage. A random-access device allows stored data to be accessed in very nearly the same amount of time for any storage location, so data can be accessed quickly in any random order. In contrast, other data storage media such as hard disks, CDs, DVDs and magnetic tape read and write data only in a predetermined order.
ROM stands for Read-only memory it is a class of storage medium used in computers and other electronic devices. Data stored in ROM cannot be modified, or can be modified only slowly or with difficulty, so it is mainly used to distribute firmware (software that is very closely tied to specific hardware, and unlikely to need frequent updates).
In computing, input/output or I/O is the communication between an information processing system (such as a computer) and the outside world, possibly a human or another information processing system. Inputs are thye signals or data received by the system, and outputs are the signals or data sent from it. Input/Output devices are used by a person (or other system) to communicate with a computer. For instance, a keyboard or a mouse may be an input device for a computer, while monitors and printers are considered output devices for a computer. Devices for communication between computers.