HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClasses

>_StemPy Lab

Learn. Solve. Code the solutions. Test yourself.

Live examsFree mock exams, timed and rankedEveryone starts together, and your score and rank come the moment it ends.See the exams →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Computer Science
  • Classes
  • Groups

Practice

  • Problems
  • Quizzes
  • Mock Tests
  • Prepare for an Exam
  • Question Sets
  • Exams
  • Certificates
  • Python Labs
  • AI Practice Generator
  • Student-Created Tests

Community

  • Discussions
  • Resources
  • Notes
  • Glossary
  • Blog

Account

  • Log in
© 2026 senLearn. All rights reserved.HelpFor SchoolsAboutContactPrivacy PolicyTerms of UseRefund Policy
  1. Problems
  2. /A worm reaches one computer on a network of 2000 computers…
MediumComputer ScienceHigh School (9–10)Computer Science › Encryption and Cyber SecurityNumericalIGCSE

A worm reaches one computer on a network of 2000 computers…

StemPy LabContributed by StemPy Lab

Try it on paper first. A hint, the key idea and the worked solution are here when you need them.

A worm reaches one computer on a network of 200020002000 computers. Every hour, each infected computer infects 222 more.

  1. How many computers are infected after 666 hours?
  1. In which hour is the whole network infected?
  1. Explain why a virus would usually spread more slowly than this.

Check your answer

Work it out on paper, then type your number. The answer itself stays hidden.

Need a reminder? The key ideaShowHide

Virus: copies itself into files, needs a host and a user to run it. Worm: spreads across a network by itself; if each infected computer infects rrr more per hour,

I=(1+r)t.\displaystyle I = (1 + r)^{t}.I=(1+r)t.

Trojan horse: disguised as real software. Spyware: records and reports what the user does. Adware: unwanted adverts. Ransomware: encrypts files and demands payment. Phishing: a fake message with a link to a fake website. Pharming: malicious code redirects to a fake website. Social engineering: manipulating people.

The worked solution

Have you tried it?

Work it out on paper first. It is fine to get stuck or make a mistake: that is how we learn. When you are ready, go through the solution one step at a time, and check each step against your own.

Step 1. After 666 hours. I=36=729I = 3^{6} = 729I=36=729 computers.

Step 2. The whole network. After 777 hours the formula gives 37=21873^{7} = 218737=2187, which is more than 200020002000. So all 200020002000 computers are infected during hour 777.

Step 3. A virus. A virus needs a host file and a user to run it, for example by opening an attachment. It spreads only as fast as people share and open the infected files. A worm spreads by itself.

Answer: (a) 729729729. (b) Hour 777. (c) A virus needs user action to spread; a worm does not.

Check. 36=7293^{6} = 72936=729 is less than 200020002000, and 37=21873^{7} = 218737=2187 is more. So hour 777 is the first in which the network is full.

Log in to save this for later
← All Problems
← Name the kind of malware in each case. Every file on a laptop is locked, and a message demands…Two things happen to two customers of the same bank… →
More onComputer Science › Encryption and Cyber Security

Discussion (0)

Log in to join the discussion.

Loading…

More on this topic

  1. A small office has 6 staff. They share files on a server, use email, and log in to an online bank…Hard
  2. A school connects its network to the internet through a firewall…Medium
  3. A bank uses two-step verification. After the password, it sends a 6-digit code to the customer's…Medium
  4. At a small company, a caller rings the reception desk…Hard
  5. Two things happen to two customers of the same bank…Medium
All problems on this topic →