Previous year paper
GATE CS 2014 Set 1
GATE 2014 Computer Science and Information Technology (CS) Session 1
Take this paper as a mock testGATE CS 2014GATE CS 2014 Set 2GATE CS 2014 Set 3
General Aptitude
10 questions, 15 marks
Q.1 (GA Q.1)
Which of the following options is the closest in meaning to the phrase underlined in the sentence below? It is fascinating to see life forms cope with varied environmental condi...
Verbal Ability and Grammar
Q.2 (GA Q.2)
Choose the most appropriate word from the options given below to complete the following sentence. He could not understand the judges awarding her the first prize, because he tho...
Verbal Ability and Grammar
Q.3 (GA Q.3)
In a press meet on the recent scam, the minister said, "The buck stops here". What did the minister convey by the statement?
Verbal Ability and Grammar
Q.4 (GA Q.4)
If , compute .
Quantitative Aptitude
Q.5 (GA Q.5)
The roots of are real and positive. , and are real. Then has
Quantitative Aptitude
Q.6 (GA Q.6)
The Palghat Gap (or Palakkad Gap), a region about 30 km wide in the southern part of the Western Ghats in India, is lower than the hilly terrain to its north and south. The exac...
Reading Comprehension and Verbal Deduction
Q.7 (GA Q.7)
Geneticists say that they are very close to confirming the genetic roots of psychiatric illnesses such as depression and schizophrenia, and consequently, that doctors will be ab...
Reading Comprehension and Verbal Deduction
Q.8 (GA Q.8)
Round-trip tickets to a tourist destination are eligible for a discount of 10% on the total fare. In addition, groups of 4 or more get a discount of 5% on the total fare. If the...
Quantitative Aptitude
Q.9 (GA Q.9)
In a survey, 300 respondents were asked whether they own a vehicle or not. If yes, they were further asked to mention whether they own a car or scooter or both. Their responses...
Data Interpretation and Graphs
Q.10 (GA Q.10)
When a point inside of a tetrahedron (a solid with four triangular surfaces) is connected by straight lines to its corners, how many (new) internal planes are created with these...
Spatial Aptitude
Computer Science and Information Technology
55 questions, 85 marks
Q.11 (CS Q.1)
Consider the statement Predicate is true if glitters and predicate is true if is gold. Which one of th...
Propositional and First-Order Logic
Q.12 (CS Q.2)
Suppose you break a stick of unit length at a point chosen uniformly at random. Then the expected length of the shorter stick is ________ .
Probability and Statistics
Q.13 (CS Q.3)
Let be a directed graph where is the set of vertices and the set of edges. Then which one of the following graphs has the same strongly connected components as...
Graph Traversals, Topological Sort and Connectivity
Q.14 (CS Q.4)
Consider the following system of equations: The number of solutions for this system is __________________
Linear Algebra
Q.15 (CS Q.5)
The value of the dot product of the eigenvectors corresponding to any pair of different eigenvalues of a 4-by-4 symmetric positive definite matrix is _____________________.
Linear Algebra
Q.16 (CS Q.6)
Let the function…
Calculus
Q.17 (CS Q.7)
Consider the following Boolean expression for : The minimal sum-of-products form of is
Boolean Algebra and Logic Minimization
Q.18 (CS Q.8)
The base (or radix) of the number system such that the following equation holds is____________.
Number Representations and Computer Arithmetic
Q.19 (CS Q.9)
A machine has a 32-bit architecture, with 1-word long instructions. It has 64 registers, each of which is 32 bits long. It needs to support 45 instructions, which have an immedi...
Machine Instructions and Addressing Modes
Q.20 (CS Q.10)
Consider the following program in C language: #include <stdio.h> main() { int i; int *pi = &i; scanf("%d", pi); printf("%d\n", i + 5); } Which one of the following stat...
Pointers, Arrays and Strings
Q.21 (CS Q.11)
Let be a graph with vertices and edges. What is the tightest upper bound on the running time of Depth First Search on , when is represented as an adjacency ma...
Graph Traversals, Topological Sort and Connectivity
Q.22 (CS Q.12)
Consider a rooted node binary tree represented using pointers. The best upper bound on the time required to determine the number of subtrees having exactly 4 nodes is…
Binary Trees, Binary Search Trees and Balanced Trees
Q.23 (CS Q.13)
Consider the directed graph given below. Directed graph on four vertices P, Q, R, and S Which one of the following is TRUE?
Graph Traversals, Topological Sort and Connectivity
Q.24 (CS Q.14)
Let be a quicksort program to sort numbers in ascending order using the first element as the pivot. Let and be the number of comparisons made by for the inpu...
Searching and Sorting Algorithms
Q.25 (CS Q.15)
Which one of the following is TRUE?
Regular Expressions, Finite Automata and Regular Languages
Q.26 (CS Q.16)
Consider the finite automaton in the following figure. Non-deterministic finite automaton with four states q0, q1, q2, and q3 What is the set of reachable states for the input s...
Regular Expressions, Finite Automata and Regular Languages
Q.27 (CS Q.17)
Which one of the following is FALSE?
Intermediate Code Generation, Data Flow Analysis and Code Optimization
Q.28 (CS Q.18)
Match the following: 1) Waterfall model: a) Specifications can be developed incrementally 2) Evolutionary model: b) Requirements compromises are inevitable 3) Component-based so...
Functions, Recursion, Scope and Storage Classes
Q.29 (CS Q.19)
Suppose a disk has 201 cylinders, numbered from 0 to 200. At some time the disk arm is at cylinder 100, and there is a queue of disk access requests for cylinders 30, 85, 90, 10...
File Systems, I/O and Disk Scheduling
Q.30 (CS Q.20)
Which one of the following is FALSE?
Processes, Threads and System Calls
Q.31 (CS Q.21)
Consider the relation scheme and the set of functional dependencies…
Functional Dependencies and Normalization
Q.32 (CS Q.22)
Given the following statements: S1: A foreign key declaration can always be replaced by an equivalent check assertion in SQL. S2: Given the table R(a,b,c) where a and b together...
SQL Queries and Integrity Constraints
Q.33 (CS Q.23)
Consider the following three statements about link state and distance vector routing protocols, for a large network with 500 network nodes and 4000 links. [S1] The computational...
Routing Algorithms (Distance Vector, Link State) and BGP/OSPF
Q.34 (CS Q.24)
Which of the following are used to generate a message digest by the network security protocols? (P) RSA (Q) SHA-1 (R) DES (S) MD5
Application Layer: DNS, HTTP, SMTP, FTP
Q.35 (CS Q.25)
Identify the correct order in which the following actions take place in an interaction between a web browser and a web server. 1. The web browser requests a webpage using HTTP....
Application Layer: DNS, HTTP, SMTP, FTP
Q.36 (CS Q.26)
Consider a token ring network with a length of 2 km having 10 stations including a monitoring station. The propagation speed of the signal is m/s and the token t...
Medium Access Control (ALOHA, CSMA/CD) and Ethernet/Switching
Q.37 (CS Q.27)
Let the size of congestion window of a TCP connection be 32 KB when a timeout occurs. The round trip time of the connection is 100 msec and the maximum segment size used is 2 KB...
Transport Layer: UDP, TCP Flow and Congestion Control, Sockets
Q.38 (CS Q.28)
Consider a selective repeat sliding window protocol that uses a frame size of 1 KB to send data on a 1.5 Mbps link with a one-way latency of 50 msec. To achieve a link utilizati...
Data Link Layer: Framing, Error Detection and Sliding Window
Q.39 (CS Q.29)
Consider the following four schedules due to three transactions (indicated by the subscript) using read and write on a data item x, denoted by r(x) and w(x) respectively. Which...
Transactions, Serializability and Concurrency Control
Q.40 (CS Q.30)
Given the following two statements: S1: Every table with two single-valued attributes is in 1NF, 2NF, 3NF and BCNF. S2: ABC, DE, EC is a minimal cover for the set...
Functional Dependencies and Normalization
Q.41 (CS Q.31)
An operating system uses the Banker’s algorithm for deadlock avoidance when managing the allocation of three resource types X, Y, and Z to three processes P0, P1, and P2. The ta...
Deadlock Prevention, Avoidance and Detection
Q.42 (CS Q.32)
Consider the following set of processes that need to be scheduled on a single CPU. All the times are given in milliseconds. Process Name Arrival Time Execution Time A 0 6 B 3 2...
CPU Scheduling
Q.43 (CS Q.33)
Assume that there are 3 page frames which are initially empty. If the page reference string is 1, 2, 3, 4, 2, 1, 5, 3, 2, 4, 6, the number of page faults using the optimal repla...
Memory Management and Virtual Memory
Q.44 (CS Q.34)
A canonical set of items is given below On input symbol the set has
Parsing and Syntax Analysis (LL and LR)
Q.45 (CS Q.35)
Let be a language and be its complement. Which one of the following is NOT a viable possibility?
Decidability, Reducibility and Undecidability
Q.46 (CS Q.36)
Which of the regular expressions given below represent the following DFA? Deterministic finite automaton with two states accepting binary strings I) II)…
Regular Expressions, Finite Automata and Regular Languages
Q.47 (CS Q.37)
There are 5 bags labeled 1 to 5. All the coins in a given bag have the same weight. Some bags have coins of weight 10 gm, others have coins of weight 11 gm. I pick 1, 2, 4, 8, 1...
Combinatorics, Counting, Recurrence Relations and Generating Functions
Q.48 (CS Q.38)
Suppose a polynomial time algorithm is discovered that correctly computes the largest clique in a given graph. In this scenario, which one of the following represents the correc...
Turing Machines and Chomsky Hierarchy
Q.49 (CS Q.39)
The minimum number of comparisons required to find the minimum and the maximum of 100 numbers is _________________.
Searching and Sorting Algorithms
Q.50 (CS Q.40)
Consider a hash table with 9 slots. The hash function is . The collisions are resolved by chaining. The following 9 keys are inserted in the order: 5, 28, 19,...
Hash Tables and Collision Resolution
Q.51 (CS Q.41)
Consider the following C function in which
sizeis the number of elements in the arrayE: int MyX(int *E, unsigned int size) { int Y = 0; int Z; int i, j, k; for(i = 0; i <...Data Types, Operators and Control Flow
Q.52 (CS Q.42)
Consider the following pseudo code. What is the total number of multiplications to be performed? D = 2 for i = 1 to n do for j = i to n do for k = j + 1 to n do D = D *...
Asymptotic Analysis and Time/Space Complexity
Q.53 (CS Q.43)
Consider a 6-stage instruction pipeline, where all stages are perfectly balanced. Assume that there is no cycle-time overhead of pipelining. When an application is executing on...
Instruction Pipelining and Hazards
Q.54 (CS Q.44)
An access sequence of cache block addresses is of length and contains unique block addresses. The number of unique block addresses between two consecutive accesses to th...
Memory Hierarchy: Cache, Main Memory and Secondary Storage
Q.55 (CS Q.45)
Consider the 4-to-1 multiplexer with two select lines and given below. 4-to-1 Multiplexer with inputs 0, 1, R, R-bar, select lines P, Q, and output F The minimal sum-of-...
Combinational Circuits
Q.56 (CS Q.46)
The function satisfies the following equation: . The value of is ______.
Calculus
Q.57 (CS Q.47)
A function is continuous in the interval . It is known that and . Which one of the following statements must be true?
Calculus
Q.58 (CS Q.48)
Four fair six-sided dice are rolled. The probability that the sum of the results being 22 is . The value of is ______________.
Probability and Statistics
Q.59 (CS Q.49)
A pennant is a sequence of numbers, each number being 1 or 2. An n-pennant is a sequence of numbers with sum equal to n. For example, (1,1,2) is a 4-pennant. The set of all poss...
Combinatorics, Counting, Recurrence Relations and Generating Functions
Q.60 (CS Q.50)
Let denote the set of all functions . Denote by the number of functions from to the set . The value of is ______.
Sets, Relations, Functions, Partial Orders and Lattices
Q.61 (CS Q.51)
Consider an undirected graph where self-loops are not allowed. The vertex set of is . There is an edge between and…
Graph Theory
Q.62 (CS Q.52)
An ordered -tuple with is called graphic if there exists a simple undirected graph with vertices having degrees…
Graph Theory
Q.63 (CS Q.53)
Which one of the following propositional logic formulas is TRUE when exactly two of , , and are TRUE?
Propositional and First-Order Logic
Q.64 (CS Q.54)
Given the following schema: employees(emp-id, first-name, last-name, hire-date, dept-id, salary) departments(dept-id, dept-name, manager-id, location-id) You want to...
SQL Queries and Integrity Constraints
Q.65 (CS Q.55)
Consider two processors and executing the same instruction set. Assume that under identical conditions, for the same input, a program running on takes 25% less...
ALU, Datapath and Control Unit