What Are the Three Types of Computer Viruses?

1. File Infectors

These attach to executable files and run malicious code when the file is opened, potentially deleting data or hijacking resources.

2. Boot Sector Viruses

These infect the boot sector of storage devices and execute before the operating system loads, allowing serious system damage.

3. Macro Viruses

These infect documents with macros, such as Word or Excel files, and run when the document is opened, spreading through email and file sharing.