Computer Security & Viruses MCQs — Computer Science
4 practice MCQs
The correct answer is marked on every question, with its full explanation.
Computer ScienceComputer Security & Viruses CSS PPSC FPSC NTSID: NWG-007
What is a computer virus?
- AA harmful program that can copy itself and damage or disturb a computer. ✓ Correct answer
- BA program that protects a computer from hackers.
- CA device that stores backup copies of files.
- DA cable used to connect a computer to a network.
✓ Correct answer: A harmful program that can copy itself and damage or disturb a computer.
Full explanation
A computer virus is 'A harmful program that can copy itself and damage or disturb a computer.' Why the others are wrong: 'A program that protects a computer from hackers.' — that describes antivirus software, the opposite of a virus. 'A device that stores backup copies of files.' — that is a backup drive. 'A cable used to connect a computer to a network.' — that is a network cable.
Computer ScienceComputer Security & Viruses CSS PPSC FPSC NTSID: CMP-013
Which of the following is a common way to protect a computer from viruses?
- AInstalling antivirus software ✓ Correct answer
- BOpening every email attachment
- CUsing the same password everywhere
- DDownloading files from unknown websites
✓ Correct answer: Installing antivirus software
Full explanation
Installing antivirus software. It protects a computer, because it finds and removes viruses before they can do harm. Why the others are wrong: Opening every email attachment — this is dangerous, because attachments often carry viruses. Using the same password everywhere — this makes all your accounts easy to break into. Downloading files from unknown websites — this is one of the main ways viruses enter a computer.
Computer ScienceComputer Security & Viruses CSS PPSC FPSC NTSID: CMP-034
Which of the following is a type of harmful software that locks a user's files and demands money to unlock them?
- AFirewall
- BAntivirus software
- CSearch engine
- DRansomware ✓ Correct answer
✓ Correct answer: Ransomware
Full explanation
Ransomware is a type of harmful software that locks a user's files and demands money to unlock them. The harmful software that locks files and demands money is Ransomware. Why the others are wrong: Firewall — a firewall is a security tool that blocks harmful traffic; it does not lock files. Antivirus software — antivirus software protects a computer from harmful software; it does not lock files. Search engine — a search engine is used to search the Internet; it is not harmful software.
Computer ScienceComputer Security & Viruses CSS PPSC FPSC NTSID: CMP-057
Which of the following is a type of harmful software that shows unwanted advertisements on a computer?
- ASpam filter
- BAdware ✓ Correct answer
- CAntivirus
- DFirewall
✓ Correct answer: Adware
Full explanation
The harmful software that shows unwanted advertisements is adware. Why the others are wrong: Firewall — a firewall blocks harmful traffic; it is a protection, not a harmful program. Antivirus — antivirus software removes harmful programs; it is a protection, not a harmful program. Spam filter — a spam filter blocks unwanted emails; it is a protection, not a harmful program.
Practise these MCQs interactively →
← Computer Science MCQs