Computer Security & Viruses MCQs
20 practice MCQs on this page Page 12 of 18
Tap an option to check your answer — the correct answer and full explanation appear after you choose.
Computer ScienceComputer Security & Viruses PPSCID: LTP-8360
Which attack takes over a user's active web session by stealing the session token?
- ASession hijacking ✓ Correct answer
- BPhishing
- CSQL injection
- DCross-site scripting
✓ Correct answer: Session hijacking
Full explanation
Session hijacking takes over a user's active web session by stealing the session token.
Computer ScienceComputer Security & Viruses PPSCID: LTP-8361
Which attack tricks a user into clicking a hidden button on a web page?
- APhishing
- BClickjacking ✓ Correct answer
- CRansomware
- DSpoofing
✓ Correct answer: Clickjacking
Full explanation
Clickjacking tricks a user into clicking a hidden button on a web page, making them perform an action they did not intend.
Computer ScienceComputer Security & Viruses PPSCID: LTP-8362
Which term describes a network of infected computers controlled remotely by an attacker?
- AFirewall
- BProxy
- CBotnet ✓ Correct answer
- DVPN
✓ Correct answer: Botnet
Full explanation
A Botnet is a network of infected computers controlled remotely by an attacker, often used for DDoS attacks.
Computer ScienceComputer Security & Viruses PPSCID: LTP-8363
Which malware attaches itself to a host file and spreads when the file is run?
- AComputer worm
- BTrojan horse
- CSpyware
- DComputer virus ✓ Correct answer
✓ Correct answer: Computer virus
Full explanation
A Computer virus attaches itself to a host file and spreads when the file is run.
Computer ScienceComputer Security & Viruses PPSCID: LTP-8364
Which malware spreads on its own across a network without a host file?
- AWorm ✓ Correct answer
- BVirus
- CTrojan horse
- DRootkit
✓ Correct answer: Worm
Full explanation
A Worm spreads on its own across a network without a host file, unlike a virus which needs one.
Computer ScienceComputer Security & Viruses PPSCID: LTP-8440
Which practice helps prevent cross-site scripting by escaping user input before display?
- AOutput encoding ✓ Correct answer
- BDisabling the firewall
- CSharing passwords
- DUsing HTTP only
✓ Correct answer: Output encoding
Full explanation
Output encoding helps prevent cross-site scripting by escaping user input before display, so scripts cannot run.
Computer ScienceComputer Security & Viruses PPSCID: LTP-8441
Which technique prevents SQL injection by separating SQL code from user data?
- AOutput encoding
- BPrepared statements ✓ Correct answer
- CInput validation only
- DDisabling cookies
✓ Correct answer: Prepared statements
Full explanation
Prepared statements prevent SQL injection by separating SQL code from user data, so input cannot change the query.
Computer ScienceComputer Security & Viruses PPSCID: LTP-8442
Which attack tricks a logged-in user into submitting an unwanted request to a website?
- ACross-site scripting
- BSQL injection
- CCross-Site Request Forgery (CSRF) ✓ Correct answer
- DPhishing
✓ Correct answer: Cross-Site Request Forgery (CSRF)
Full explanation
Cross-Site Request Forgery (CSRF) tricks a logged-in user into submitting an unwanted request to a website.
Computer ScienceComputer Security & Viruses PPSCID: LTP-8443
Which attack steals a session cookie to impersonate a logged-in user?
- AClickjacking
- BPhishing
- CSpoofing
- DSession hijacking ✓ Correct answer
✓ Correct answer: Session hijacking
Full explanation
Session hijacking steals a session cookie to impersonate a logged-in user.
Computer ScienceComputer Security & Viruses PPSCID: LTP-8444
Which security model assumes no user or device is trusted by default, even inside the network?
- AZero Trust model ✓ Correct answer
- BPerimeter security
- CTrust all model
- DOpen network model
✓ Correct answer: Zero Trust model
Full explanation
The Zero Trust model assumes no user or device is trusted by default, even inside the network, and verifies every request.
Computer ScienceComputer Security & Viruses PPSCID: LTP-8445
Which activity systematically reviews systems and policies to find security weaknesses?
- APenetration testing only
- BSecurity audit ✓ Correct answer
- CData backup
- DSoftware update
✓ Correct answer: Security audit
Full explanation
A Security audit systematically reviews systems and policies to find security weaknesses.
Computer ScienceComputer Security & Viruses PPSCID: LTP-8446
Which activity simulates a real attack to test how well a system resists intruders?
- ASecurity audit
- BData backup
- CPenetration testing ✓ Correct answer
- DPatching
✓ Correct answer: Penetration testing
Full explanation
Penetration testing simulates a real attack to test how well a system resists intruders.
Computer ScienceComputer Security & Viruses PPSCID: LTP-8447
Which process handles a security breach from detection through recovery?
- ARisk assessment
- BVulnerability scanning
- CPatch management
- DIncident response ✓ Correct answer
✓ Correct answer: Incident response
Full explanation
Incident response handles a security breach from detection through recovery, including containment and lessons learned.
Computer ScienceComputer Security & Viruses PPSCID: LTP-8448
Which process identifies threats and estimates their impact before choosing controls?
- ARisk assessment ✓ Correct answer
- BIncident response
- CPenetration testing
- DData backup
✓ Correct answer: Risk assessment
Full explanation
Risk assessment identifies threats and estimates their impact before choosing controls.
Computer ScienceComputer Security & Viruses PPSCID: LTP-8449
Which automated activity searches systems for known security weaknesses?
- APenetration testing
- BVulnerability scanning ✓ Correct answer
- CPhishing simulation
- DData encryption
✓ Correct answer: Vulnerability scanning
Full explanation
Vulnerability scanning searches systems for known security weaknesses automatically.
Computer ScienceComputer Security & Viruses PPSCID: LTP-8450
Which practice protects stored data by encrypting it on disk?
- AEncryption in transit
- BHashing
- CEncryption at rest ✓ Correct answer
- DTokenisation
✓ Correct answer: Encryption at rest
Full explanation
Encryption at rest protects stored data by encrypting it on disk, so stolen drives remain unreadable.
Computer ScienceComputer Security & Viruses PPSCID: LTP-8451
Which practice protects data while it travels over a network?
- AEncryption at rest
- BHashing
- CBacking up
- DEncryption in transit ✓ Correct answer
✓ Correct answer: Encryption in transit
Full explanation
Encryption in transit protects data while it travels over a network, for example with TLS.
Computer ScienceComputer Security & Viruses PPSCID: LTP-8452
In asymmetric encryption, which key can be shared openly with anyone?
- APublic key ✓ Correct answer
- BPrivate key
- CSession key
- DMaster key
✓ Correct answer: Public key
Full explanation
The Public key can be shared openly with anyone; only the private key must stay secret.
Computer ScienceComputer Security & Viruses PPSCID: LTP-8453
In asymmetric encryption, which key must be kept secret by its owner?
- APublic key
- BPrivate key ✓ Correct answer
- CSession key
- DShared key
✓ Correct answer: Private key
Full explanation
The Private key must be kept secret by its owner; anyone with it can decrypt messages or forge signatures.
Computer ScienceComputer Security & Viruses PPSCID: LTP-8454
Which document binds a public key to a website's identity and is signed by a trusted authority?
- APassword file
- BSession token
- CDigital certificate ✓ Correct answer
- DCookie
✓ Correct answer: Digital certificate
Full explanation
A Digital certificate binds a public key to a website's identity and is signed by a trusted authority.
Practice these MCQs interactively
← Computer Science MCQs