Which type of malware is a stand-alone program that replicates itself across a network without attaching to a host file?
- A.Virus
- B.Worm
- C.Trojan horse
- D.Adware
Show answer
Correct answer: B. Worm
Explanation
The correct answer is B, worm. A worm carries its own code, finds other machines through the network and copies itself to them without any help from the user, which is why worms can spread across the world in hours. Option A is wrong because a virus must attach itself to a file or program and spreads only when that host is opened, copied or run, so human action is always needed. Option C is wrong because a Trojan horse neither attaches nor replicates; it is disguised as useful software and depends entirely on the user installing it, after which it opens a back door for the attacker. Option D is wrong because adware merely displays unwanted advertisements and gathers browsing habits, and although it is a nuisance it does not spread on its own. The one-line distinction to memorise is that a virus needs a host and a user, a worm needs neither.