Interrupts and Exception in Embedded System MCQ Quiz – Objective Question with Answer for Interrupts and Exception in Embedded System

51. 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.

 

52. 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.

 

53. 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.

 

54. 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.

 

55. 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.

 

56. How are the internal registers and memories 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.

 

57. 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.

 

58. Which of the following are the exceptions associated with the asynchronous imprecise?

A. decrementer interrupt
B. machine check
C. instruction dependent
D. external interrupt

Answer: B

The machine check and the system reset are two types of exceptions that are associated with the asynchronous imprecise.

 

59. Which of the following possesses an additional priority?

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

Answer: C

The synchronous precise exceptions provide additional priority because it is possible for an instruction to generate more than one exception.

 

60. Which of the following has more priority?

A. system reset
B. machine check
C. external interrupt
D. decrementer interrupt

Answer: A

The system reset has the first priority then comes the machine reset, the next priority moves for the instruction dependent, and the next priority is an external interrupt, and the last priority level goes for the decrementer interrupt.

Scroll to Top