All Exams Test series for 1 year @ ₹349 only
Question

Which type of computer virus attaches itself to executable files and gets activated when the file is run?

The correct answer is

File Infector Virus

A File Infector Virus is a type of malicious code that attaches itself to executable program files — commonly files with .exe, .com, .sys, or .dll extensions. The virus code is inserted into the host program in such a way that it is executed first (or alongside the legitimate program) whenever the infected file is run by the user or the operating system.

Once activated, a file infector virus typically follows this cycle:

  • Attachment: It embeds a copy of itself into the executable's code, often at the beginning, end, or within unused space of the file.
  • Activation: The virus code runs when the infected program is launched, before or after the original program's instructions execute.
  • Propagation: It searches for other executable files on the disk (and sometimes on connected/network drives) and infects them too.
  • Payload delivery: Depending on how it was written, it may corrupt or delete files, steal data, slow down the system, or simply lie dormant until triggered by a specific date or event.

It is important to distinguish this from other malware types that are frequently confused with it in exams:

TypeWhat it infects / how it spreads
Macro VirusAttaches to macros inside documents (e.g., Word, Excel files) rather than executables; activates when the document is opened and macros are enabled.
Boot Sector VirusInfects the boot sector of a hard disk or removable media, so it activates when the computer is starting up, not when a specific program is run.
WormA standalone program that self-replicates and spreads across networks on its own, without needing to attach itself to any host file or wait for a user to run a program.

Since the question specifically describes malware that attaches to executable files and activates on running the file, the correct classification is a File Infector Virus, not a macro virus (which targets documents), a boot sector virus (which targets disk boot code), or a worm (which needs no host file at all).

Was this answer helpful?

Similar Questions

  1. Which of the following is/are the primary reasons to fall in the trap of Email fraud or phishing? 

    A) Paying attention to lucrative offers.

     B) Not checking on links or attachments from unknown senders 

    C) Providing official information via email 

    D) Paying attention to the company logo sent in the email

  2. Which of the following is/are the primary reasons to fall in the trap of Email fraud or phishing? A) Paying attention to lucrative offers. B) Not checking on links or attachments from unknown senders C) Providing official information via email D) Paying attention to the company logo sent in the email

  3. Which of the following is/are the primary reasons to fall in the trap of Email fraud or phishing? A) Paying attention to lucrative offers. B) Not checking on links or attachments from unknown senders C) Providing official information via email D) Paying attention to the company logo sent in the email

  4. Which of the following is/are the primary reasons to fall in the trap of Email fraud or phishing? A) Paying attention to lucrative offers. B) Not checking on links or attachments from unknown senders C) Providing official information via email D) Paying attention to the company logo sent in the email

  5. Which of the following is/are the primary reasons to fall in the trap of Email fraud or phishing? A) Paying attention to lucrative offers. B) Not checking on links or attachments from unknown senders C) Providing official information via email D) Paying attention to the company logo sent in the email


Important Questions from Network Security

  1. A ________ is a system designed to prevent unauthorized access to or from a private network.

  2. ______ changes each time it is installed to avoid detection by antivirus software.

  3. What is a key security advantage of deploying a DMZ (Demilitarized Zone) using two separate firewalls, rather than a single firewall setup?

  4. Which one of the following is usually used in the process of Wi-fi hacking?

  5. Which of the following is an attack in which the user receives the unwanted amount of e-mails?

Need Expert Advice?
Test Series
RRB JE img
Railways
RRB JE Prev. Yr. Paper (CBT 1 + CBT 2) Test Series
290 Tests 5 Tests Free
4460 Attempts
4.3(88)
English

Start Your Preparation with Prepp Mobile App

Download the app from Google Play & App Store
Download the app from Google Play & App Store
Prepp Mobile App