Final answer:
A computer virus spreads by infecting a host computer and then replicating itself to other computers or files through various means such as email attachments, downloaded files, shared files, and system vulnerabilities.
Step-by-step explanation:
A computer virus is a type of malware that, when executed, replicates itself by modifying other computer programs and inserting its own code into those programs.
The virus spreads by infecting a host computer and then replicating itself to other computers or files.
There are several ways that a computer virus can spread:
- Through email attachments or links in emails.
- By downloading infected files or software from the internet.
- By sharing infected files or USB drives.
- Through vulnerabilities in operating systems or software.
Once a computer is infected, the virus can spread to other computers through network connections or by infecting files that are shared between computers.