How does a classic computer virus replicate?

It inserts copies of itself into host programs or data files.

Start playing free

  1. By changing DNS records
  2. By attaching to host programs ✔
  3. By replacing every router

Why: A virus depends on another program or file as its host. It commonly becomes active when a person opens the infected file or runs the infected program.

Huh, didn't know that: This need for a host distinguishes a classic virus from a self-contained worm.

The dad joke
The virus needed a host, so the program set an extra place at dinner.
Like this card?
Play the game

References

Answer: By attaching to host programs. A virus depends on another program or file as its host. It commonly becomes active when a person opens the infected file or runs the infected program.

  1. NIST SP 800-83 Rev. 1 nvlpubs.nist.gov/nistpubs/specialpublications/nist.sp.800-83r1.pdf
    A virus self-replicates by inserting copies of itself into host programs or data files.
    Checked 2026-10-10.

Think this answer is wrong? Tap "Challenge this answer" on the card in the game and tell us why.

Test yourself in the game