Skip to content

GATE CS question library

Practise GATE CS Computer Science previous year questions free. Browse by subject, syllabus topic, year and question type, with answers and available solutions.

Subject, topic, year and type filter the full library. Match any choice within a filter, and all selected filter categories. Search, source and sort apply to this page.

20 on this page
Official PYQ2011Engineering MathematicsMaxima and Minima, Mean Value Theorem, IntegrationMCQ · 1 mark
Given i=−1i = \sqrt{-1}, what will be the evaluation of the definite integral ∫0π/2cos⁡x+isin⁡xcos⁡x−isin⁡xdx\int \limits_0^{\pi/2} \dfrac{\cos x +i \sin x} {\cos x - i \sin x} dx ?
Official PYQ2011Computer Organization and ArchitectureI/O Interface: Interrupt and DMA ModeMCQ · 1 mark
On a non-pipelined sequential processor, a program segment, which is the part of the interrupt service routine, is given to transfer 500500 bytes from an I/O device to memory. Initialize the address register Initialize the count to 500 LOOP: Load a byte from device Store in memory at address given by address register Increment the address register Decrement …
Official PYQ2011Compiler DesignParsing (LL, LR)MCQ · 1 mark
Consider two binary operators ‘↑’\text{‘} \uparrow \text{’} and ‘↓’\text{‘} \downarrow \text{’} with the precedence of operator ↓\downarrow being lower than that of the operator ↑\uparrow. Operator ↑\uparrow is right associative while operator ↓\downarrow is left associative. Which one of the following represents the parse tree for expression …
Official PYQ2011Theory of ComputationRegular and Context-free LanguagesMCQ · 1 mark
Consider the languages L1, L2 and L3L1, \:L2 \:and \: L3 as given below. L1={0p1q∣p,q∈N},L2={0p1q∣p,q∈N and p=q} and,L3={0p1q0r∣p,q,r∈N and p=q=r}.L1=\{0^p 1^q \mid p, q \in N\}, \\ L2 = \{0^p 1^q \mid p, q \in N \:and \:p=q\} \: and, \\ L3 = \{0^p 1^q 0^r \mid p, q, r \in N\: and \: p=q=r\}. Which of the following statements is NOT TRUE?
Official PYQ2011AlgorithmsAlgorithm Design: Dynamic ProgrammingMCQ · 1 mark
An algorithm to find the length of the longest monotonically increasing sequence of numbers in an array A[0:n−1]A[0:n-1] is given below. Let LiL_i, denote the length of the longest monotonically increasing sequence starting at index ii in the array. Initialize Ln−1=1L_{n-1} = 1. For all ii such that 0≤i≤n−20 \leq i \leq n-2 …
Official PYQ2011Programming and Data StructuresBinary HeapsMCQ · 1 mark
A max-heap is a heap where the value of each parent is greater than or equal to the value of its children. Which of the following is a max-heap?
Official PYQ2011Computer Organization and ArchitectureMachine Instructions and Addressing ModesMCQ · 1 mark
Consider a hypothetical processor with an instruction of type LW R1, 20(R2)\text{LW R1, 20(R2)}, which during execution reads a 32-bit32\text{-bit} word from memory and stores it in a 32-bit32\text{-bit} register R1\text{R1}. The effective address of the memory location is obtained by the addition of a constant 2020 and the contents of register R2\text{R2}. Which …
Official PYQ2011Programming and Data StructuresProgramming in CMCQ · 1 mark
What does the following fragment of C program print? char c[] = "GATE2011"; char *p = c; printf("%s", p + p[3] - p[1]);
Official PYQ2011Operating SystemMemory Management and Virtual MemoryMCQ · 1 mark
Let the page fault service time be 1010 milliseconds(ms) in a computer with average memory access time being 2020 nanoseconds (ns). If one page fault is generated every 10610^6 memory accesses, what is the effective access time for memory?
Official PYQ2011Compiler DesignLexical AnalysisMCQ · 1 mark
The lexical analysis for a modern computer language such as Java needs the power of which one of the following machine models in a necessary and sufficient sense?
Official PYQ2011Engineering MathematicsGraphs: Connectivity, Matching, ColouringMCQ · 1 mark
K4 and Q3 are graphs with the following structures. Which one of the following statements is TRUE in relation to these graphs?
Official PYQ2011Operating SystemProcesses and ThreadsMCQ · 1 mark
A thread is usually defined as a "light weight process" because an Operating System (OS) maintains smaller data structure for a thread than for a process. In relation to this, which of the following statement is TRUE?
Official PYQ2011Engineering MathematicsProbability: Random Variables and DistributionsMCQ · 1 mark
If the difference between the expectation of the square of a random variable (E[X2])\left(E\left[X^2\right]\right) and the square of the expectation of the random variable (E[X])2\left(E\left[X\right]\right)^2 is denoted by RR, then
Official PYQ2011Digital LogicSequential CircuitsMCQ · 1 mark
The minimum number of D\text{D} flip-flops needed to design a mod-258 counter is
Official PYQ2011Digital LogicMinimization (K-Maps etc.)MCQ · 1 mark
The simplified SOP (Sum of Product) from the Boolean expression (P+Qˉ+Rˉ).(P+Qˉ+R).(P+Q+Rˉ)(P + \bar{Q} + \bar{R}) . (P + \bar{Q} + R) . (P + Q +\bar{R}) is
Official PYQ2011DatabasesNormal FormsMCQ · 1 mark
Consider a relational table with a single record for each registered student with the following attributes: Registration_Num:\text{Registration\_Num:} Unique registration number for each registered student UID:\text{UID:} Unique identity number, unique at the national level for each citizen BankAccount_Num:\text{BankAccount\_Num:} Unique account number at the bank. A student can …
Official PYQ2011Operating SystemSystem CallsMCQ · 1 mark
A computer handles several interrupt sources of which of the following are relevant for this question. Interrupt from CPU temperature sensor (raises interrupt if CPU temperature is too high) Interrupt from Mouse (raises Interrupt if the mouse is moved or a button is pressed) Interrupt from Keyboard (raises Interrupt if a key is pressed or released) Interrupt …
Official PYQ2011Software Engineering (Historical)MCQ · 1 mark
Which one of the following is NOT desired in a good Software Requirement Specifications (SRS) document?
Official PYQ2011Web Technologies (Historical)MCQ · 1 mark
HTML (HyperText Markup Language) has language element which permit certain actions other than describing the structure of the web document. Which one of the following actions is NOT supported by pure HTML (without any server or client side scripting) pages?
Official PYQ2011Theory of ComputationRegular Expressions and Finite AutomataMCQ · 1 mark
Which of the following pairs have DIFFERENT expressive power?