Q: 1 An attempt to divide by zero results in which type of interrupt?
External Interrupt
Internal Interrupt
Software Interrupt
Power failure Interrupt
[ Option B ]
An Interrupt is a signal that temporarily halts the CPU’s current execution to handle an event. Interrupts are classified into internal and external types:
A divide-by-zero operation is an error generated by the CPU itself, so it is an internal interrupt.
| TYPE OF INTERRUPT | DESCRIPTION | EXAMPLES |
|---|---|---|
| Internal Interrupt | Generated by the CPU due to an error or specific condition during execution. | Divide by zero, invalid opcode, overflow. |
| External Interrupt | Generated by external devices or events outside the CPU. | Keyboard input, mouse click, timer, power failure. |
| Software Interrupt | Initiated by a program instruction to request a service from the operating system. | System calls, INT instruction in assembly. |
| Power Failure Interrupt | Triggered when there is a sudden loss or fluctuation of power. | UPS signals, sudden shutdown detection. |
| Hardware Interrupt | Signal sent by hardware devices to get CPU attention. | Printer ready, disk I/O complete. |
| Maskable Interrupt | Can be ignored or delayed by the CPU using interrupt masks. | Timer interrupt in OS, peripheral device signals. |
| Non-Maskable Interrupt | Cannot be ignored, must be processed immediately. | Memory parity error, hardware failure signals. |
Thank you so much for taking the time to read my Computer Science MCQs section carefully. Your support and interest mean a lot, and I truly appreciate you being part of this journey. Stay connected for more insights and updates! If you'd like to explore more tutorials and insights, check out my YouTube channel.
Don’t forget to subscribe and stay connected for future updates.