GATE 2025 (Session 1) Computer Science and Information Technology (CS) Questions with Solutions

GATE 2025 (Session 1)

65 questions

MCQ 30 · MSQ 13 · NAT 221-mark 30 · 2-mark 35

Questions 11–15 of 65

Q11Interrupt1 markMCQ−0.33 if wrong
Suppose a program is running on a non-pipelined single processor computer system. The computer is connected to an external device that can interrupt the processor asynchronously. The processor needs to execute the interrupt service routine (ISR) to serve this interrupt. The following steps (not necessarily in order) are taken by the processor when the interrupt arrives:

(i) The processor saves the content of the program counter.
(ii) The program counter is loaded with the start address of the ISR.
(iii) The processor finishes the present instruction.

Which ONE of the following is the CORRECT sequence of steps?

Q12Lexical Analysis1 markMCQ−0.33 if wrong
Which ONE of the following statements is FALSE regarding the symbol table?

Q13Intermediate Code Generation1 markMCQ−0.33 if wrong
Which ONE of the following techniques used in compiler code optimization uses live variable analysis?

Q14Memory Management1 markMCQ−0.33 if wrong
Consider a demand paging memory management system with 32-bit logical address, 20-bit physical address, and page size of 2048 bytes. Assuming that the memory is byte addressable, what is the maximum number of entries in the page table?

Q15Transaction1 markMCQ−0.33 if wrong
A schedule of three database transactions T1T_1, T2T_2, and T3T_3 is shown. Ri(A)R_i(A) and Wi(A)W_i(A) denote read and write of data item AA by transaction TiT_i, i=1,2,3i = 1, 2, 3. The transaction T1T_1 aborts at the end. Which other transaction(s) will be required to be rolled back?

R1(X)W1(Y)R2(X)R2(Y)R3(Y)ABORT(T1)R_1(X) \quad W_1(Y) \quad R_2(X) \quad R_2(Y) \quad R_3(Y) \quad ABORT(T_1)