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 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?
Official PYQ2011Software Engineering (Historical)MCQ · 1 mark
A company needs to develop a digital signal processing software for one of its newest inventions. The software is expected to have 40000 lines of code. The company needs to determine the effort in person-months needed to develop this software using the basic COCOMO model. The multiplicative factor for this model is given as 2.8 for the software development …
Official PYQ2011Operating SystemProcesses and ThreadsMCQ · 1 mark
Let the time taken to switch from user mode to kernel mode of execution be T1T1 while time taken to switch between two user processes be T2T2. Which of the following is correct?
Official PYQ2011Software Engineering (Historical)MCQ · 1 mark
A company needs to develop a strategy for software product development for which it has a choice of two programming languages L1 and L2. The number lines of code (LOC) developed using L2 is estimated to be twice of the LOC developed with L1. The product will have to be maintained for five years. Various parameters for the company are given in the table …
Official PYQ2011Computer NetworksApplication Layer Protocols: DNS, SMTP, HTTP, FTP, EmailMCQ · 1 mark
Consider the different activities related to email. m1:\text{m1}: Send an email from mail client to mail server m2:\text{m2}: Download an email from mailbox server to a mail client m3:\text{m3}: Checking email in a web browser Which is the application level protocol used in each activity?