A: A Virus is a self-replicating code that infects applications and can cause data theft, DDoS or ransomware attacks
B: A worm is a standalone program that spread rapidly and can execute damage to systems by deleting files, creating botnets, or consuming bandwidth.