Previous year paper
GATE CS 2022
GATE 2022 Computer Science and Information Technology (CS)
General Aptitude
10 questions, 15 marks
Q.1
The _________ is too high for it to be considered _________.
Verbal Ability and Grammar
Q.2
A function is defined in the interval on the -axis as…
Quantitative Aptitude
Q.3
Let be a root of the equation . Then the value of the expression is
Quantitative Aptitude
Q.4
Given below are four statements. Statement 1: All students are inquisitive. Statement 2: Some students are inquisitive. Statement 3: No student is inquisitive. Statement 4: Some...
Analytical and Logical Reasoning
Q.5
A palindrome is a word that reads the same forwards and backwards. In a game of words, a player has the following two plates painted with letters. Two square letter plates showi...
Spatial Aptitude
Q.6
Some people believe that "what gets measured, improves". Some others believe that "what gets measured, gets gamed". One possible reason for the difference in the beliefs is the...
Reading Comprehension and Verbal Deduction
Q.7
In a recently conducted national entrance test, boys constituted 65% of those who appeared for the test. Girls constituted the remaining candidates and they accounted for 60% of...
Data Interpretation and Graphs
Q.8
A box contains five balls of same size and shape. Three of them are green coloured balls and two of them are orange coloured balls. Balls are drawn from the box one at a time. I...
Quantitative Aptitude
Q.9
The corners and mid-points of the sides of a triangle are named using the distinct letters P, Q, R, S, T and U, but not necessarily in the same order. Consider the following sta...
Spatial Aptitude
Q.10
A plot of land must be divided between four families. They want their individual plots to be similar in shape, not necessarily equal in area. The land has equally spaced poles,...
Spatial Aptitude
Computer Science and Information Technology
55 questions, 85 marks
Q.11
Which one of the following statements is TRUE for all positive functions ?
Asymptotic Analysis and Time/Space Complexity
Q.12
Which one of the following regular expressions correctly represents the language of the finite automaton given below? Finite automaton with start state q0 and two accepting stat...
Regular Expressions, Finite Automata and Regular Languages
Q.13
Which one of the following statements is TRUE?
Parsing and Syntax Analysis (LL and LR)
Q.14
In a relational data model, which one of the following statements is TRUE?
Functional Dependencies and Normalization
Q.15
Consider the problem of reversing a singly linked list. To take an example, given the linked list below, Singly linked list starting at head with nodes a, b, c, d, e followed by...
Arrays and Linked Lists
Q.16
Suppose we are given keys, hash table slots, and two simple uniform hash functions and . Further suppose our hashing scheme uses for the odd keys and…
Hash Tables and Collision Resolution
Q.17
Which one of the following facilitates transfer of bulk data from hard disk to main memory with the highest throughput?
I/O Interface, Interrupts and DMA
Q.18
Let and be two 4-bit registers that store numbers in 2's complement form. For the operation , which one of the following values of and gives a...
Number Representations and Computer Arithmetic
Q.19
Consider the following threads, T1, T2, and T3 executing on a single processor, synchronized using three binary semaphore variables, S1, S2, and S3, operated upon using standard...
Process Synchronization and Concurrency
Q.20
Consider the following two statements with respect to the matrices , , and . Statement 1…
Linear Algebra
Q.21
What is printed by the following ANSI C program? #include<stdio.h> int main(int argc, char *argv[]) { int x = 1, z[2] = {10, 11}; int *p = NULL; p = &x; *p = 10; p = &z[1]; *(&z...
Pointers, Arrays and Strings
Q.22
Consider an enterprise network with two Ethernet segments, a web server and a firewall, connected via three routers as shown below. Enterprise network with Firewall connected to...
IPv4/IPv6 Addressing, Subnetting, CIDR, ARP, ICMP and NAT
Q.23
Which of the following statements is/are TRUE?
Decidability, Reducibility and Undecidability · Context-Free Grammars, Pushdown Automata and CFLs
Q.24
Let and be two set associative cache organizations that use LRU algorithm for cache block replacement. is a write back cache and is a write through cache...
Memory Hierarchy: Cache, Main Memory and Secondary Storage
Q.25
Consider the following three relations in a relational database.…
Relational Algebra and Tuple Relational Calculus
Q.26
Which of the following statements is/are TRUE with respect to deadlocks?
Deadlock Prevention, Avoidance and Detection
Q.27
Which of the following statements is/are TRUE for a group G ?
Monoids and Groups
Q.28
Suppose a binary search tree with 1000 distinct elements is also a complete binary tree. The tree is stored using the array representation of binary heap trees. Assuming that th...
Binary Trees, Binary Search Trees and Balanced Trees
Q.29
Consider the augmented grammar with as the set of terminals. …
Parsing and Syntax Analysis (LL and LR)
Q.30
Consider a simple undirected graph of 10 vertices. If the graph is disconnected, then the maximum number of edges it can have is ____________.
Graph Theory
Q.31
Consider a relation with the following three functional dependencies. The number of superkeys in the relation R i...
Functional Dependencies and Normalization
Q.32
The number of arrangements of six identical balls in three identical bins is______.
Combinatorics, Counting, Recurrence Relations and Generating Functions
Q.33
A cache memory that has a hit rate of 0.8 has an access latency 10 ns and miss penalty 100 ns. An optimization is done on the cache to reduce the miss rate. However, the optimiz...
Memory Hierarchy: Cache, Main Memory and Secondary Storage
Q.34
The value of the following limit is _____________.
Calculus
Q.35
Consider the resolution of the domain name www.gate.org.in by a DNS resolver. Assume that no resource records are cached anywhere across the DNS servers and that iterative query...
Application Layer: DNS, HTTP, SMTP, FTP
Q.36
Which one of the following is the closed form for the generating function of the sequence defined below?…
Combinatorics, Counting, Recurrence Relations and Generating Functions
Q.37
Consider a simple undirected unweighted graph with at least three vertices. If A is the adjacency matrix of the graph, then the number of 3-cycles in the graph is given by the t...
Graph Theory
Q.38
Which one of the following statements is FALSE?
Memory Management and Virtual Memory
Q.39
Let and denote read and write operations on a data element by a transaction , respectively. Consider the schedule with four transactions.…
Transactions, Serializability and Concurrency Control
Q.40
Consider a digital display system (DDS) shown in the figure that displays the contents of register X. A 16-bit code word is used to load a word in X, either from S or from R. S...
Combinational Circuits
Q.41
Consider three floating point numbers A, B and C stored in registers RA, RB and RC, respectively as per IEEE-754 single precision floating point format. The 32-bit content store...
ALU, Datapath and Control Unit
Q.42
Consider four processes P, Q, R, and S scheduled on a CPU as per round robin algorithm with a time quantum of 4 units. The processes arrive in the order P, Q, R, S, all at time...
CPU Scheduling
Q.43
What is printed by the following ANSI C program? #include<stdio.h> int main(int argc, char *argv[]) { int a[3][3][3] = {{1, 2, 3, 4, 5, 6, 7, 8, 9}, {10, 11, 12, 13, 14, 15, 16,...
Pointers, Arrays and Strings
Q.44
What is printed by the following ANSI C program? #include<stdio.h> int main(int argc, char argv[]){ char a = 'P'; char b = 'x'; char c = (a & b) + ''; char d = (a | b) - '-';...
Data Types, Operators and Control Flow
Q.45
Consider solving the following system of simultaneous equations using LU decomposition. where L and U...
Linear Algebra
Q.46
Which of the following is/are undecidable?
Decidability, Reducibility and Undecidability
Q.47
Consider the following languages: Note that is the reversal of t...
Regular Expressions, Finite Automata and Regular Languages · Context-Free Grammars, Pushdown Automata and CFLs
Q.48
Consider the following languages: Which of the followi...
Context-Free Grammars, Pushdown Automata and CFLs
Q.49
Consider a simple undirected weighted graph G, all of whose edge weights are distinct. Which of the following statements about the minimum spanning trees of G is/are TRUE?
Minimum Spanning Trees
Q.50
The following simple undirected graph is referred to as the Peterson graph. The Petersen graph drawn with an outer 5-cycle, an inner 5-pointed star, and 5 radial spokes connecti...
Graph Theory
Q.51
Consider the following recurrence: Then, which of the follo...
Combinatorics, Counting, Recurrence Relations and Generating Functions
Q.52
Which of the properties hold for the adjacency matrix A of a simple undirected unweighted graph having n vertices?
Graph Theory
Q.53
Which of the following is/are the eigenvector(s) for the matrix given below?…
Linear Algebra
Q.54
Consider a system with 2 KB direct mapped data cache with a block size of 64 bytes. The system has a physical address space of 64 KB and a word length of 16 bits. During the exe...
Memory Hierarchy: Cache, Main Memory and Secondary Storage
Q.55
Consider routing table of an organization’s router shown below: | Subnet Number | Subnet Mask | Next Hop | | :--- | :--- | :--- | | 12.20.164.0 | 255.255.252.0 | R1 | | 12.20.17...
IPv4/IPv6 Addressing, Subnetting, CIDR, ARP, ICMP and NAT
Q.56
Consider the relational database with the following four schemas and their respective instances. Student(sNo, sName, dNo), Dept(dNo, dName), Course(cNo, cName, dNo), Register(sN...
SQL Queries and Integrity Constraints
Q.57
Consider a network with three routers P, Q, R shown in the figure below. All the links have cost of unity. Three routers P, Q, and R connected in a line: P connected to Q, and Q...
Routing Algorithms (Distance Vector, Link State) and BGP/OSPF
Q.58
Let be a directed graph, where is the set of vertices and E is the set of directed edges, as defined by the following adjacency matrix A.…
Graph Theory
Q.59
Consider a 100 Mbps link between an earth station (sender) and a satellite (receiver) at an altitude of 2100 km. The signal propagates at a speed of ....
OSI/TCP-IP Layering, Physical Layer and Switching
Q.60
Consider the data transfer using TCP over a 1 Gbps link. Assuming that the maximum segment lifetime (MSL) is set to 60 seconds, the minimum number of bits required for the seque...
Transport Layer: UDP, TCP Flow and Congestion Control, Sockets
Q.61
A processor X1 operating at 2 GHz has a standard 5-stage RISC instruction pipeline having a base CPI (cycles per instruction) of one without any pipeline hazards. For a given pr...
Instruction Pipelining and Hazards
Q.62
Consider the queues Q1 containing four elements and Q2 containing none (shown as the Initial State in the figure). The only operations allowed on these two queues are Enqueue(Q,...
Stacks and Queues
Q.63
Consider two files systems A and B, that use contiguous allocation and linked allocation, respectively. A file of size 100 blocks is already stored in A and also in B. Now, cons...
File Systems, I/O and Disk Scheduling
Q.64
Consider a demand paging system with four page frames (initially empty) and LRU page replacement policy. For the following page reference string…
Memory Management and Virtual Memory
Q.65
Consider the following grammar along with translation rules. …
Syntax-Directed Translation