Public Service Commission (PSC)2081 BSQuestion 3 of 9
What is computer virus? Explain different types of computer viruses.
6 marks
Question source
- Exam year
- 2081 BS / 2024 AD
- Level
- Level 4
- Paper
- Paper II – Subjective
- Section
- Section A: Short Answer Questions (5 × 6 = 30 marks)
Model answer
A computer virus is a type of malicious software (malware) that attaches itself to legitimate programs or files and replicates when the host program is executed. It can corrupt data, steal information, or damage system files.
Types of computer viruses:
- Boot Sector Virus — Infects the master boot record (MBR) of a hard disk. Activates when the computer boots up. Example: Brain virus.
- File Infector Virus — Attaches to executable files (.exe, .com). Spreads when infected file is run. Example: Cascade virus.
- Macro Virus — Infects documents that support macros (MS Word, Excel). Spreads through email attachments. Example: Melissa virus.
- Polymorphic Virus — Changes its code each time it replicates, making it difficult for antivirus software to detect.
- Trojan Horse — Disguises itself as legitimate software but performs malicious actions once installed.