Previous year paper
GATE CS 2012
GATE 2012 Computer Science and Information Technology (CS)
Computer Science and Information Technology
55 questions, 85 marks
Q.1 (CS Q.1)
Consider the following logical inferences. : If it rains then the cricket match will not be played. The cricket match was played. Inference: There was no rain. : If it...
Propositional and First-Order Logic
Q.2 (CS Q.2)
Which of the following is TRUE?
Functional Dependencies and Normalization
Q.3 (CS Q.3)
What will be the output of the following C program segment? char inChar = 'A' ; switch ( inChar ) { case 'A' : printf ("Choice A\ n") ; case 'B' : case 'C' : printf ("Choic...
Data Types, Operators and Control Flow
Q.4 (CS Q.4)
Assuming , which of the following is TRUE?
Asymptotic Analysis and Time/Space Complexity
Q.5 (CS Q.5)
The worst case running time to search for an element in a balanced binary search tree with elements is
Binary Trees, Binary Search Trees and Balanced Trees
Q.6 (CS Q.6)
The truth table represents the Boolean function
Boolean Algebra and Logic Minimization
Q.7 (CS Q.7)
The decimal value 0.5 in IEEE single precision floating point representation has
Number Representations and Computer Arithmetic
Q.8 (CS Q.8)
A process executes the code fork(); fork(); fork(); The total number of child processes created is
Processes, Threads and System Calls
Q.9 (CS Q.9)
Consider the function in the interval . The number and location(s) of the local minima of this function are
Calculus
Q.10 (CS Q.10)
The protocol data unit (PDU) for the application layer in the Internet stack is
OSI/TCP-IP Layering, Physical Layer and Switching
Q.11 (CS Q.11)
Let be the matrix with elements and . Then the eigenvalues of the matrix are
Linear Algebra
Q.12 (CS Q.12)
What is the complement of the language accepted by the NFA shown below? Assume and is the empty string. Non-deterministic finite automaton with th...
Regular Expressions, Finite Automata and Regular Languages
Q.13 (CS Q.13)
What is the correct translation of the following statement into mathematical logic? "Some real numbers are rational"
Propositional and First-Order Logic
Q.14 (CS Q.14)
Given the basic ER and relational models, which of the following is INCORRECT?
Relational Algebra and Tuple Relational Calculus · ER Model and Relational Schema Design
Q.15 (CS Q.15)
Which of the following statements are TRUE about an SQL query? : An SQL query can contain a HAVING clause even if it does not have a GROUP BY clause : An SQL query can con...
SQL Queries and Integrity Constraints
Q.16 (CS Q.16)
The recurrence relation capturing the optimal execution time of the Towers of Hanoi problem with discs is
Divide and Conquer · Asymptotic Analysis and Time/Space Complexity
Q.17 (CS Q.17)
Let be a simple undirected planar graph on 10 vertices with 15 edges. If is a connected graph, then the number of bounded faces in any embedding of on the plane is e...
Graph Theory
Q.18 (CS Q.18)
Let and denote respectively, the worst case and average case running time of an algorithm executed on an input of size . Which of the following is ALWAYS TRUE?
Asymptotic Analysis and Time/Space Complexity
Q.19 (CS Q.19)
The amount of ROM needed to implement a 4 bit multiplier is
Combinational Circuits · Combinational Circuits
Q.20 (CS Q.20)
Register renaming is done in pipelined processors
Instruction Pipelining and Hazards · Instruction Pipelining and Hazards
Q.21 (CS Q.21)
Consider a random variable that takes values and with probability each. The values of the cumulative distribution function at and are
Probability and Statistics
Q.22 (CS Q.22)
Which of the following transport layer protocols is used to support electronic mail?
Application Layer: DNS, HTTP, SMTP, FTP · Transport Layer: UDP, TCP Flow and Congestion Control, Sockets
Q.23 (CS Q.23)
In the IPv4 addressing format, the number of networks allowed under Class C addresses is
IPv4/IPv6 Addressing, Subnetting, CIDR, ARP, ICMP and NAT
Q.24 (CS Q.24)
Which of the following problems are decidable? 1) Does a given program ever produce an output? 2) If is a context-free language, then, is also context-free? 3...
Decidability, Reducibility and Undecidability · Regular Expressions, Finite Automata and Regular Languages
Q.25 (CS Q.25)
Given the language , which of the following strings are in ? 1) abaabaaabaa 2) aaaabaaaa 3) baaaaabaaaab 4) baaaaabaa
Regular Expressions, Finite Automata and Regular Languages · Regular Expressions, Finite Automata and Regular Languages
Q.26 (CS Q.26)
Which of the following graphs is isomorphic to the given graph? Given graph with 8 vertices and candidate graphs for isomorphism in options A, B, C, and D Stem graph and options...
Graph Theory
Q.27 (CS Q.27)
Consider the following transactions with data items and initialized to zero: : read (); read (); if then ; write (). : read ();...
Transactions, Serializability and Concurrency Control
Q.28 (CS Q.28)
The bisection method is applied to compute a zero of the function in the interval . The method converges to a solution after ----- iterations.
Calculus
Q.29 (CS Q.29)
Let be a weighted graph with edge weights greater than one and be the graph constructed by squaring the weights of edges in . Let and be the minimum spannin...
Greedy Algorithms · Graph Traversals, Topological Sort and Connectivity
Q.30 (CS Q.30)
What is the minimal form of the Karnaugh map shown below? Assume that denotes a don't care term. Four-variable Karnaugh map for variables a, b, c, d with specified 1s and do...
Boolean Algebra and Logic Minimization · Boolean Algebra and Logic Minimization
Q.31 (CS Q.31)
Consider the 3 processes, , and shown in the table. | Process | Arrival time | Time Units Required | | :--- | :--- | :--- | | | 0 | 5 | | | 1 | 7 |...
CPU Scheduling
Q.32 (CS Q.32)
Fetch_And_Add(X, i) is an atomic Read-Modify-Write instruction that reads the value of memory location X, increments it by the value i, and returns the old value of X. It is use...
Process Synchronization and Concurrency
Q.33 (CS Q.33)
Suppose a fair six-sided die is rolled once. If the value on the die is 1, 2, or 3, the die is rolled a second time. What is the probability that the sum total of values that tu...
Probability and Statistics
Q.34 (CS Q.34)
An Internet Service Provider (ISP) has the following chunk of CIDR-based IP addresses available with it: 245.248.128.0/20. The ISP wants to give half of this chunk of addresses...
IPv4/IPv6 Addressing, Subnetting, CIDR, ARP, ICMP and NAT · IPv4/IPv6 Addressing, Subnetting, CIDR, ARP, ICMP and NAT
Q.35 (CS Q.35)
Suppose a circular queue of capacity () elements is implemented with an array of elements. Assume that the insertion and deletion operations are carried out using REA...
Stacks and Queues
Q.36 (CS Q.36)
Consider the program given below, in a block-structured pseudo-language with lexical scoping and nesting of procedures permitted. Program main; Var ... Procedure A1; V...
Runtime Environments and Parameter Passing
Q.37 (CS Q.37)
How many onto (or surjective) functions are there from an -element () set to a 2-element set?
Combinatorics, Counting, Recurrence Relations and Generating Functions
Q.38 (CS Q.38)
Let be a complete undirected graph on 6 vertices. If vertices of are labeled, then the number of distinct cycles of length 4 in is equal to
Graph Theory · Combinatorics, Counting, Recurrence Relations and Generating Functions
Q.39 (CS Q.39)
A list of strings, each of length , is sorted into lexicographic order using the merge-sort algorithm. The worst case running time of this computation is
Searching and Sorting Algorithms · Asymptotic Analysis and Time/Space Complexity
Q.40 (CS Q.40)
Consider the directed graph shown in the figure below. There are multiple shortest paths between vertices S and T. Which one will be reported by Dijkstra's shortest path algorit...
Single-Source and All-Pairs Shortest Paths · Greedy Algorithms
Q.41 (CS Q.41)
A file system with 300 GByte disk uses a file descriptor with 8 direct block addresses, 1 indirect block address and 1 doubly indirect block address. The size of each disk block...
File Systems, I/O and Disk Scheduling
Q.42 (CS Q.42)
Consider the virtual page reference string on a demand paged virtual memory system running on a computer system that has main memory size of 3 p...
Memory Management and Virtual Memory
Q.43 (CS Q.43)
Suppose and are two relation schemas. Let and be the corresponding relation instances. is a foreign key that refers to in . If d...
Relational Algebra and Tuple Relational Calculus · Relational Algebra and Tuple Relational Calculus
Q.44 (CS Q.44)
Consider a source computer () transmitting a file of size bits to a destination computer () over a network of two routers ( and ) and three links (,...
OSI/TCP-IP Layering, Physical Layer and Switching
Q.45 (CS Q.45)
Consider an instance of TCP's Additive Increase Multiplicative Decrease (AIMD) algorithm where the window size at the start of the slow start phase is 2 MSS and the threshold at...
Transport Layer: UDP, TCP Flow and Congestion Control, Sockets
Q.46 (CS Q.46)
Consider the set of strings on {0, 1} in which, every substring of 3 symbols has at most two zeros. For example, 001110 and 011001 are in the language, but 100010 is not. All st...
Regular Expressions, Finite Automata and Regular Languages · Regular Expressions, Finite Automata and Regular Languages
Q.47 (CS Q.47)
The height of a tree is defined as the number of edges on the longest path in the tree. The function shown in the pseudocode below is invoked as
height(root)to compute the he...Binary Trees, Binary Search Trees and Balanced Trees · Binary Trees, Binary Search Trees and Balanced Trees
Q.48 (CS Q.48)
What output will be generated by the given code segment?
Functions, Recursion, Scope and Storage Classes · Functions, Recursion, Scope and Storage Classes
Q.49 (CS Q.49)
What output will be generated by the given code segment if: Line 1 is replaced by
auto int a = 1;Line 2 is replaced byregister int a = 2;Functions, Recursion, Scope and Storage Classes · Functions, Recursion, Scope and Storage Classes
Q.50 (CS Q.50)
How many tuples does the result of the following relational algebra expression contain? Assume that the schema of is the same as that of .…
Relational Algebra and Tuple Relational Calculus
Q.51 (CS Q.51)
How many tuples does the result of the following SQL query contain? SELECT A.Id FROM A WHERE A.Age > ALL (SELECT B.Age FROM B WHERE B.Name = 'Arun')
SQL Queries and Integrity Constraints
Q.52 (CS Q.52)
The FIRST and FOLLOW sets for the non-terminals A and B are
Parsing and Syntax Analysis (LL and LR)
Q.53 (CS Q.53)
The appropriate entries for E1, E2, and E3 are
Parsing and Syntax Analysis (LL and LR)
Q.54 (CS Q.54)
The number of bits in the tag field of an address is
Memory Hierarchy: Cache, Main Memory and Secondary Storage
Q.55 (CS Q.55)
The size of the cache tag directory is
Memory Hierarchy: Cache, Main Memory and Secondary Storage
General Aptitude
10 questions, 15 marks
Q.56 (GA Q.56)
The cost function for a product in a firm is given by , where is the amount of production. The firm can sell the product at a market price of Rs 50 per unit. The numbe...
Quantitative Aptitude
Q.57 (GA Q.57)
Choose the most appropriate alternative from the options given below to complete the following sentence: Despite several -------- the mission succeeded in its attempt to resolve...
Verbal Ability and Grammar
Q.58 (GA Q.58)
Which one of the following options is the closest in meaning to the word given below? Mitigate
Verbal Ability and Grammar
Q.59 (GA Q.59)
Choose the grammatically INCORRECT sentence:
Verbal Ability and Grammar
Q.60 (GA Q.60)
Choose the most appropriate alternative from the options given below to complete the following sentence: Suresh's dog is the one -------- was hurt in the stampede.
Verbal Ability and Grammar
Q.61 (GA Q.61)
Wanted Temporary, Part-time persons for the post of Field Interviewer to conduct personal interviews to collect and collate economic data. Requirements: High School-pass, must b...
Verbal Ability and Grammar
Q.62 (GA Q.62)
A political party orders an arch for the entrance to the ground in which the annual convention is being held. The profile of the arch follows the equation wher...
Quantitative Aptitude
Q.63 (GA Q.63)
An automobile plant contracted to buy shock absorbers from two suppliers and . supplies 60% and supplies 40% of the shock absorbers. All shock absorbers are subje...
Quantitative Aptitude
Q.64 (GA Q.64)
Which of the following assertions are CORRECT? : Adding 7 to each entry in a list adds 7 to the mean of the list : Adding 7 to each entry in a list adds 7 to the standard...
Quantitative Aptitude
Q.65 (GA Q.65)
Given the sequence of terms, AD CG FK JP, the next term is
Verbal Ability and Grammar