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

Computer viruses are classified by what they attach to and how they trigger. The question describes malware that binds itself to executable program files and springs into action only when the host program is run — this is the defining behaviour of a File Infector Virus (also called a parasitic or program virus).

How a file infector works:

  • It inserts its own code into executable files, typically those with .exe or .com extensions (and sometimes device drivers or overlay files).
  • The virus normally alters the program's entry point so that when the user launches the file, the virus code executes first, then hands control back to the genuine program so nothing looks wrong.
  • Once resident, it can locate and infect other executables, corrupt or delete data, and degrade system performance.

Why the correct choice fits and the others do not: A self-replicating program that spreads across networks without needing a host file is a worm — the key distinction is that a worm is standalone and does not attach to an executable, so it does not match the description. A virus that infects the macro code embedded in documents (such as Word or Excel files) is a macro virus; it activates when the document is opened, not when a program is executed. A virus that hides in the boot sector or master boot record loads when the computer starts up, before the operating system, rather than when a specific file is run. Only the file infector is triggered by executing an infected program, which is exactly what the question asks about.

Was this answer helpful?

Similar Questions

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

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

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


Important Questions from Miscellaneous

  1. Read the given figure and find the region representing persons who are educated and employed but not confirmed in job.

  2. The magazine in which Mahatma Gandhi mentioned what he wanted the Constitution to do is:

  3. Which gas shields the surface of the earth from ultraviolet radiation from the sun?

  4. Which event is marked as an Intangible Cultural Heritage of Humanity by UNESCO?

  5. Who has been conferred with the rank of the Commander of the Order of the British Empire in 2018?

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
4825 Attempts
4.3(89)
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