There are many types of computer viruses, but some of the most common are:

 

• Boot sector virus – A virus that infects the boot sector of a hard drive or floppy disk. This type of virus is often spread by floppy disks that are left in the disk drive.

 

• File infector virus – A virus that infects executable files. When the infected file is run, the virus is also run. This type of virus is often spread by email attachments or by downloading infected files from the Internet.

 

• Macro virus – A virus that is written in a macro language. Macro viruses are often spread by email attachments or by downloading infected files from the Internet.

 

• Memory resident virus – A virus that stays in memory and infects files when they are accessed. This type of virus is often spread by email attachments or by downloading infected files from the Internet.

 

• Script virus – A virus that is written in a scripting language. Script viruses are often spread by email attachments or by downloading infected files from the Internet.