Question #152076

Which of the following sources of interrupt
has the highest priority?
A Division by zero.
B Real-time clock.
C Memory parity error.
D Keyboard key pressed.

Expert's answer

The interrupt name is Non-Maskable interrupt, has the highest priority in all the eternal interrupts because TRAP is an internal interrupt which has the highest priority in all the interrupts but Divide by zero type exception has the top priority. So here correct answer is option (a)

Divide by zero is undefined in mathematical instructions because it is exceptions. We can manage this kind of error by try and catch method.


LATEST TUTORIALS
APPROVED BY CLIENTS