Class 12 Computer Science Chapter 12 Question Bank CBSE Board Pattern

Section A — MCQs (1 mark each)

  1. Which of the following malware does not require a host program/file to replicate?
    (a) Virus (b) Worm (c) Trojan (d) Spyware

  2. Assertion (A): A computer virus remains dormant until the infected file is opened/executed by the user.
    Reason (R): A virus needs human triggering for replication, unlike a worm.
    (a) Both A and R are true and R is the correct explanation of A.
    (b) Both A and R are true but R is not the correct explanation of A.
    (c) A is true but R is false.
    (d) A is false but R is true.

  3. Which malware encrypts user data and demands payment in cryptocurrency?
    (a) Trojan (b) Adware (c) Ransomware (d) Keylogger

  4. Assertion (A): HTTPS encrypts data before transmission while HTTP does not.
    Reason (R): HTTPS websites require an SSL Digital Certificate.
    (a) Both A and R are true and R is the correct explanation of A.
    (b) Both A and R are true but R is not the correct explanation of A.
    (c) A is true but R is false.
    (d) A is false but R is true.

  5. A malware that looks like legitimate software and creates backdoors is called:
    (a) Worm (b) Trojan (c) Spyware (d) Adware

  6. Which method used by antivirus executes a file in a virtual environment to observe its behaviour?
    (a) Signature-based detection (b) Sandbox detection (c) Heuristics (d) Data mining

  7. The term “cookie” in web browsing refers to:
    (a) A malware (b) A small data file stored by a website on the client’s computer (c) A firewall rule (d) An encryption key

  8. Which type of hacker hacks systems only for fun/challenge without monetary or political gains?
    (a) White Hat (b) Black Hat (c) Grey Hat (d) None of these

  9. Distributed Denial of Service (DDoS) attack uses:
    (a) A single compromised computer (b) A bot-net of zombie computers (c) Only email attachments (d) Removable storage devices

  10. Snooping is also known as:
    (a) Eavesdropping (b) Sniffing (c) Phishing (d) Spoofing

Section B — Very Short Answer (2 marks each)

  1. Differentiate between a virus and a worm (any two points).
  2. What is ransomware? Give one example.
  3. State any two common signs of malware infection.
  4. How is an online virtual keyboard safer than an on-screen keyboard?
  5. Define spyware and state one threat it poses.
  6. What is the difference between HTTP and HTTPS?

Section C — Short Answer (3 marks each)

  1. Explain any three modes of malware distribution.
  2. List three preventive measures against malware as given in the chapter.
  3. Distinguish between Network Firewall and Host-based Firewall.
  4. What are cookies? State one advantage and one threat associated with them.
  5. Briefly explain any three types of hackers (White Hat, Black Hat, Grey Hat).

Section D — Long Answer (5 marks each)

  1. Explain the working of any four methods of malware identification used by antivirus software.
  2. What is Denial of Service (DoS) attack? How is it different from Distributed Denial of Service (DDoS) attack? Explain with the help of a trace table showing the flow of requests from legitimate users versus a bot-net attack (minimum 5 steps).
  3. Describe the complete process of how a worm spreads across a network and the role of a firewall in preventing such network security threats. Also explain the difference between snooping and eavesdropping.

Section E — Case/Source-Based (4 marks each)

Case 1

A school provides internet access to students for project work. The network administrator observes frequent pop-ups, unusually slow computers, and mass emails being sent from student accounts. Students are also accessing finance server data which they are not authorised to view.

(i) Identify the possible malware types that may be causing the symptoms.
(ii) Which security device should be configured to prevent unauthorised access to the finance server?
(iii) Suggest two preventive measures the school should adopt immediately.
(iv) Name the type of attack if the slowdown is caused by a large number of illegitimate requests from multiple compromised computers worldwide.

Case 2

Riya visits an e-commerce site and adds items to her cart. Later she notices targeted advertisements for similar products on other websites. She also receives an unsolicited email with an attachment claiming to be an invoice.

(i) Which chapter concept is responsible for showing targeted advertisements across websites?
(ii) What risk does the email attachment pose? Name the malware distribution method.
(iii) Which protocol should the e-commerce site use while accepting payment details and why?
(iv) Suggest one measure Riya should take to protect her sensitive information on public computers.

Answer Key Attempt all questions first,
then tap to reveal

Section A

  1. (b) Worm
  2. (a)
  3. (c) Ransomware
  4. (b)
  5. (b) Trojan
  6. (b) Sandbox detection
  7. (b)
  8. (c) Grey Hat
  9. (b)
  10. (b) Sniffing

Section B

  1. Virus needs host file & human trigger; worm is standalone & self-replicates over network.
  2. Malware that blocks/encrypts user data and demands ransom (e.g., WannaCry).
  3. Frequent pop-ups, slow performance, mass emails from account, unknown programs starting.
  4. Online virtual keyboard randomises key layout each time; on-screen uses fixed QWERTY.
  5. Malware that secretly gathers and sends user information without consent; can steal passwords/banking details.
  6. HTTP transmits data in plain text; HTTPS encrypts data before transmission.

Section C

  1. Downloaded from Internet, spam email, removable storage devices, network propagation (any three).
  2. Use updated antivirus, avoid clicking links in unsolicited emails, scan removable devices, never share passwords, take regular backups (any three).
  3. Network Firewall placed between networks; Host-based Firewall installed on a single computer.
  4. Small data file stored by website on client’s computer. Advantage: stores login/session data. Threat: third-party cookies may track/share data without consent.
  5. White Hat – ethical, fixes flaws; Black Hat – cracks systems illegally; Grey Hat – hacks for fun/challenge without monetary gain.

Section D

  1. Signature-based (uses Virus Definition File), Sandbox (virtual environment), Heuristics (pattern matching), Data mining/ML, Real-time protection (any four with explanation).
  2. DoS floods a resource from one source; DDoS uses multiple zombie computers (bot-net). Trace table example showing legitimate requests vs. flood from distributed IPs.
  3. Worm self-propagates via network; firewall monitors traffic using rules. Snooping = capture & later analysis; Eavesdropping = real-time interception.

Section E

Case 1: (i) Virus/Worm/Adware/Keylogger (ii) Firewall (iii) Update antivirus, configure firewall rules, avoid unknown downloads (iv) DDoS
Case 2: (i) Third-party cookies (ii) Trojan/malware via spam email (iii) HTTPS – encrypts sensitive data (iv) Use virtual keyboard, avoid public Wi-Fi for banking, scan devices.

All questions are answerable from the NCERT chapter text. Reviewed by GFIS faculty.