There are three main types of computer viruses: macro virus, file infector, and boot record infector. These can be further divided into 10 or more categories, with over one billion total programs in existence.