Gate CS-2007 Question Paper With Solutions

Q. 35 Consider the following program segment. Here R1, R2 and R3 are the general

purpose registers.

Gate CS-2007 Question Paper With Solutions

Assume that the content of memory location 3000 is 10 and the content of the

register R3 is 2000. The content of each of the memory locations from 2000

to 2010 is 100. The program is loaded from the memory location 100. All the

numbers are in decided.Assume that the memory is byte addressable and the word size is

32 bits. If an interrupt occurs during the execution of the instruction “INC R3”, what return

address will be pushed on to the stack?

(A) 1005

(B) 1020

(C) 1024

(D) 1040

Answer: (C)

Explanation:

Gate CS-2007 Question Paper With Solutions

Learn More:   Gate EC-2015 - 1 Question Paper With Solutions

LEAVE A REPLY

Please enter your comment!
Please enter your name here