250+ TOP MCQs on Sources of Interrupts and Answers

Embedded Systems Multiple Choice Questions on “Sources of Interrupts”.

1. Which interrupts are generated by the on-chip peripherals?
A. internal
B. external
C. software
D. hardware
Answer: A
Clarification: The internal interrupts are generated by the serial and parallel ports which are on-chip peripherals.

2. Which of the following is the common method for connecting the peripheral to the processor?
A. internal interrupts
B. external interrupts
C. software
D. exception
Answer: B
Clarification: The common method for connecting the peripheral to the processor is the external interrupts. The external interrupts are provided through the external pins which are connected to the peripherals.

3. Which interrupt can make a change in the processor’s mode?
A. internal interrupt
B. external interrupts
C. exceptions
D. software mode
Answer: C
Clarification: An exception is an event which changes the software flow to process the event. It includes both internal and external interrupts which cause the processor to change to a service routine.

4. How many exceptions does an MC68000 have?
A. 256
B. 128
C. 90
D. 70
Answer: C
Clarification: The MC68000 have 256 table entries which describe 90 exceptions.

5. Which interrupts allows a protected state?
A. internal interrupt
B. external interrupt
C. software interrupt
D. both internal and external interrupts
Answer: C
Clarification: The software interrupt can change the processor into a protected state by changing the program flow.

6. How a software interrupt is created?
A. instruction set
B. sequential code
C. concurrent code
D. porting
Answer: A
Clarification: The software interrupts includes a set of instructions for handling interrupts. The instruction set allows a currently executing program to change its flow.

7. What does SWI stand for?
A. standard interrupt instruction
B. sequential interrupt instruction
C. software interrupt instruction
D. system interrupt instruction
Answer: C
Clarification: The instruction set of software interrupts are provided by the special instruction set. One such is the SWI which is commonly used in Z80.

8. Which of the following use SWI as interrupt mechanism?
A. PowerPC
B. MC68000
C. Z80
D. IBM PC
Answer: C
Clarification: The PowerPC and MC68000 use TRAP instruction set for accessing software interrupt. IBM PC uses 8086 NMI. Z80 uses SWI for accessing software interrupts.

9. Which of the following supplies additional data to the software interrupt?
A. internal interrupt
B. external interrupt
C. software interrupt
D. nmi
Answer: C
Clarification: For using the software interrupt more effectively, the additional data are used, which specifies the type of the request and data parameters are passed to the specific ISR. This additional data are offered by certain registers.

10. Which software interrupt is used in MC68000?
A. Internal interrupt
B. TRAP
C. SWI
D. NMI
Answer: B
Clarification: The MC68000 uses a software interrupt mechanism for accessing interrupts from the peripheral in which the instruction are created using the TRAP mechanism.

11. Which of the following are accessible by the ISR in software interrupt mechanism?
A. register
B. interrupt
C. nmi
D. memory
Answer: A
Clarification: The additional data are offered by certain registers and these additional data are used to specify the type of the data parameter and the request with the specific ISR when running in the software interrupt mode.

12. What allows the data protection in the software interrupt mechanism?
A. Different mode
B. Same mode
C. SWI
D. TRAP
Answer: A
Clarification: The switching between user mode and supervisor mode provides protection for the processor, that is, the different modes in the software interrupt allows the memory and the associated code and data to be protected from each other.

13. What does NMI stand for?
A. non-machine interrupt
B. non-maskable interrupt
C. non-massive interrupt
D. non-memory interrupt
Answer: B
Clarification: The NMI stand for the non-maskable interrupt in which the external interrupts cannot be masked out.

14. Which NMI is used in the IBM PC?
A. SWI
B. TRAP
C. 80×86 NMI
D. Maskable interrupt
Answer: C
Clarification: The most commonly used non-maskable interrupt is the 80×86 NMI, which is implemented in the IBM PC.

15. Which can be used to pass the status information to the calling software in the software interrupt mechanism?
A. register
B. memory
C. flag
D. nmi
Answer: A
Clarification: In order to use the software interrupt more effectively, the additional data are used to specify the type of the request and data parameters are passed to the specific ISR. This additional data are offered by certain registers. These registers are accessible by the ISR and it can also be used to pass the status information back to the calling software.

Leave a Reply

Your email address will not be published. Required fields are marked *