Designing and Testing a Basic Interrupt Handling Circuit

Pre Test

Q1. What is the main purpose of an interrupt in a computer system?

a) To slow down the processor

b) To transfer data between peripherals

c) To temporarily halt the program flow and handle an event

d) To permanently terminate the current program


Q2. Which of the following is executed when an interrupt occurs?

a) Main program

b) Context Restoration

c) Interrupt Service Routine (ISR)

d) Bootstrap loader


Q3. What is the role of the priority encoder in an interrupt handling system?

a) To disable interrupts

b) To assign a priority to multiple interrupt requests

c) To generate interrupt signals

d) To handle software interrupts only


Q4. Why is context saving necessary during interrupt handling?

a) To increase processing speed

b) To allow the processor to resume its previous state after the ISR

c) To enable multiple ISRs to execute simultaneously

d) To permanently store program variables


Q5. Which of the following is an example of a hardware interrupt?

a) Division by zero error

b) Keyboard key press

c) System call

d) Infinite loop in code


Lab contributed by: BTKIT, Dwarahat,Uttarakhand