it is an example of hardware and an output device. . . .
No, its not an optical storage device.
It is not an optical device. C D ROM or DVD are optical devices. Whereas a digital memory card is solid state device.
Light pen is a mechanical or optical device? i don't know answer for this
magnetic storage device
No a disk drive is neither input or output device, it is an optical disk drive (for CD/DVD's) and a disk drive (for hard drives) would be a storage device.
CD-R
Input device
Optical equipment is any device that uses light to perform its function.
A device to measure optical refraction.
Mechanical input device
OCR, optical character reading device, OCR device...