Previous year paper
GATE CS 2015 Set 1
GATE 2015 Computer Science and Information Technology (CS) Session 1
Take this paper as a mock testGATE CS 2015GATE CS 2015 Set 2GATE CS 2015 Set 3
General Aptitude
10 questions, 15 marks
Q.1 (GA Q.1)
Didn't you buy _____ when you went shopping?
Verbal Ability and Grammar
Q.2 (GA Q.2)
Which of the following options is the closest in meaning to the sentence below? She enjoyed herself immensely at the party.
Verbal Ability and Grammar
Q.3 (GA Q.3)
Given Set and Set , two numbers are randomly selected, one from each set. What is the probability that the sum of the two number...
Quantitative Aptitude
Q.4 (GA Q.4)
Based on the given statements, select the most appropriate option to solve the given question. If two floors in a certain building are feet apart, how many steps are there i...
Analytical and Logical Reasoning
Q.5 (GA Q.5)
Which one of the following combinations is incorrect?
Verbal Ability and Grammar
Q.6 (GA Q.6)
The number of students in a class who have answered correctly, wrongly, or not attempted each question in an exam, are listed in the table below. The marks for each question are...
Data Interpretation and Graphs
Q.7 (GA Q.7)
Select the alternative meaning of the underlined part of the sentence. The chain snatchers took to their heels when the police party arrived.
Verbal Ability and Grammar
Q.8 (GA Q.8)
The given statement is followed by some courses of action. Assuming the statement to be true, decide the correct option. Statement: There has been a significant drop in the...
Analytical and Logical Reasoning
Q.9 (GA Q.9)
The pie chart below has the breakup of the number of students from different departments in an engineering college for the year 2012. The proportion of male to female students i...
Data Interpretation and Graphs
Q.10 (GA Q.10)
The probabilities that a student passes in Mathematics, Physics and Chemistry are and respectively. Of these subjects, the student has chance of passing in at...
Quantitative Aptitude
Computer Science and Information Technology
55 questions, 85 marks
Q.11 (CS Q.1)
Match the following: | | Testing Technique | | Testing Category | | :--- | :--- | :--- | :--- | | (P) | Condition coverage | (i) | Black-box testing | | (Q) | Equivalence class...
Functions, Recursion, Scope and Storage Classes
Q.12 (CS Q.2)
Which one of the following is the recurrence equation for the worst case time complexity of the Quicksort algorithm for sorting () numbers? In the recurrence equati...
Asymptotic Analysis and Time/Space Complexity
Q.13 (CS Q.3)
For any two languages and such that is context-free and is recursively enumerable but not recursive, which of the following is/are necessarily true? I.…
Decidability, Reducibility and Undecidability
Q.14 (CS Q.4)
is:
Calculus
Q.15 (CS Q.5)
If and , then is:
Sets, Relations, Functions, Partial Orders and Lattices
Q.16 (CS Q.6)
Match the following: | | Algorithm | | Design Paradigm | | :--- | :--- | :--- | :--- | | (P) | Prim's algorithm for minimum spanning tree | (i) | Backtracking | | (Q) | Floyd-Wa...
Greedy Algorithms
Q.17 (CS Q.7)
SELECT operation in SQL is equivalent to:
SQL Queries and Integrity Constraints
Q.18 (CS Q.8)
For computers based on three-address instruction formats, each address field can be used to specify which of the following: (S1) A memory operand (S2) A processor register (S3)...
Machine Instructions and Addressing Modes
Q.19 (CS Q.9)
The following two functions
P1andP2that share a variableBwith an initial value of execute concurrently. P1() { C = B - 1; B = 2 * C; } P2() { D = 2...Process Synchronization and Concurrency
Q.20 (CS Q.10)
Which of the following is/are correct inorder traversal sequence(s) of binary search tree(s)? I. II. III.…
Binary Trees, Binary Search Trees and Balanced Trees
Q.21 (CS Q.11)
The output of the following C program is _____. #include <stdio.h> void f1(int a, int b) { int c; c = a; a = b; b = c; } void f2(int *a, int *b) { int c; c = *a; *a = *b; *...
Pointers, Arrays and Strings
Q.22 (CS Q.12)
Consider a system with byte-addressable memory, 32-bit logical addresses, page size and page table entries of each. The size of the page tab...
Memory Management and Virtual Memory
Q.23 (CS Q.13)
Which one of the following is TRUE at any valid state in shift-reduce parsing?
Parsing and Syntax Analysis (LL and LR)
Q.24 (CS Q.14)
Which one of the following is NOT equivalent to ?
Propositional and First-Order Logic
Q.25 (CS Q.15)
Which of the following statements is/are FALSE? I. XML overcomes the limitations in HTML to support a structured way of organizing content. II. XML specification is not case sen...
Application Layer: DNS, HTTP, SMTP, FTP
Q.26 (CS Q.16)
For a set , the power set of is denoted by . If , which of the following options are TRUE? I. II.…
Sets, Relations, Functions, Partial Orders and Lattices
Q.27 (CS Q.17)
In one of the pairs of protocols given below, both the protocols can use multiple TCP connections between the same client and the server. Which one is that?
Application Layer: DNS, HTTP, SMTP, FTP
Q.28 (CS Q.18)
In the LU decomposition of the matrix , if the diagonal elements of are both , then the lower diagonal entry of ...
Linear Algebra
Q.29 (CS Q.19)
Suppose two hosts use a TCP connection to transfer a large file. Which of the following statements is/are FALSE with respect to the TCP connection? I. If the sequence number of...
Transport Layer: UDP, TCP Flow and Congestion Control, Sockets
Q.30 (CS Q.20)
Consider a 4-bit Johnson counter with an initial value of . The counting sequence of this counter is:
Sequential Circuits, Counters and Registers
Q.31 (CS Q.21)
Suppose that everyone in a group of people wants to communicate secretly with the others using symmetric key cryptographic system. The communication between any two pe...
Application Layer: DNS, HTTP, SMTP, FTP
Q.32 (CS Q.22)
Which one of the following fields of an IP header is NOT modified by a typical IP router?
IPv4/IPv6 Addressing, Subnetting, CIDR, ARP, ICMP and NAT
Q.33 (CS Q.23)
What are the worst-case complexities of insertion and deletion of a key in a binary search tree?
Binary Trees, Binary Search Trees and Balanced Trees
Q.34 (CS Q.24)
A file is organized so that the ordering of data records is the same as or close to the ordering of data entries in some index. Then that index is called:
File Organization, B-Trees and B+ Trees Indexing
Q.35 (CS Q.25)
The height of a tree is the length of the longest root-to-leaf path in it. The maximum and minimum number of nodes in a binary tree of height are:
Binary Trees, Binary Search Trees and Balanced Trees
Q.36 (CS Q.26)
The value of the summation is _____.
Calculus
Q.37 (CS Q.27)
Consider the following relations: Student | Roll No | Student Name | | :---: | :---: | | 1 | Raj | | 2 | Rohit | | 3 | Raj | Performance | Roll No | Course | Marks | | :...
SQL Queries and Integrity Constraints
Q.38 (CS Q.28)
The binary operator is defined by the following truth table: | | | | | :---: | :---: | :---: | | 0 | 0 | 0 | | 0 | 1 | 1 | | 1 | 0 | 1 | | 1 | 1 | 0 | Wh...
Boolean Algebra and Logic Minimization
Q.39 (CS Q.29)
Consider a LAN with four nodes and . Time is divided into fixed-size slots, and a node can begin its transmission only at the beginning of a slot. A collisi...
Medium Access Control (ALOHA, CSMA/CD) and Ethernet/Switching
Q.40 (CS Q.30)
Suppose the following disk request sequence (track numbers) for a disk with tracks is given: . Assume that the initial position of the...
File Systems, I/O and Disk Scheduling
Q.41 (CS Q.31)
Consider the following C function: int fun1(int n) { int i, j, k, p, q = 0; for (i = 1; i < n; ++i) { p = 0; for (j = n; j > 1; j = j / 2) ++p; for (k = 1; k < p; k = k * 2...
Asymptotic Analysis and Time/Space Complexity
Q.42 (CS Q.32)
Consider a max heap, represented by the array: | Array Index | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---...
Binary Heaps and Priority Queues
Q.43 (CS Q.33)
Consider the following pseudo code, where and are positive integers: begin q := 0 r := x while r >= y do begin r := r - y q := q + 1 end end The post conditi...
Data Types, Operators and Control Flow
Q.44 (CS Q.34)
Suppose is a lattice represented by the following Hasse diagram: For any , not necessarily distinct, and are join and...
Sets, Relations, Functions, Partial Orders and Lattices
Q.45 (CS Q.35)
What is the output of the following C code? Assume that the address of
xis (in decimal) and an integer requires four bytes of memory. #include <stdio.h> int main(...Pointers, Arrays and Strings
Q.46 (CS Q.36)
Consider the following matrix where two elements are unknown and are marked by and . The eigenvalues of this matrix are and . What are the values...
Linear Algebra
Q.47 (CS Q.37)
A positive edge-triggered D flip-flop is connected to a positive edge-triggered JK flip-flop as follows. The Q output of the D flip-flop is connected to both the J and K inputs...
Sequential Circuits, Counters and Registers
Q.48 (CS Q.38)
Consider a non-pipelined processor with a clock rate of and average cycles per instruction of four. The same processor is upgraded to a pipelined processo...
Instruction Pipelining and Hazards
Q.49 (CS Q.39)
Consider the operations: Which one of the following is correct?
Boolean Algebra and Logic Minimization
Q.50 (CS Q.40)
An algorithm performs find operations, insert operations, delete operations, and decrease-key operations on a set of data...
Arrays and Linked Lists
Q.51 (CS Q.41)
Consider an Entity-Relationship (ER) model in which entity sets and are connected by an relationship . and are connected by a ( on...
ER Model and Relational Schema Design
Q.52 (CS Q.42)
Consider the following C program segment. while (first <= last) { if (array[middle] < search) first = middle + 1; else if (array[middle] == search) found = TRUE; else last = mid...
Data Types, Operators and Control Flow
Q.53 (CS Q.43)
The graph shown below has 8 edges with distinct integer edge weights. The minimum spanning tree (MST) is of weight 36 and contains the edges: {(A, C), (B, C), (B, E), (E, F), (D...
Minimum Spanning Trees
Q.54 (CS Q.44)
The value of the integral is _____.
Calculus
Q.55 (CS Q.45)
Let be a simple undirected graph, and be a particular vertex in it called the source. For , let denote the shortest distance in from to...
Graph Traversals, Topological Sort and Connectivity
Q.56 (CS Q.46)
Consider a uniprocessor system executing three tasks , and , each of which is composed of an infinite sequence of jobs (or instances) which arrive periodically a...
CPU Scheduling
Q.57 (CS Q.47)
Consider a main memory with five page frames and the following sequence of page references: . Which one of the following is true wit...
Memory Management and Virtual Memory
Q.58 (CS Q.48)
Consider a disk pack with a seek time of milliseconds and rotational speed of rotations per minute (RPM). It has sectors per track and each sector can store…
Memory Hierarchy: Cache, Main Memory and Secondary Storage
Q.59 (CS Q.49)
Let represent the number of bit strings of length containing two consecutive 1s. What is the recurrence relation for ?
Combinatorics, Counting, Recurrence Relations and Generating Functions
Q.60 (CS Q.50)
A variable is said to be live at a statement in a program if the following three conditions hold simultaneously: i. There exists a statement that uses ii. Th...
Intermediate Code Generation, Data Flow Analysis and Code Optimization
Q.61 (CS Q.51)
Consider the NPDA , where (as per usual convention) is the set of states...
Context-Free Grammars, Pushdown Automata and CFLs
Q.62 (CS Q.52)
Consider the DFAs and given below. State transition diagrams for DFAs M and N, accepting strings ending in a and b respectively State transition diagrams of DFAs M and N...
Regular Expressions, Finite Automata and Regular Languages
Q.63 (CS Q.53)
Suppose that the stop-and-wait protocol is used on a link with a bit rate of kilobits per second and milliseconds propagation delay. Assume that the transmission time...
Data Link Layer: Framing, Error Detection and Sliding Window
Q.64 (CS Q.54)
Let be a connected planar graph with vertices. If the number of edges on each face is three, then the number of edges in is _____.
Graph Theory
Q.65 (CS Q.55)
The least number of temporary variables required to create a three-address code in static single assignment form for the expression is _____.
Intermediate Code Generation, Data Flow Analysis and Code Optimization