Answer:
A type of malicious code or program written to alter the way a computer operates and is designed to spread from one computer to another.
Once a virus has successfully attached to a program, file, or document, the virus will lie dormant until circumstances cause the computer or device to execute its code. In order for a virus to infect your computer, you have to run the infected program, which in turn causes the virus code to be executed.