Ans. A virus can spread by attaching itself to files which are transferred from one computer to another. A worm spreads by exploiting vulnerabilities in operating systems or applications on individual computers. A virus attaches itself to executable files, whereas a worm exploits vulnerabilities in an operating system or application residing on an individual computer.