∑GateAndNet
PlannerSign Up

GATE Computer Science & Information Technology (GATE CS) PYQ & Mock Arena

Practice solved GATE CS MCQ, MSQ & NAT questions or launch a timed CBT mock exam

Showing 126 questionsClick A / B / C / D for instant verification
Q1GATE CS / DA 2027 ExpectedEngineering Mathematics & Discrete MathNATMEDIUM
+2M • 0 Neg

1010 letters are placed uniformly at random into 1010 addressed envelopes (11 letter per envelope). What is the expected number of letters that land in their correct envelope?

Q2GATE CS 2026–27 ExpectedTheory of ComputationMCQMEDIUM
+2M • -0.67

Suppose language AA is known to be Undecidable and we construct a computable many-one reduction A≤mBA \le_m B. What can we conclude with 100%100\% certainty about BB?

⚡ Click an option above to verify instantly
Q3GATE CS 2027 Expected MSQTheory of ComputationMSQHARD
+2M • 0 Neg

Let L1L_1 be a Context-Free Language (CFL) and L2L_2 be a Regular Language over Σ={a,b}\Sigma = \{a, b\}. Which of the following languages are GUARANTEED to be Context-Free?

☑️ Multiple Select Question — pick one or more options, then click Check Answer.
Q4GATE CS 2026–27 ExpectedComputer NetworksNATMEDIUM
+2M • 0 Neg

A high-speed TCP connection transmits continuously at 1 GigaByte/sec1\text{ GigaByte/sec} (230 bytes/sec2^{30}\text{ bytes/sec}). In how many seconds does the 3232-bit TCP sequence number space (232 bytes2^{32}\text{ bytes}) wrap around completely?

Q5GATE CS 2027 Expected NATComputer NetworksNATMEDIUM
+2M • 0 Neg

A Token Bucket shaper has bucket capacity C=500 KBC = 500\text{ KB}, token refill rate ρ=4 MB/s\rho = 4\text{ MB/s}, and maximum output link rate M=24 MB/sM = 24\text{ MB/s}. Starting with a full bucket, what is the maximum burst duration SS in milliseconds during which the output can transmit continuously at 24 MB/s24\text{ MB/s}?

Q6GATE CS 2026–27 Expected MSQDatabases (DBMS)MSQHARD
+2M • 0 Neg

Which of the following statements regarding Database Concurrency & Crash Recovery are ALWAYS TRUE?

☑️ Multiple Select Question — pick one or more options, then click Check Answer.
Q7GATE CS 2027 ExpectedDatabases (DBMS)MCQMEDIUM
+2M • -0.67

Let R(A,B)R(A, B) have 1212 tuples with 44 distinct values of AA, and let S(B)S(B) be non-empty with 33 tuples. What are the minimum and maximum possible numbers of tuples in the Relational Division R÷SR \div S?

⚡ Click an option above to verify instantly
Q8GATE CS 2026–27 ExpectedCompiler DesignMCQMEDIUM
+2M • -0.67

In Static Single Assignment (SSA) intermediate representation, what is the exact role of a ϕ\phi-function such as x3=ϕ(x1,x2)x_3 = \phi(x_1, x_2) placed at the entry of a join basic block?

⚡ Click an option above to verify instantly
Q9GATE CS 2027 Expected NATCompiler DesignNATMEDIUM
+2M • 0 Neg

Consider the Three-Address Code fragment below: 1: i = 1 2: s = 0 3: if i > 10 goto 8 4: if i % 2 == 0 goto 6 5: s = s + i 6: i = i + 1 7: goto 3 8: return s How many Basic Blocks exist in its Control Flow Graph?

Q10GATE CS 2026–27 Expected MSQOperating SystemsMSQHARD
+2M • 0 Neg

Which of the following statements about Multi-Core Process Synchronization are CORRECT?

☑️ Multiple Select Question — pick one or more options, then click Check Answer.
Q11GATE CS 2027 Expected NATOperating SystemsNATMEDIUM
+2M • 0 Neg

A process owns 2020 virtual memory pages in RAM (1212 Read-Only code pages and 88 Read-Write data pages) and calls fork() on an OS with Copy-on-Write (COW) paging. Before exec(), the parent writes to 33 distinct data pages and the child writes to 22 data pages (11 of which is the same page written by the parent). How many total physical page frames are occupied by parent and child combined?

Q12GATE CS 2027 ExpectedComputer Organization & ArchitectureMCQMEDIUM
+2M • -0.67

An inner for loop executes exactly 1010 iterations each time an outer while loop invokes it (1,0001,000 outer invocations). What are the steady-state branch prediction accuracies on the inner-loop backward branch for a 1-bit predictor vs a 2-bit saturating counter predictor?

⚡ Click an option above to verify instantly
Q13GATE CS 2026–27 ExpectedComputer Organization & ArchitectureNATMEDIUM
+2M • 0 Neg

A Write-Back, Write-Allocate L1 cache has hit time 1 ns1\text{ ns} and miss rate 5%5\%. Transferring one 64-byte64\text{-byte} cache block to or from Main Memory takes 40 ns40\text{ ns}, and 30%30\% of evicted cache blocks are dirty. What is the Average Memory Access Time (AMAT) in nanoseconds?

Q14GATE CS 2027 Expected NATComputer Organization & ArchitectureNATHARD
+2M • 0 Neg

A processor uses 4 KB4\text{ KB} virtual pages and a Virtually Indexed, Physically Tagged (VIPT) L1 data cache with 64-byte64\text{-byte} cache blocks. To avoid virtual aliasing without OS page coloring (so Set Index + Block Offset ≤\le Page Offset), what is the minimum set-associativity KK required for a 64 KB64\text{ KB} L1 cache?

Q15GATE CS 2021Engineering Mathematics & Discrete MathNATEASY
+1M • 0 Neg

For how many truth assignments out of 24=162^4 = 16 over (P,Q,R,S)(P, Q, R, S) does the implication (P∧Q)→(R∨S)(P \land Q) \to (R \lor S) evaluate to TRUE?

Q16GATE CS 2023Digital LogicNATMEDIUM
+2M • 0 Neg

How many Prime Implicants (PI) does the 4-variable Boolean function F(A,B,C,D)=∑m(0,2,5,7,8,10,13,15)F(A, B, C, D) = \sum m(0, 2, 5, 7, 8, 10, 13, 15) possess?

Q17GATE CS 2019Computer Organization & ArchitectureNATMEDIUM
+2M • 0 Neg

A processor has an L1 cache with hit time 2 ns2\text{ ns} and hit rate 95%95\%, an L2 cache with hit time 10 ns10\text{ ns} and local hit rate 80%80\%, and main memory access penalty 100 ns100\text{ ns} (hierarchical inclusive serial lookup: L2 accessed only on L1 miss; RAM accessed only on L2 miss). What is the Average Memory Access Time (AMAT) in nanoseconds?

Q18GATE CS 2021 Set-2Compiler DesignNATMEDIUM
+2M • 0 Neg

Consider the Syntax-Directed Definition: E→E1 # T  {E.val=E1.val×T.val}∣TE \to E_1 \text{ \texttt{\#} } T \;\{E.val = E_1.val \times T.val\} \mid T, and T→T1 & F  {T.val=T1.val+F.val}∣FT \to T_1 \text{ \texttt{\&} } F \;\{T.val = T_1.val + F.val\} \mid F, with F→numF \to \mathbf{num}. Notice + (&) has higher precedence than * (#) and both are left-associative! Evaluate 2 # 3 & 5 # 4 & 1.

Q19GATE CS 2018Theory of ComputationNATMEDIUM
+2M • 0 Neg

Over Σ={a,b}\Sigma = \{a, b\}, what is the minimum number of states in a complete DFA accepting all strings whose 3rd symbol from the right (end) is a (L=Σ∗aΣΣL = \Sigma^* a \Sigma \Sigma)?

Q20GATE CS 2023AlgorithmsNATEASY
+1M • 0 Neg

Using Kadane’s Algorithm, what is the maximum contiguous subarray sum of the array [-2, 1, -3, 4, -1, 2, 1, -5, 4]?