What Does Bug Mean?
In IT, a bug refers to an error, fault or flaw in any computer program or a hardware system. A bug produces unexpected results or causes a system to behave unexpectedly. In short it is any behavior or result that a program or system gets but it was not designed to do.
Techopedia Explains Bug
On September 9th, 1947, an error in the US Naval-operated Mark II computer was caused by a moth being trapped between two electrical relays. William Burke, the operator who found it, was so amused that he took the moth and placed it in a log-book with the annotation “First actual case of bug being found”. This was meant as a pun and is certainly not the first time the word was used to denote errors. The log-book now rests on display in the National Museum of American History of the Smithsonian Institute, with moth still attached.