Final answer:
All devices attached to the CPU are called peripheral devices, which include both input and output devices, helping in either entering data into or receiving data from a computer.
Step-by-step explanation:
All devices that are attached to the CPU are collectively called peripheral devices. These include both input devices and output devices. Input devices are used to enter data into the computer, like keyboards and mice, while output devices are used to present data from the computer to the user, like monitors and printers. There are also devices that serve both functions, known as input/output devices, such as touchscreen displays.