Some people call any type of malicious software a "computer virus," but that isn't accurate. Viruses, worms, and trojans are different types of malicious software with different behaviors. In particular, they spread themselves in very different ways. Malicious software in general is referred to as "malware." If you want a catch-all term for bad computer software, malware is the word to use.