Previous year paper
GATE CS 2011
GATE 2011 Computer Science and Information Technology (CS)
Computer Science and Information Technology
55 questions, 85 marks
Q.1 (CS Q.1)
In a compiler, keywords of a language are recognized during
Lexical Analysis
Q.2 (CS Q.2)
A layer-4 firewall (a device that can look at all protocol headers up to the transport layer) CANNOT
Application Layer: DNS, HTTP, SMTP, FTP
Q.3 (CS Q.3)
If two fair coins are flipped and at least one of the outcomes is known to be a head, what is the probability that both outcomes are heads?
Probability and Statistics
Q.4 (CS Q.4)
Consider different activities related to email. : Send an email from a mail client to a mail server : Download an email from mailbox server to a mail client : Che...
Application Layer: DNS, HTTP, SMTP, FTP
Q.5 (CS Q.5)
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 of lines of code (LOC) develo...
Asymptotic Analysis and Time/Space Complexity
Q.6 (CS Q.6)
Let the time taken to switch between user and kernel modes of execution be while the time taken to switch between two processes be . Which of the following is TRUE?
Processes, Threads and System Calls
Q.7 (CS Q.7)
A company needs to develop digital signal processing software for one of its newest inventions. The software is expected to have 40000 lines of code. The company needs to determ...
Asymptotic Analysis and Time/Space Complexity
Q.8 (CS Q.8)
Which of the following pairs have DIFFERENT expressive power?
Context-Free Grammars, Pushdown Automata and CFLs
Q.9 (CS Q.9)
HTML (HyperText Markup Language) has language elements which permit certain actions other than describing the structure of the web document. Which one of the following actions i...
Application Layer: DNS, HTTP, SMTP, FTP
Q.10 (CS Q.10)
Which one of the following is NOT desired in a good Software Requirement Specifications (SRS) document?
Data Types, Operators and Control Flow
Q.11 (CS Q.11)
A computer handles several interrupt sources of which the following are relevant for this question. - Interrupt from CPU temperature sensor (raises interrupt if CPU temperature...
I/O Interface, Interrupts and DMA
Q.12 (CS Q.12)
Consider a relational table with a single record for each registered student with the following attributes. 1. Registration_Num: Unique registration number of each registered st...
ER Model and Relational Schema Design
Q.13 (CS Q.13)
Which one of the following circuits is NOT equivalent to a 2-input XNOR (exclusive NOR) gate?
Combinational Circuits
Q.14 (CS Q.14)
The simplified SOP (Sum of Product) form of the Boolean expression is
Boolean Algebra and Logic Minimization
Q.15 (CS Q.15)
The minimum number of D flip-flops needed to design a mod-258 counter is
Sequential Circuits, Counters and Registers
Q.16 (CS Q.16)
A thread is usually defined as a "light weight process" because an operating system (OS) maintains smaller data structures for a thread than for a process. In relation to this,...
CPU Scheduling
Q.17 (CS Q.17)
and are graphs with the following structures. Graphs K4 (complete graph on 4 vertices) and Q3 (3-dimensional hypercube graph with 8 vertices) Which one of the follow...
Graph Theory
Q.18 (CS Q.18)
If the difference between the expectation of the square of a random variable () and the square of the expectation of the random variable () is denoted by ,...
Probability and Statistics
Q.19 (CS Q.19)
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?
Lexical Analysis
Q.20 (CS Q.20)
Let the page fault service time be 10 ms in a computer with average memory access time being 20 ns. If one page fault is generated for every memory accesses, what is the...
Memory Management and Virtual Memory
Q.21 (CS Q.21)
Consider a hypothetical processor with an instruction of type
LW R1, 20(R2), which during execution reads a 32-bit word from memory and stores it in a 32-bit register R1. The...Machine Instructions and Addressing Modes
Q.22 (CS Q.22)
What does the following fragment of C program print? char c[] = "GATE2011"; char *p = c; printf("%s", p + p[3] - p[1]);
Pointers, Arrays and Strings
Q.23 (CS Q.23)
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?
Binary Trees, Binary Search Trees and Balanced Trees
Q.24 (CS Q.24)
Let be a regular language and be a context-free language such that . (For example, let be the language represented by the regular expression ...
Regular Expressions, Finite Automata and Regular Languages
Q.25 (CS Q.25)
An algorithm to find the length of the longest monotonically increasing sequence of numbers in an array is given below. Let denote the length of the longest mon...
Dynamic Programming
Q.26 (CS Q.26)
Consider the languages , and as given below. …
Context-Free Grammars, Pushdown Automata and CFLs
Q.27 (CS Q.27)
Consider two binary operators '' and '' with the precedence of operator being lower than that of operator . Operator is r...
Parsing and Syntax Analysis (LL and LR)
Q.28 (CS Q.28)
On a non-pipelined sequential processor, a program segment, which is a part of the interrupt service routine, is given to transfer 500 bytes from an I/O device to memory. ...
I/O Interface, Interrupts and DMA
Q.29 (CS Q.29)
We are given a set of distinct elements and an unlabeled binary tree with nodes. In how many ways can we populate the tree with the given set so that it becomes a binary...
Binary Trees, Binary Search Trees and Balanced Trees
Q.30 (CS Q.30)
Which one of the following options is CORRECT given three positive integers , and , and a predicate…
Propositional and First-Order Logic
Q.31 (CS Q.31)
Given , what will be the evaluation of the definite integral
Calculus
Q.32 (CS Q.32)
Consider a database table containing two columns and each of type integer. After the creation of the table, one record is inserted in the table. Let…
SQL Queries and Integrity Constraints
Q.33 (CS Q.33)
Consider a finite sequence of random values . Let be the mean and be the standard deviation of . Let another finite sequence…
Probability and Statistics
Q.34 (CS Q.34)
A deck of 5 cards (each carrying a distinct number from 1 to 5) is shuffled thoroughly. Two cards are then removed one at a time from the deck. What is the probability that the...
Probability and Statistics
Q.35 (CS Q.35)
Consider the following table of arrival time and burst time for three processes P0, P1 and P2. Process Arrival time Burst Time P0 0 ms 9 ms P1 1 ms 4 ms P2 2 ms 9 ms The pre-emp...
Process Synchronization and Concurrency
Q.36 (CS Q.36)
Consider evaluating the following expression tree on a machine with load-store architecture in which memory can be accessed only through load and store instructions. The variabl...
Intermediate Code Generation, Data Flow Analysis and Code Optimization
Q.37 (CS Q.37)
Which of the given options provides the increasing order of asymptotic complexity of functions and ?…
Asymptotic Analysis and Time/Space Complexity
Q.38 (CS Q.38)
Four matrices and of dimensions , , and respectively can be multiplied in several ways with different num...
Dynamic Programming
Q.39 (CS Q.39)
Consider a relational table with sufficient number of records, having attributes and let . Two queries Q1 and Q2 are given below. Q1…
File Organization, B-Trees and B+ Trees Indexing
Q.40 (CS Q.40)
Consider the matrix as given below. Which one of the following options provides the CORRECT values of the e...
Linear Algebra
Q.41 (CS Q.41)
Consider an instruction pipeline with four stages (S1, S2, S3 and S4) each with combinational circuit only. The pipeline registers are required between each stage and at the end...
Instruction Pipelining and Hazards
Q.42 (CS Q.42)
Definition of a language with alphabet is given as following. What is the minimu...
Regular Expressions, Finite Automata and Regular Languages
Q.43 (CS Q.43)
An 8KB direct-mapped write-back cache is organized as multiple blocks, each of size 32-bytes. The processor generates 32-bit addresses. The cache controller maintains the tag in...
Memory Hierarchy: Cache, Main Memory and Secondary Storage
Q.44 (CS Q.44)
An application loads 100 libraries at startup. Loading each library requires exactly one disk access. The seek time of the disk to a random location is given as 10 ms. Rotationa...
File Systems, I/O and Disk Scheduling
Q.45 (CS Q.45)
A deterministic finite automaton (DFA) with alphabet is given below. Deterministic finite automaton D with start state p, state q, trap state r, and acce...
Regular Expressions, Finite Automata and Regular Languages
Q.46 (CS Q.46)
Database table by name
Loan_Recordsis given below. Borrower Bank_Manager Loan_Amount Ramesh Sunderajan 10000.00 Suresh Ramgopal 5000.00 Mahesh Sunderajan 7000.00 What is the...SQL Queries and Integrity Constraints
Q.47 (CS Q.47)
The following is the comment written for a C function. /* This function computes the roots of a quadratic equation a.x^2 + b.x + c = 0. The function stores two real roots i...
Data Types, Operators and Control Flow
Q.48 (CS Q.48)
What is the return value of the function
foowhen it is called asfoo(345, 10)?Functions, Recursion, Scope and Storage Classes
Q.49 (CS Q.49)
What is the return value of the function
foowhen it is called asfoo(513, 2)?Functions, Recursion, Scope and Storage Classes
Q.50 (CS Q.50)
If at some instance prior to the occurrence of the clock edge, and have a value 0, 1 and 0 respectively, what shall be the value of after the clock edge?
Sequential Circuits, Counters and Registers
Q.51 (CS Q.51)
If all the flip-flops were reset to 0 at power on, what is the total number of distinct outputs (states) represented by generated by the counter?
Sequential Circuits, Counters and Registers
Q.52 (CS Q.52)
The cost of link N2-N3 reduces to 2 (in both directions). After the next round of updates, what will be the new distance vector at node, N3?
Routing Algorithms (Distance Vector, Link State) and BGP/OSPF
Q.53 (CS Q.53)
After the update in the previous question, the link N1-N2 goes down. N2 will reflect this change immediately in its distance vector as cost, . After the NEXT ROUND of up...
Routing Algorithms (Distance Vector, Link State) and BGP/OSPF
Q.54 (CS Q.54)
What will be the cost of the minimum spanning tree (MST) of such a graph with nodes?
Minimum Spanning Trees
Q.55 (CS Q.55)
The length of the path from to in the MST of previous question with is
Minimum Spanning Trees
General Aptitude
10 questions, 15 marks
Q.56 (GA Q.56)
Which of the following options is the closest in the meaning to the word below: Inexplicable
Verbal Ability and Grammar
Q.57 (GA Q.57)
If , then which of the following options is TRUE?
Quantitative Aptitude
Q.58 (GA Q.58)
Choose the most appropriate word(s) from the options given below to complete the following sentence. I contemplated _______ Singapore for my vacation but decided against it.
Verbal Ability and Grammar
Q.59 (GA Q.59)
Choose the most appropriate word from the options given below to complete the following sentence. If you are trying to make a strong impression on your audience, you cannot do s...
Verbal Ability and Grammar
Q.60 (GA Q.60)
Choose the word from the options given below that is most nearly opposite in meaning to the given word: Amalgamate
Verbal Ability and Grammar
Q.61 (GA Q.61)
Few school curricula include a unit on how to deal with bereavement and grief, and yet all students at some point in their lives suffer from losses through death and parting. Ba...
Reading Comprehension and Verbal Deduction
Q.62 (GA Q.62)
P, Q, R and S are four types of dangerous microbes recently found in a human habitat. The area of each circle with its diameter printed in brackets represents the growth of a si...
Data Interpretation and Graphs
Q.63 (GA Q.63)
The variable cost () of manufacturing a product varies according to the equation , where is the quantity produced. The fixed cost () of production of same prod...
Quantitative Aptitude
Q.64 (GA Q.64)
A transporter receives the same number of orders each day. Currently, he has some pending orders (backlog) to be shipped. If he uses 7 trucks, then at the end of the 4th day he...
Quantitative Aptitude
Q.65 (GA Q.65)
A container originally contains 10 litres of pure spirit. From this container 1 litre of spirit is replaced with 1 litre of water. Subsequently, 1 litre of the mixture is again...
Quantitative Aptitude