Mechanism of Interrupt MCQ Quiz – Objective Question with Answer for Mechanism of Interrupt in Embedded System

11. Which of the following converts the seven external pins into a 3-bit binary code?

A. priority encoder
B. 4-to-2 priority encoder
C. LS148 7-to-3
D. 2-to-4 priority encoder

Answer: C

The LS148 7-to-3 priority encoder can convert the seven external pins into a three-bit binary code.

 

12. Which of the following ensures the recognition of the interrupt?

A. interrupt ready
B. interrupt acknowledge
C. interrupt terminal
D. interrupt start

Answer: B

The interrupt level remains asserted until its interrupt acknowledgment cycle ensures the recognition of the interrupt.

 

13. Which of the following is raised to the interrupt level to prevent the multiple interrupt request?

A. internal interrupt mask
B. external interrupt mask
C. non-maskable interrupt
D. software interrupt

Answer: A

The internal interrupt mask is raised to the interrupt level, to prevent the multiple interrupt acknowledgments.

 

14. What does MSR stand for?

A. machine state register
B. machine software register
C. minimum state register
D. maximum state register

Answer: A

The MSR is a machine state register. When the exception is recognized, the address of the instruction and the MSR is stored in the supervisor registers while handling an exception.

 

15. How many supervisor registers are associated with the exception mode?

A. 2
B. 3
C. 4
D. 5

Answer: A

When the exception is recognized, the address of the instruction and the machine state register(MSR) are stored in the supervisor registers in the exception mode. There are two supervisor registers SRR0 and SRR1.

 

16. What happens when an exception is completed?

A. TRAP instruction executes
B. SWI instruction executes
C. RFI instruction executes
D. terminal count increases

Answer: C

When an exception is recognized, the address of the instruction and the MSR are stored in the supervisor registers and the processor moves to the supervisor mode and starts to execute the handler which is associated with the vector table. The handler examines the DSISR and FPSCR registers and carries out the required function. When it gets completed the RFI or return-from-interrupt instruction is executed.

 

17. How many general types of exceptions are there?

A. 2
B. 3
C. 6
D. 4

Answer: D

There are four general types of exceptions. They are synchronous precise, asynchronous precise, synchronous imprecise, and asynchronous imprecise.

 

18. In which of the exceptions does the external event cause the exception?

A. synchronous exception
B. asynchronous exception
C. precise
D. imprecise

Answer: B

The asynchronous exception is the one in which an external event causes an exception and is independent of the instruction flow. On the other hand, the synchronous exceptions are synchronized, that is, it is caused by the instruction flow.

 

19. Which of the exceptions are usually catastrophic failures?

A. imprecise exception
B. precise exception
C. synchronous exception
D. asynchronous exception

Answer: A

An imprecise exception is a catastrophic failure in which the processor cannot continue processing or allow a particular task or program to continue.

 

20. Which of the exceptions allows the system reset or memory fault?

A. imprecise exception
B. precise exception
C. synchronous exception
D. asynchronous exception

Answer: A

The system reset or memory fault falls into the category of imprecise exceptions while accessing the vector table.

Scroll to Top