Microprocessors

Interrupts — Practice MCQs for CCAT

25 Questions Section C: Hardware Microprocessors

Practice 25 Interrupts multiple-choice questions designed for CDAC CCAT exam preparation. Click "Show Answer" to reveal the correct option with detailed explanation.

Q1.
Hardware interrupt is:
AGenerated by software
BGenerated by external device
CAlways ignored
DSame as exception
Show Answer & Explanation

Correct Answer: B — Generated by external device

Hardware interrupts come from external devices (keyboard, timer).

Q2.
Software interrupt is:
AFrom external device
BGenerated by instruction (INT n)
CCannot be executed
DHardware signal
Show Answer & Explanation

Correct Answer: B — Generated by instruction (INT n)

Software interrupts are executed by INT instruction.

Q3.
Maskable interrupt can be:
ANever disabled
BDisabled by software
CAlways active
DNot available
Show Answer & Explanation

Correct Answer: B — Disabled by software

Maskable interrupts can be enabled/disabled by software.

Q4.
Non-maskable interrupt (NMI):
ACan be disabled
BCannot be disabled
CIs software interrupt
DNever occurs
Show Answer & Explanation

Correct Answer: B — Cannot be disabled

NMI cannot be disabled - highest priority hardware interrupt.

Q5.
Interrupt vector table stores:
AData
BAddresses of ISRs
CProgram code
DStack
Show Answer & Explanation

Correct Answer: B — Addresses of ISRs

IVT contains addresses of Interrupt Service Routines.

Q6.
In 8086, IVT is at:
AEnd of memory
BStarting at address 0
CRandom location
DROM only
Show Answer & Explanation

Correct Answer: B — Starting at address 0

8086 IVT is at memory locations 00000H to 003FFH.

Q7.
Each interrupt vector in 8086 is:
A2 bytes
B4 bytes
C8 bytes
D1 byte
Show Answer & Explanation

Correct Answer: B — 4 bytes

Each vector is 4 bytes (2 bytes offset + 2 bytes segment).

Q8.
8086 has how many interrupt types?
A128
B256
C512
D64
Show Answer & Explanation

Correct Answer: B — 256

8086 supports 256 interrupt types (0-255).

Q9.
IRET instruction:
ACalls interrupt
BReturns from ISR
CMasks interrupt
DGenerates interrupt
Show Answer & Explanation

Correct Answer: B — Returns from ISR

IRET returns from interrupt service routine.

Q10.
CLI instruction:
AClears carry flag
BClears interrupt flag (disables interrupts)
CClears direction flag
DCalls interrupt
Show Answer & Explanation

Correct Answer: B — Clears interrupt flag (disables interrupts)

CLI clears IF, disabling maskable interrupts.

Q11.
What is a software interrupt?
AInterrupt from external device
BInterrupt triggered by executing an instruction
CInterrupt from timer
DInterrupt during software installation
Show Answer & Explanation

Correct Answer: B — Interrupt triggered by executing an instruction

Software interrupt is generated by executing specific instructions (like INT in x86) rather than external hardware.

Q12.
What happens when an interrupt occurs?
AProgram terminates
BCPU saves state and jumps to ISR
CComputer restarts
DInterrupt is ignored
Show Answer & Explanation

Correct Answer: B — CPU saves state and jumps to ISR

When interrupt occurs, CPU saves current state (flags, PC), then jumps to the Interrupt Service Routine.

Q13.
What is interrupt priority?
AOrder of interrupt wiring
BOrder in which multiple simultaneous interrupts are handled
CSpeed of interrupt handling
DInterrupt importance to user
Show Answer & Explanation

Correct Answer: B — Order in which multiple simultaneous interrupts are handled

Interrupt priority determines which interrupt is serviced first when multiple interrupts occur simultaneously.

Q14.
What is the purpose of the Interrupt Flag (IF)?
AIndicates interrupt occurred
BEnables or disables maskable interrupts
CShows interrupt type
DCounts interrupts
Show Answer & Explanation

Correct Answer: B — Enables or disables maskable interrupts

Interrupt Flag controls whether maskable interrupts are enabled (IF=1) or disabled (IF=0).

Q15.
What are the RST instructions in 8085?
AReset instructions
BSoftware interrupts that jump to fixed locations
CRegister storage
DReturn stack
Show Answer & Explanation

Correct Answer: B — Software interrupts that jump to fixed locations

RST (Restart) are 1-byte software interrupt instructions that jump to specific memory locations (RST 0-7).

Q16.
What is interrupt latency?
ATime between two interrupts
BTime from interrupt request to ISR execution start
CTime to complete ISR
DInterrupt waiting time in queue
Show Answer & Explanation

Correct Answer: B — Time from interrupt request to ISR execution start

Interrupt latency is the delay between interrupt assertion and when ISR begins executing.

Q17.
What is nested interrupt?
AInterrupt inside a loop
BHigher priority interrupt interrupting current ISR
CMultiple interrupts at same time
DInterrupt in nested function
Show Answer & Explanation

Correct Answer: B — Higher priority interrupt interrupting current ISR

Nested interrupt occurs when a higher priority interrupt interrupts an ISR that is already executing.

Q18.
What is the function of PIC (Programmable Interrupt Controller)?
AGenerates interrupts
BManages multiple interrupt requests and prioritizes them
CPrograms interrupt handlers
DCounts interrupts
Show Answer & Explanation

Correct Answer: B — Manages multiple interrupt requests and prioritizes them

PIC accepts interrupt requests from multiple devices, prioritizes them, and sends one interrupt to CPU.

Q19.
What is polling in interrupt handling?
AAutomatic interrupt detection
BCPU checking devices sequentially to find interrupt source
CVoting for interrupt priority
DInterrupt sampling
Show Answer & Explanation

Correct Answer: B — CPU checking devices sequentially to find interrupt source

Polling is when CPU sequentially checks each device to identify which one caused the interrupt.

Q20.
What is vectored interrupt?
AInterrupt with multiple targets
BInterrupt where device provides address of its ISR
CInterrupt in vector processor
DInterrupt using vector table
Show Answer & Explanation

Correct Answer: B — Interrupt where device provides address of its ISR

In vectored interrupt, the interrupting device provides the address or vector number of its ISR.

Q21.
What is the purpose of the EI instruction in 8085?
AEnd Interrupt
BEnable Interrupts
CExecute Immediately
DExit Instruction
Show Answer & Explanation

Correct Answer: B — Enable Interrupts

EI (Enable Interrupt) sets the interrupt enable flip-flop, allowing maskable interrupts to be recognized.

Q22.
What is the purpose of the DI instruction in 8085?
ADirect Interrupt
BDisable Interrupts
CDelay Interrupt
DDivide Immediate
Show Answer & Explanation

Correct Answer: B — Disable Interrupts

DI (Disable Interrupt) clears the interrupt enable flip-flop, preventing maskable interrupts.

Q23.
What is an interrupt acknowledge cycle?
ACPU acknowledging completion of ISR
BCPU responding to interrupt request by reading vector
CInterrupt controller acknowledging device
DUser acknowledging interrupt
Show Answer & Explanation

Correct Answer: B — CPU responding to interrupt request by reading vector

Interrupt acknowledge cycle is when CPU responds to interrupt request by signaling acknowledgment and reading interrupt vector.

Q24.
What is the difference between edge-triggered and level-triggered interrupts?
ANo difference
BEdge detects signal transition, level detects signal state
CEdge is faster
DLevel is more accurate
Show Answer & Explanation

Correct Answer: B — Edge detects signal transition, level detects signal state

Edge-triggered activates on signal transition (rising/falling edge). Level-triggered activates while signal is at specific level.

Q25.
What is the STI instruction in x86?
AStore Interrupt
BSet Interrupt Flag (enable interrupts)
CStart Interrupt
DStop Interrupt
Show Answer & Explanation

Correct Answer: B — Set Interrupt Flag (enable interrupts)

STI (Set Interrupt Flag) enables maskable interrupts by setting the IF flag to 1.