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. /In a model, each key press sends one hardware interrupt to the processor…
MediumComputer ScienceHigh School (9–10)Computer Science › Software, Languages and TranslatorsNumericalIGCSE

In a model, each key press sends one hardware interrupt to the processor…

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.

In a model, each key press sends one hardware interrupt to the processor. A writer types 454545 words a minute for 101010 minutes. Each word, with the space after it, takes 666 key presses.

  1. How many interrupts does the keyboard send?
  1. Why is this a hardware interrupt and not a software interrupt?

Check your answer

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

Need a reminder? The key ideaShowHide

An interrupt is a signal to the processor that something needs attention now. A hardware interrupt comes from a device: pressing a key, moving the mouse. A software interrupt comes from a program: division by zero, two processes trying to access the same memory location.

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. Key presses each minute. 45×6=27045 \times 6 = 27045×6=270.

Step 2. Over 101010 minutes. 270×10=2700270 \times 10 = 2700270×10=2700 interrupts.

Step 3. The kind. The signal comes from the keyboard, which is a device. So it is a hardware interrupt.

Answer: (a) 270027002700 interrupts. (b) It is sent by a device, the keyboard.

What if? Each interrupt is handled in a tiny fraction of a second, so the writer never notices the processor stopping.

Log in to save this for later
← All Problems
← Here are six events on a computer. A: A key is pressed on the keyboard…A user presses a key while a program is running… →
More onComputer Science › Software, Languages and Translators

Discussion (0)

Log in to join the discussion.

Loading…

More on this topic

  1. A programmer uses the identifier TotalPrice, which has 10 letters, 25 times in a program…Medium
  2. Name the function of an IDE in each case…Easy
  3. In a model with made-up times, a program takes 3 s each time it is run with an interpreter…Hard
  4. A programmer uses an interpreter while she writes a game…Medium
  5. A program has eight lines. Line 5 has a missing comma and line 7 has a missing bracket, so neither…Medium
All problems on this topic →