Answer:
The matching is as follows:
Worm represents the independent program that propagates via the network for infecting the computers.
Virus is attached to the software program and infects the computer by destroying the files.
Trojan horse acted as the legitimate program and infected the computer at the time of running it.
Step-by-step explanation: