MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

COMPUTER ARCHITECTURE

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
The CPU checks to see if an interrupt has occurred and requires servicing. The check is made
A
after the execute section of the the fetch-decode-execute cycle
B
during the fetch section of the the fetch-decode-execute cycle
C
during the execute section of the the fetch-decode-execute cycle
D
during the decode section of the the fetch-decode-execute cycle
Explanation: 

Detailed explanation-1: -When an interrupt occurs, it causes the CPU to stop executing the current program. The control then passes to a special piece of code called an Interrupt Handler or Interrupt Service Routine. The interrupt handler will process the interrupt and resume the interrupted program.

Detailed explanation-2: -Fetch cycle Was this answer helpful?

Detailed explanation-3: -Generally, an interrupt will affect the execution of the fetch-decode-execute cycle of a running program as follows: The processor receives the interrupt. The processor completes the fetch-decode-execute cycle of the instruction that it was running when it received the interrupt.

Detailed explanation-4: -The basic operation of a computer is called the ‘fetch-execute’ cycle. The CPU is designed to understand a set of instructions-the instruction set. It fetches the instructions from the main memory and executes them. This is done repeatedly from when the computer is booted up to when it is shut down.

There is 1 question to complete.