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. A stone is thrown horizontally from the top of a 20 m high building with a speed of 12 m/s. It hits the ground at a distance R from the building. Taking g = 10 m/s2 and neglecting air resistance will give :

  2. A mass is attached to a spring that hangs vertically. The extension produced in the spring is 6 cm on Earth. The acceleration due to gravity on the surface of the Moon is one-sixth of its value on the surface of the Earth. The extension of the spring on the Moon would be:

  3. Directions: Each item in this section consists of a sentence with an underlined word followed by four words (a), (b), (c), and (d). Select the option that is opposite in meaning to the underlined word and mark your response in your Answer Sheet accordingly.

    The deluge affected the population.
  4. The major source of vitamins and minerals for vegetarians is

  5. Which of the following statements about the Deccan Riots Commission is/are correct?

    1. The Commission did not hold enquiries in the districts which were not affected.

    2. The Commission did record the statements of ryots, sahukars and eye-witnesses.

    Select the correct answer using the code given below:

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
4472 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