A
virus attaches itself to legitimate programs and replicates when that program is executed — requiring user action (running infected software) to spread. Infects files, boot sectors, or macros.
Virus = requires execution of infected file to spread. Worm = spreads automatically via network. Trojan = disguised as legitimate software. Ransomware = encrypts files for ransom. Know these distinctions for the exam.