3RD SEMSTER CS 501Quiz

1. What happens when the microprocessor is interrupted?
• It suspends the currently executing program and jumps to (ISR) to respond to the incoming interrupt
• It suspends the incoming interrupt and keeps executing current program.
• It makes a queue for all such incoming interrupts so as to respond to them after system restart.
• All of the given options


2. In which one of the following interrupts the device have to supply the address of the subroutine to the Microprocessor
• Maskable
• Non-maskable
• Non-vectored
• Vectored

Sponsored Links

3. If an interrupt is set by the timer component or by the peripheral device then how would you categorize it?
• Hardware
• Software
• Exception
• All of the given options


4. A user program has to delete a file. The user program will be executing in the user mode. When it makes the specific system call to delete the file, an interrupt will be generated, this will cause the processor to halt its current activity and switch to supervisor mode. Once in supervisor mode, the operating system will delete the file and then control will return to the user program.
This is an example of
• Hardware interrupt
• Software interrupt
• Exception
• All of the given


5. Every time you press a key, an interrupt is generated.
This is an example of
• Hardware interrupt
• Software interrupt
• Exception
• All of the given
6. An ----------- is the memory address of an interrupt handler.
• Interrupt vector
• Interrupt service routine
• Exception
• Mask



7. Which is the last instruction of the ISR that is to be executed when the ISR terminates?
• IRET
• IRQ
• INT
• NMI


8. When is the “Divide error interrupt” generated?
• When an attempt is made to divide by decimal number
• When an attempt is made to multiply by zero
• When an attempt is made to divide by zero
• When negative number is stored in a register


9. The interrupts in which we write the address of the interrupt service routine (ISR) in the interrupt instruction itself are
• Maskable
• Non-maskable
• Non-vectored
• Vectored

10. The interrupts which are pre-programmed and the processor automatically finds the address of the ISR using interrupt vector table are
• Maskable
• Non-maskable
• Non-vectored
• Vectored