ROM can refer to many things. For example, the full name for a CD is a CD-ROM which stands for compact disc, read-only memory. So it acts as a storage device, and in some mind sets, could be considered input to the computer.
In digital circuits a ROM is often used as a look up table type circuit and is generally something that has several inputs, performs logical operations on those inputs, and outputs the corresponding value(s).
So, the answer to your question? It depends on what you're actually talking about, but it would most easily be defined as neither in the normal sense of input and output devices for a computer. You'll have to define what you are referring to by ROM.
Chat with our AI personalities
A CD-ROM (using a player) is an input device because it holds information that is readable. There are writable and re-writable CD's which allow you to add or remove information making it an output device (storage device) as well.
output cuz it got swag
input device
Output
A keypad is an input device.