GATE 2026 (Session 2) Computer Science and Information Technology (CS) Questions with Solutions

GATE 2026 (Session 2)

65 questions

MCQ 35 · MSQ 11 · NAT 191-mark 30 · 2-mark 35

Questions 16–20 of 65

Q16Boolean Algebra1 markMCQ−0.33 if wrong
Which one of the following options is not a property of Boolean Algebra?

Note: +{+} is OR operation, ⋅\cdot is AND operation, and ′{\prime} is NOT operation

Q17Runtime Environment1 markMCQ−0.33 if wrong
In C runtime environment, which one of the following is stored in heap?

Q18Interrupt1 markMCQ−0.33 if wrong
Consider the following two statements about interrupt handling mechanisms in a CPU.

S1\text{S1}: In non-vectored interrupt mechanism, it usually takes more time to start the Interrupt Service Routine (ISR) when compared to that in a vectored interrupt mechanism.

S2\text{S2}: In daisy-chain interrupt mechanism, the CPU polls all the input devices individually to determine the source of the interrupt.

Which one of the following options is correct with respect to S1\text{S1} and S2?\text{S2}?

Q19Syntax-directed Translation1 markMCQ−0.33 if wrong
Consider the following three ANSI-C programs, P1, P2,\text{P1, P2,} and P3\text{P3}.

P1P2P3#include < stdio.h >#include < stdio.h >#include < stdio.h >int a=5;int main(){int a=7;return(0);int main(){int a=5;int a=7;return(0);int main(){int a=5;float a=7;return(0);}}}\begin{array}{|l|l|l|} \hline \quad\quad\quad \textbf{P1} & \quad\quad\quad \textbf{P2} & \quad\quad\quad \textbf{P3} \\ \hline \text{\#include < stdio.h >} & \text{\#include < stdio.h >} & \text{\#include < stdio.h >} \\ \begin{array}{l} \text{int a=5;} \\ \text{int main()\{} \\ \quad \text{int a=7;} \\ \quad \text{return(0);} \end{array} & \begin{array}{l} \text{int main()\{} \\ \quad \text{int a=5;} \\ \quad \text{int a=7;} \\ \quad \text{return(0);} \end{array} & \begin{array}{l} \text{int main()\{} \\ \quad \text{int a=5;} \\ \quad \text{float a=7;} \\ \quad \text{return(0);} \end{array} \\ {\text{\}}} & {\text{\}}} & {\text{\}}} \\ \hline \end{array}

Which one of the following statements is true?

Q20Transaction1 markMCQ−0.33 if wrong
Consider concurrent execution of two transactions T1T 1 and T2T 2 in a DBMS, both of which access a data object AA. For these two transactions to not conflict on AA, which one of the following statements must be true?