<h2>Hey there!</h2>
<h3>Printer is an output device. </h3>
<h2>Explanation:</h2>
<h3>CD - We insert CD,so it is an input device.</h3>
<h3>Hard Drive - It is responsible for the memory of the computer, so it also an input device. </h3>
<h3>Joystick - It is used to play games on a computer, it inputs instructions through which a game/games can be played. So,it an input device.</h3>
<h3>Printer - It is used to print out the hard copies from a computer,like pages etc..</h3>
<h2>Hence, the correct option will be </h2>
<h3>D. printer </h3>
<h2>Hope it helps </h2>