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 (also called a file-injecting or parasitic virus) is a type of malware that attaches its own code to executable program files, typically those with extensions such as .exe or .com. It lies dormant inside the host file and is triggered only when the user runs that program, which is exactly the behaviour described in the question.

Once the infected program is launched, the virus code executes first (or alongside the program) and can:

  • Copy itself into other executable files on the same computer, spreading the infection.
  • Corrupt, overwrite or delete data.
  • Degrade system performance or open the door to further malware.

Because activation depends on the host file being executed, this class of virus needs a host program to survive and spread, distinguishing it from self-standing malware.

The other options behave differently. A Boot Sector Virus infects the master boot record or boot sector of a disk and loads when the computer starts up, not when a program is run. A Macro Virus hides in the macros of documents such as Word or Excel files and triggers when the document is opened, targeting data files rather than executables. A Worm is not strictly a virus at all: it is self-replicating and spreads across networks on its own, without needing to attach to or wait for a host file to be executed. Since the defining clue is attachment to executable files with activation on running them, the correct answer is the File Infector Virus.

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. Which gas shields the surface of the earth from ultraviolet radiation from the sun?

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

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

  4. Who directead the film ‘Bhuvan Shome’?

  5. The book “In my mother’s house” is written by _______

Need Expert Advice?
Test Series
RRB JE img
Railways
RRB JE (CBT 1 + CBT 2) 2026 Mock Test Series
1509 Tests 19 Tests Free
582 Attempts
4.4(117)
English, Hindi

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