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

21. Which registers are used to determine the completion status?

A. MSR
B. flag register
C. DSISR
D. index register

Answer: C

The completion status can be determined by the information bits in the DSISR and FPSCR registers.

 

22. Which of the following does not support PowerPC architecture?

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

Answer: C

The synchronous imprecise is usually not supported on the PowerPC architecture and also in the MPC601, MPC603, etc.

 

23. Which exceptions are used in the PowerPC for floating-point?

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

Answer: A

The PowerPC can handle the floating-point exception by making use of the synchronous imprecise mode.

 

24. Which exception is used in the external interrupts and decrementer-caused exceptions?

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

Answer: B

The asynchronous precise type exception is used to handle the external interrupts and decrementer-caused exceptions. Both these can occur at any time within the instruction flow.

 

25. Which exception can be masked by clearing the EE bit to zero in the MSR?

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

Answer: D

The asynchronous precise type exceptions can be masked by clearing the EE bits in the MSR. This bit is automatically cleared to zero in the MSR in order to prevent this interrupt from causing an exception while other exceptions are being processed.

 

26. Which of the following can be done to ensure that all interrupts are recognized?

A. reset pin
B. external ready pin
C. handshaking
D. acknowledgment

Answer: C

The exception handler performs some kind of handshaking to ensure that all the interrupts are recognized.

 

27. How many types of exceptions are associated with the asynchronous imprecise?

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

Answer: B

Two types of exceptions are associated with the asynchronous imprecise. These are system reset and machine checks.

 

28. How are the internal registers and memories are reset?

A. system reset
B. memory reset
C. peripheral reset
D. software reset

Answer: A

By doing the system reset, all the current processing is stopped and the internal registers and the memories are reset.

 

29. How is the machine check exception is taken in an asynchronous imprecise?

A. ME bit
B. EE bit
C. FE0
D. FE1

Answer: A

The machine check exception is taken only if the ME bit of the MSR is set. If it is cleared, the processor will enter into a check stop state.

 

Scroll to Top