 When the program runs, the written virus program is executed first, causing infection and damage.A worm does not need a host program, as it is an independent program or code chunk.Therefore, it is not restricted by the host program, but can run independently and actively carry out attacks.