MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

COMPUTER ORGANIZATION

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Division by zero causes an ____ interrupt.
A
implicit
B
internal
C
infinity
D
external
Explanation: 

Detailed explanation-1: -This condition arises when the computer or software runs a process that tries to perform a mathematical division by zero which is an illegal operation. It is also triggered by a software instruction. So it comes under the category of an internal interrupt.

Detailed explanation-2: -The following are the various types of interrupts:-Type 0 interrupts: This interrupt is also known as the divide by zero interrupt. For cases where the quotient becomes particularly large to be placed / adjusted an error might occur.-Type 1 interrupts: This is also known as the single step interrupt.

Detailed explanation-3: -When performing integer division, the processor will trap when dividing by zero. Trap: A processor level exception.

Detailed explanation-4: -Any number divided by 0 is undefined, mathematically speaking.

There is 1 question to complete.