A computer virus is a type of malicious software program that can replicate itself and spread from one computer to another. It can corrupt data, software, operating systems, and slow down computer performance. There are many types of viruses including program viruses, boot viruses, macro viruses, and stealth viruses. It is important to use antivirus software, regularly scan devices, avoid opening suspicious emails or files, and keep software updated to help prevent virus infections.