What is a computer virus? A computer virus is a type of malware that infects a computer system, mobile device,…