A computer virus is a type of malware that spreads by infecting files and can cause harmful activities on affected systems, leading to slow performance, data loss, and crashes. Viruses spread through email attachments, shared files, and infected documents. To protect against viruses, it is recommended to use antivirus software, maintain firewalls, regularly update systems, and avoid questionable websites.