What is a virus?
Virus is a malicious piece of software or code, which is written intentionally for the destruction of data or malfunctioning on computers. It doesn’t have its own entity. It has two prominent features i.e. execution and replication.
What is a worm?
A computer WORM is a self-contained program or set of programs that is able to spread itself to other computer systems (usually via network connections). Worms unlike viruses don’t patch themselves to the executables files. They work independently.
What is a Trojan Horse?
A Trojan Horse is a fake file that pretends to do something desirable but on execution it infects the system. It does malicious activity without the user’s knowledge.