Previous year paper
GATE CS 2016 Set 1
GATE 2016 Computer Science and Information Technology (CS) Session 1
Take this paper as a mock testGATE CS 2016GATE CS 2016 Set 2
General Aptitude
10 questions, 15 marks
Q.1 (GA Q.1)
Out of the following four sentences, select the most suitable sentence with respect to grammar and usage.
Verbal Ability and Grammar
Q.2 (GA Q.2)
A rewording of something written or spoken is a ______________.
Verbal Ability and Grammar
Q.3 (GA Q.3)
Archimedes said, "Give me a lever long enough and a fulcrum on which to place it, and I will move the world." The sentence above is an example of a ___________ statement.
Verbal Ability and Grammar
Q.4 (GA Q.4)
If 'relftaga' means carefree, 'otaga' means careful and 'fertaga' means careless, which of the following could mean 'aftercare'?
Verbal Ability and Grammar
Q.5 (GA Q.5)
A cube is built using 64 cubic blocks of side one unit. After it is built, one cubic block is removed from every corner of the cube. The resulting surface area of the body (in s...
Spatial Aptitude
Q.6 (GA Q.6)
A shaving set company sells 4 different types of razors, Elegance, Smooth, Soft and Executive. Elegance sells at Rs. 48, Smooth at Rs. 63, Soft at Rs. 78 and Executive at Rs. 17...
Data Interpretation and Graphs
Q.7 (GA Q.7)
Indian currency notes show the denomination indicated in at least seventeen languages. If this is not an indication of the nation's diversity, nothing else is. Which of the foll...
Verbal Ability and Grammar
Q.8 (GA Q.8)
Consider the following statements relating to the level of poker play of four players P, Q, R and S. I. P always beats Q II. R always beats S III. S loses to P only sometimes IV...
Analytical and Logical Reasoning
Q.9 (GA Q.9)
If , which of the following is a factor of ?
Quantitative Aptitude
Q.10 (GA Q.10)
In a process, the number of cycles to failure decreases exponentially with an increase in load. At a load of 80 units, it takes 100 cycles for failure. When the load is halved,...
Quantitative Aptitude
Computer Science and Information Technology
55 questions, 85 marks
Q.11 (CS Q.1)
Let represent the following propositions. is a composite number is a perfect square is a prime number The integ...
Propositional and First-Order Logic
Q.12 (CS Q.2)
Let be the number of -bit strings that do NOT contain two consecutive 1s. Which one of the following is the recurrence relation for ?
Combinatorics, Counting, Recurrence Relations and Generating Functions
Q.13 (CS Q.3)
The value of is _____.
Calculus
Q.14 (CS Q.4)
A probability density function on the interval is given by and outside this interval the value of the function is zero. The value of is _____.
Probability and Statistics
Q.15 (CS Q.5)
Two eigenvalues of a real matrix are and . The determinant of is _____.
Linear Algebra
Q.16 (CS Q.6)
Consider the Boolean operator with the following properties: , , and . Then is equivalent to
Boolean Algebra and Logic Minimization
Q.17 (CS Q.7)
The 16-bit 2's complement representation of an integer is 1111 1111 1111 0101; its decimal representation is _____.
Number Representations and Computer Arithmetic
Q.18 (CS Q.8)
We want to design a synchronous counter that counts the sequence 0-1-0-2-0-3 and then repeats. The minimum number of J-K flip-flops required to implement this counter is _____.
Sequential Circuits, Counters and Registers
Q.19 (CS Q.9)
A processor can support a maximum memory of 4 GB, where the memory is word-addressable (a word consists of two bytes). The size of the address bus of the processor is at least _...
Machine Instructions and Addressing Modes
Q.20 (CS Q.10)
A queue is implemented using an array such that ENQUEUE and DEQUEUE operations are performed efficiently. Which one of the following statements is CORRECT ( refers to the num...
Stacks and Queues
Q.21 (CS Q.11)
Consider the following directed graph: Directed acyclic graph with six vertices labeled a, b, c, d, e, and f. Directed edges are from a to b, a to d, b to c, d to e, c to f, and...
Graph Traversals, Topological Sort and Connectivity
Q.22 (CS Q.12)
Consider the following C program. void f(int, short); void main() { int i = 100; short s = 12; short *p = &s; __________ ; // call to f() } Which one of the following e...
Pointers, Arrays and Strings
Q.23 (CS Q.13)
The worst case running times of Insertion sort, Merge sort and Quick sort, respectively, are:
Searching and Sorting Algorithms
Q.24 (CS Q.14)
Let be a weighted connected undirected graph with distinct positive edge weights. If every edge weight is increased by the same value, then which of the following statements...
Minimum Spanning Trees
Q.25 (CS Q.15)
Consider the following C program. #include <stdio.h> void mystery(int *ptra, int *ptrb) { int *temp; temp = ptrb; ptrb = ptra; ptra = temp; } int main() { int a = 2016, b =...
Pointers, Arrays and Strings
Q.26 (CS Q.16)
Which of the following languages is generated by the given grammar?
Context-Free Grammars, Pushdown Automata and CFLs
Q.27 (CS Q.17)
Which of the following decision problems are undecidable? I. Given NFAs and , is ? II. Given a CFG and a strin...
Decidability, Reducibility and Undecidability
Q.28 (CS Q.18)
Which one of the following regular expressions represents the language: the set of all binary strings having two consecutive 0s and two consecutive 1s?
Regular Expressions, Finite Automata and Regular Languages
Q.29 (CS Q.19)
Consider the following code segment. x = u - t; y = x * v; x = y + w; y = t - z; y = x * y; The minimum number of total variables required to convert the above code...
Intermediate Code Generation, Data Flow Analysis and Code Optimization
Q.30 (CS Q.20)
Consider an arbitrary set of CPU-bound processes with unequal CPU burst lengths submitted at the same time to a computer system. Which one of the following process scheduling al...
CPU Scheduling
Q.31 (CS Q.21)
Which of the following is NOT a superkey in a relational schema with attributes and primary key ?
ER Model and Relational Schema Design
Q.32 (CS Q.22)
Which one of the following is NOT a part of the ACID properties of database transactions?
Transactions, Serializability and Concurrency Control
Q.33 (CS Q.23)
A database of research articles in a journal uses the following schema.…
Functional Dependencies and Normalization
Q.34 (CS Q.24)
Which one of the following protocols is NOT used to resolve one form of address to another one?
Application Layer: DNS, HTTP, SMTP, FTP
Q.35 (CS Q.25)
Which of the following is/are example(s) of stateful application layer protocols? (i) HTTP (ii) FTP (iii) TCP (iv) POP3
Application Layer: DNS, HTTP, SMTP, FTP
Q.36 (CS Q.26)
The coefficient of in is _____.
Combinatorics, Counting, Recurrence Relations and Generating Functions
Q.37 (CS Q.27)
Consider the recurrence relation , . Let . The value of is _____.
Combinatorics, Counting, Recurrence Relations and Generating Functions
Q.38 (CS Q.28)
A function , defined on the set of positive integers , satisfies the following properties…
Sets, Relations, Functions, Partial Orders and Lattices
Q.39 (CS Q.29)
Consider the following experiment. Step 1. Flip a fair coin twice. Step 2. If the outcomes are (TAILS, HEADS) then output Y and stop. Step 3. If the outcomes are either (HEADS,...
Probability and Statistics
Q.40 (CS Q.30)
Consider the two cascaded 2-to-1 multiplexers as shown in the figure. Logic circuit diagram of two cascaded 2-to-1 multiplexers. The first multiplexer has select input P, data i...
Combinational Circuits
Q.41 (CS Q.31)
The size of the data count register of a DMA controller is 16 bits. The processor needs to transfer a file of 29,154 kilobytes from disk to main memory. The memory is byte addre...
I/O Interface, Interrupts and DMA
Q.42 (CS Q.32)
The stage delays in a 4-stage pipeline are 800, 500, 400 and 300 picoseconds. The first stage (with delay 800 picoseconds) is replaced with a functionally equivalent design invo...
Instruction Pipelining and Hazards
Q.43 (CS Q.33)
Consider a carry lookahead adder for adding two -bit integers, built using gates of fan-in at most two. The time to perform addition using this adder is
Number Representations and Computer Arithmetic
Q.44 (CS Q.34)
The following function computes the maximum value contained in an integer array
p[]of size (). int max(int *p, int n) { int a = 0, b = n - 1; while (_______...Pointers, Arrays and Strings
Q.45 (CS Q.35)
What will be the output of the following C program? #include <stdio.h> void count(int n) { static int d = 1; printf("%d ", n); printf("%d ", d); d++; if (n > 1) count(n - 1...
Functions, Recursion, Scope and Storage Classes
Q.46 (CS Q.36)
What will be the output of the following pseudo-code when parameters are passed by reference and dynamic scoping is assumed? a = 3; void n(x) { x = x * a; print(x); } vo...
Runtime Environments and Parameter Passing
Q.47 (CS Q.37)
An operator
delete(i)for a binary heap data structure is to be designed to delete the item in the -th node. Assume that the heap is implemented in an array and refers...Binary Heaps and Priority Queues
Q.48 (CS Q.38)
Consider the weighted undirected graph with 4 vertices, where the weight of edge is given by the entry in the matrix …
Single-Source and All-Pairs Shortest Paths
Q.49 (CS Q.39)
Let be a complete undirected graph on 4 vertices, having 6 edges with weights being 1, 2, 3, 4, 5, and 6. The maximum possible weight that a minimum weight spanning tree of...
Minimum Spanning Trees
Q.50 (CS Q.40)
is an undirected simple graph in which each edge has a distinct weight, and is a particular edge of . Which of the following statements about the minimum spa...
Minimum Spanning Trees
Q.51 (CS Q.41)
Let denote a queue containing sixteen numbers and be an empty stack. returns the element at the head of the queue without removing it from . Simi...
Stacks and Queues
Q.52 (CS Q.42)
Consider the following context-free grammars: …
Context-Free Grammars, Pushdown Automata and CFLs
Q.53 (CS Q.43)
Consider the transition diagram of a PDA given below with input alphabet and stack alphabet . is the initial stack symbol. Let den...
Context-Free Grammars, Pushdown Automata and CFLs
Q.54 (CS Q.44)
Let be a recursive language and be a recursively enumerable but not recursive language. Let and be two languages such that reduces to , and ...
Decidability, Reducibility and Undecidability
Q.55 (CS Q.45)
The attributes of three arithmetic operators in some programming language are given below. Operator Precedence Associativity Arity + High Left Binary - Medium Right Binary * Low...
Data Types, Operators and Control Flow
Q.56 (CS Q.46)
Consider the following Syntax Directed Translation Scheme (SDTS), with non-terminals and terminals …
Syntax-Directed Translation
Q.57 (CS Q.47)
Consider a computer system with 40-bit virtual addressing and page size of sixteen kilobytes. If the computer system has a one-level page table per process and each page table e...
Memory Management and Virtual Memory
Q.58 (CS Q.48)
Consider a disk queue with requests for I/O to blocks on cylinders 47, 38, 121, 191, 87, 11, 92, 10. The C-LOOK scheduling algorithm is used. The head is initially at cylinder n...
File Systems, I/O and Disk Scheduling
Q.59 (CS Q.49)
Consider a computer system with ten physical page frames. The system is provided with an access sequence , where each i...
Memory Management and Virtual Memory
Q.60 (CS Q.50)
Consider the following proposed solution for the critical section problem. There are processes: . In the code, function
pmaxreturns an integer not smal...Process Synchronization and Concurrency
Q.61 (CS Q.51)
Consider the following two phase locking protocol. Suppose a transaction accesses (for read or write operations), a certain set of objects . This is don...
Transactions, Serializability and Concurrency Control
Q.62 (CS Q.52)
Consider that wants to send a message that is digitally signed to . Let the pair of private and public keys for and be denoted by and for…
Application Layer: DNS, HTTP, SMTP, FTP
Q.63 (CS Q.53)
An IP datagram of size 1000 bytes arrives at a router. The router has to forward this packet on a link whose MTU (maximum transmission unit) is 100 bytes. Assume that the size o...
IPv4/IPv6 Addressing, Subnetting, CIDR, ARP, ICMP and NAT
Q.64 (CS Q.54)
For a host machine that uses the token bucket algorithm for congestion control, the token bucket has a capacity of 1 megabyte and the maximum output rate is 20 megabytes per sec...
Transport Layer: UDP, TCP Flow and Congestion Control, Sockets
Q.65 (CS Q.55)
A sender uses the Stop-and-Wait ARQ protocol for reliable transmission of frames. Frames are of size 1000 bytes and the transmission rate at the sender is 80 Kbps (1Kbps = 1000...
Data Link Layer: Framing, Error Detection and Sliding Window