Why is it important for this virus code to create an executable file with a copy of itself in it?

It makes the malicious code more difficult to get rid ofIt's not so important

That's correct!

Replicating malicious code is a key reason a virus spreads through a computer so quickly and cause a lot of damage.