GATE CSE 2020 Question Paper with Solutions & Answer Key
All 53 questions of the GATE CSE 2020 paper (82 marks: 24 one-mark and 29 two-mark; 31 MCQ, 0 MSQ, 22 NAT), with the answer key and a verified solution for each. See more GATE CSE question papers or all GATE CSE PYQs.
- Questions
- 53
- Total marks
- 82
- MCQ / MSQ / NAT
- 31 / 0 / 22
- Topics
- 42
GATE CSE 2020 paper analysis
Engineering Mathematics and Programming and Data Structures together made up 24 of 82 marks, up 11 from GATE CSE 2019. 22 of 53 questions were NAT, the most since 2016. Programming in C was the heaviest single topic with 5 marks across 3 questions. Computer Organization and Architecture moved the most against GATE CSE 2019: up 8 marks.
All GATE CSE 2020 questions
Each question opens its full verified solution.
- Q1 · MCQ · 1 mark · CalculusConsider the functions I. e-x II. x2 - sin x III. √(x3 + 1) Which of the above functions is/are increasing everywhere in [0,1]?
- Q2 · MCQ · 1 mark · Asymptotic AnalysisFor parameters a and b, both of which are (1), T(n) = T(n1/a) + 1, and T(b) = 1. Then T(n) is
- Q3 · MCQ · 1 mark · I/O Interface, Interrupts and DMAConsider the following statements. I. Daisy chaining is used to assign priorities in attending interrupts. II. When a device raises a vectored interrupt, the CPU does po…
- Q4 · MCQ · 1 mark · ALU DesignConsider the following data path diagram. Consider an instruction: R0 R1 + R2. The following steps are used to execute it over the given data path. Assume that PC is inc…
- Q5 · MCQ · 1 mark · Binary Search TreesThe preorder traversal of a binary search tree is 15, 10, 12, 11, 20, 18, 16, 19. Which one of the following is the postorder traversal of the tree?
- Q6 · MCQ · 1 mark · Asymptotic AnalysisWhat is the worst case time complexity of inserting n2 elements into an AVL-tree with n elements initially?
- Q7 · MCQ · 1 mark · Regular Expressions and Finite AutomataWhich one of the following regular expressions represents the set of all binary strings with an odd number of 1's?
- Q8 · MCQ · 1 mark · Regular and Context-Free LanguagesConsider the following statements. I. If L1 ∪ L2 is regular, then both L1 and L2 must be regular. II. The class of regular languages is closed under infinite union. Whic…
- Q9 · MCQ · 1 mark · Runtime EnvironmentsConsider the following statements. I. Symbol table is accessed only during lexical analysis and syntax analysis. II. Compilers for programming languages that support rec…
- Q10 · MCQ · 1 mark · Context-Free Grammars and PDAsConsider the language L = {an n ≥ 0} ∪ {an bn n ≥ 0} and the following statements. I. L is deterministic context-free. II. L is context-free but not deterministic contex…
- Q11 · MCQ · 1 mark · Memory Management and Virtual MemoryConsider allocation of memory to a new process. Assume that none of the existing holes in the memory will exactly fit the process’s memory requirement. Hence, a new hole…
- Q12 · MCQ · 1 mark · Processes, Threads and IPCConsider the following statements about process state transitions for a system using preemptive scheduling. I. A running process can move to ready state. II. A ready pro…
- Q13 · MCQ · 1 mark · SQLConsider a relational database containing the following schemas. The primary key of each table is indicated by underlining the constituent fields. SELECT s.sno, s.sname…
- Q14 · MCQ · 1 mark · ER ModelWhich one of the following is used to represent the supporting many-one relationships of a weak entity set in an entity-relationship diagram?
- Q15 · MCQ · 1 mark · IPv4 FragmentationConsider the following statements about the functionality of an IP based router. I. A router does not modify the IP packets during forwarding. II. It is not necessary fo…
- Q16 · MCQ · 1 mark · Linear Structures, Trees and HeapsWhat is the worst case time complexity of inserting n elements into an empty linked list, if the linked list needs to be maintained in sorted order?
- Q17 · NAT · 1 mark · Discrete MathematicsLet R be the set of all binary relations on the set {1,2,3}. Suppose a relation is chosen from R at random. The probability that the chosen relation is reflexive (round…
- Q18 · NAT · 1 mark · Discrete MathematicsLet G be a group of 35 elements. Then the largest possible size of a subgroup of G other than G itself is …
- Q19 · NAT · 1 mark · Combinational and Sequential CircuitsA multiplexer is placed between a group of 32 registers and an accumulator to regulate data movement such that at any given point in time the content of only one registe…
- Q20 · NAT · 1 mark · Combinational and Sequential CircuitsIf there are m input lines and n output lines for a decoder that is used to uniquely address a byte addressable 1 KB RAM, then the minimum value of m + n is …
- Q22 · NAT · 1 mark · Programming in CConsider the following C program. #include int main() { int a[4][5]={{1, 2, 3, 4, 5}, {6, 7, 8, 9, 10}, {11, 12, 13, 14, 15}, {16, 17, 18 , 19, 20}}; printf("%d ", *(*(a…
- Q23 · NAT · 1 mark · Searching, Sorting and HashingConsider a double hashing scheme in which the primary hash function is h1(k) = k mod 23, and the secondary hash function is h2(k) = 1 + (k mod 19). Assume that the table…
- Q24 · NAT · 1 mark · Lexical Analysis, Parsing and SDTConsider the following grammar. S → aSB d B → b The number of reduction steps taken by a bottom-up parser while accepting the string aaadbbb is …
- Q25 · NAT · 1 mark · DNS and HTTPAssume that you have made a request for a web page through your web browser to a web server. Initially the browser cache is empty. Further, the browser is configured to…
- Q26 · MCQ · 2 marks · Turing Machines and UndecidabilityWhich of the following languages are undecidable? Note that M indicates encoding of the Turing machine M. L1 = { M L(M) = ∅} L2 = { M, w, q M on input w reaches state q…
- Q27 · MCQ · 2 marks · Linear AlgebraLet A and B be two n × n matrices over real numbers. Let rank(M) and det(M) denote the rank and determinant of a matrix M, respectively. Consider the following statement…
- Q28 · MCQ · 2 marks · Boolean Algebra and MinimizationConsider the Boolean function z(a, b, c). Which one of the following minterm lists represents the circuit given above?
- Q29 · MCQ · 2 marks · Number Representation and ArithmeticConsider three registers R1, R2, and R3 that store numbers in IEEE-754 single precision floating point format. Assume that R1 and R2 contain the values (in hexadecimal n…
- Q30 · MCQ · 2 marks · Cache Memory and HierarchyA computer system with a word length of 32 bits has a 16 MB byte-addressable main memory and a 64 KB, 4-way set associative cache memory with a block size of 256 bytes.…
- Q31 · MCQ · 2 marks · Minimum Spanning TreesLet G = (V,E) be a weighted undirected graph and let T be a Minimum Spanning Tree (MST) of G maintained using adjacency lists. Suppose a new weighted edge (u, v) ∈ V × V…
- Q32 · MCQ · 2 marks · Regular and Context-Free LanguagesConsider the following languages. L1 = {wxyx w, x, y ∈ (0 + 1)+} L2 = {xy x, y ∈ (a + b)*, |x| = |y|, x ≠ y} Which one of the following is TRUE?
- Q33 · MCQ · 2 marks · Syntax-Directed TranslationConsider the productions A → PQ and A → XY. Each of the five non-terminals A, P, Q, X, and Y has two attributes: s is a synthesized attribute, and i is an inherited attr…
- Q34 · MCQ · 2 marks · Concurrency and SynchronizationEach of a set of n processes executes the following code using two semaphores a and b initialized to 1 and 0, respectively. Assume that count is a shared variable initia…
- Q35 · MCQ · 2 marks · CPU and I/O SchedulingConsider the following five disk access requests of the form (request id, cylinder number) that are present in the disk scheduler queue at a given time. (P, 155), (Q, 85…
- Q36 · MCQ · 2 marks · Integrity Constraints and Normal FormsConsider a relational table R that is in 3NF, but not in BCNF. Which one of the following statements is TRUE?
- Q37 · MCQ · 2 marks · Transactions and Concurrency ControlConsider a schedule of transactions T1 and T2: Here, RX stands for “Read(X)” and WX stands for “Write(X)”. Which one of the following schedules is conflict equivalent to…
- Q39 · MCQ · 2 marks · Propositional and First-Order LogicWhich one of the following predicate formulae is NOT logically valid? Note that W is a predicate formula without any free occurrence of x.
- Q40 · MCQ · 2 marks · Shortest PathsLet G = (V, E) be a directed, weighted graph with weight function w: E → R. For some function f: V → R, for each edge (u, v) ∈ E, define w'(u, v) as w(u, v) + f(u) - f(v…
- Q41 · MCQ · 2 marks · Binary Search TreesIn a balanced binary search tree with n elements, what is the worst case time complexity of reporting all elements in range [a, b]? Assume that the number of reported el…
- Q42 · NAT · 2 marks · CombinatoricsThe number of permutations of the characters in LILAC so that no character appears in its original position, if the two L’s are indistinguishable, is …
- Q43 · NAT · 2 marks · Instruction PipeliningConsider a non-pipelined processor operating at 2.5 GHz. It takes 5 clock cycles to complete an instruction. You are going to make a 5-stage pipeline out of this process…
- Q44 · NAT · 2 marks · Instruction Set and Addressing ModesA processor has 64 registers and uses 16-bit instruction format. It has two types of instructions: I-type and R-type. Each I-type instruction contains an opcode, a regis…
- Q45 · NAT · 2 marks · Probability and StatisticsFor n > 2, let a ∈ {0,1}n be a non-zero vector. Suppose that x is chosen uniformly at random from {0,1}n. Then, the probability that Σi=1n ai xi is an odd number is …
- Q46 · NAT · 2 marks · Programming in CConsider the following C functions. int fun1(int n) { static int i = 0; if (n > 0) { ++i; fun1(n-1); } return(i); } int fun2(int n) { static int i = 0; if (n > 0) { i =…
- Q47 · NAT · 2 marks · Binary HeapsConsider the array representation of a binary min-heap containing 1023 elements. The minimum number of comparisons required to find the maximum in the heap is …
- Q48 · NAT · 2 marks · Programming in CConsider the following C functions. int tob(int b, int* arr){ int i; for(i=0; b>0; i++){ if(b%2) arr[i]=1; else arr[i]=0; b = b/2; } return(i); } int pp(int a,int b) { i…
- Q49 · NAT · 2 marks · Minimum Spanning TreesConsider a graph G = (V, E), where V = {v1, v2, ..., v100}, E = {(vi, vj)|1 ≤ i < j ≤ 100}, and weight of the edge (vi, vj) is |i - j|. The weight of minimum spanning tr…
- Q50 · NAT · 2 marks · CPU and I/O SchedulingConsider the following set of processes, assumed to have arrived at time 0. Consider the CPU scheduling algorithms Shortest Job First (SJF) and Round Robin (RR). For RR,…
- Q51 · NAT · 2 marks · Regular Expressions and Finite AutomataConsider the following language. L = {x ∈ {a, b}*| number of a's in x is divisible by 2 but not divisible by 3} The minimum number of states in a DFA that accepts L is …
- Q52 · NAT · 2 marks · Graph TheoryGraph G is obtained by adding vertex s to K3,4 and making s adjacent to every vertex of K3,4. The minimum number of colours required to edge-colour G is …
- Q53 · NAT · 2 marks · Memory Management and Virtual MemoryConsider a paging system that uses 1-level page table residing in main memory and a TLB for address translation. Each main memory access takes 100 ns and TLB lookup take…
- Q54 · NAT · 2 marks · File Organization and IndexingConsider a database implemented using B+ tree for file indexing and installed on a disk drive with block size of 4 KB. The size of search key is 12 bytes and the size of…
- Q55 · NAT · 2 marks · TCP Flow and Congestion ControlConsider a TCP connection between a client and a server with the following specifications: the round trip time is 6 ms, the size of the receiver advertised window is 50…
GATE CSE 2020 answer key
Official answers. Open a question for the full solution.
| Q | Type | Marks | Answer | Topic |
|---|---|---|---|---|
| Q1 | MCQ | 1 | A | Calculus |
| Q2 | MCQ | 1 | A | Asymptotic Analysis |
| Q3 | MCQ | 1 | C | I/O Interface, Interrupts and DMA |
| Q4 | MCQ | 1 | C | ALU Design |
| Q5 | MCQ | 1 | B | Binary Search Trees |
| Q6 | MCQ | 1 | C | Asymptotic Analysis |
| Q7 | MCQ | 1 | D | Regular Expressions and Finite Automata |
| Q8 | MCQ | 1 | D | Regular and Context-Free Languages |
| Q9 | MCQ | 1 | D | Runtime Environments |
| Q10 | MCQ | 1 | C | Context-Free Grammars and PDAs |
| Q11 | MCQ | 1 | C | Memory Management and Virtual Memory |
| Q12 | MCQ | 1 | C | Processes, Threads and IPC |
| Q13 | MCQ | 1 | A | SQL |
| Q14 | MCQ | 1 | A | ER Model |
| Q15 | MCQ | 1 | D | IPv4 Fragmentation |
| Q16 | MCQ | 1 | C | Linear Structures, Trees and Heaps |
| Q17 | NAT | 1 | 0.125 | Discrete Mathematics |
| Q18 | NAT | 1 | 7 | Discrete Mathematics |
| Q19 | NAT | 1 | 5 | Combinational and Sequential Circuits |
| Q20 | NAT | 1 | 1034 | Combinational and Sequential Circuits |
| Q22 | NAT | 1 | 19 | Programming in C |
| Q23 | NAT | 1 | 13 | Searching, Sorting and Hashing |
| Q24 | NAT | 1 | 7 | Lexical Analysis, Parsing and SDT |
| Q25 | NAT | 1 | 6 | DNS and HTTP |
| Q26 | MCQ | 2 | A | Turing Machines and Undecidability |
| Q27 | MCQ | 2 | C | Linear Algebra |
| Q28 | MCQ | 2 | B | Boolean Algebra and Minimization |
| Q29 | MCQ | 2 | B | Number Representation and Arithmetic |
| Q30 | MCQ | 2 | B | Cache Memory and Hierarchy |
| Q31 | MCQ | 2 | D | Minimum Spanning Trees |
| Q32 | MCQ | 2 | A | Regular and Context-Free Languages |
| Q33 | MCQ | 2 | B | Syntax-Directed Translation |
| Q34 | MCQ | 2 | A | Concurrency and Synchronization |
| Q35 | MCQ | 2 | B | CPU and I/O Scheduling |
| Q36 | MCQ | 2 | A | Integrity Constraints and Normal Forms |
| Q37 | MCQ | 2 | A | Transactions and Concurrency Control |
| Q39 | MCQ | 2 | C | Propositional and First-Order Logic |
| Q40 | MCQ | 2 | A | Shortest Paths |
| Q41 | MCQ | 2 | B | Binary Search Trees |
| Q42 | NAT | 2 | 12 | Combinatorics |
| Q43 | NAT | 2 | 2.16 | Instruction Pipelining |
| Q44 | NAT | 2 | 14 | Instruction Set and Addressing Modes |
| Q45 | NAT | 2 | 0.5 | Probability and Statistics |
| Q46 | NAT | 2 | 55 | Programming in C |
| Q47 | NAT | 2 | 511 | Binary Heaps |
| Q48 | NAT | 2 | 81 | Programming in C |
| Q49 | NAT | 2 | 99 | Minimum Spanning Trees |
| Q50 | NAT | 2 | 5.25 | CPU and I/O Scheduling |
| Q51 | NAT | 2 | 6 | Regular Expressions and Finite Automata |
| Q52 | NAT | 2 | 7 | Graph Theory |
| Q53 | NAT | 2 | 155 | Memory Management and Virtual Memory |
| Q54 | NAT | 2 | 4 | File Organization and Indexing |
| Q55 | NAT | 2 | 44 | TCP Flow and Congestion Control |
Subject-wise weightage
Where the marks came from in GATE CSE 2020, against GATE CSE 2019 and the average paper.
| Subject | Qs | Marks | Share | vs previous year | Avg marks / paper |
|---|---|---|---|---|---|
| GATE CSE Engineering Mathematics PYQs | 8 | 13 | 16% | +6 | 14.8 |
| GATE CSE Programming and Data Structures PYQs | 7 | 11 | 13% | +5 | 9.5 |
| GATE CSE Computer Organization and Architecture PYQs | 6 | 10 | 12% | +8 | 6.8 |
| GATE CSE Operating Systems PYQs | 6 | 10 | 12% | +8 | 7.4 |
| GATE CSE Algorithms PYQs | 6 | 9 | 11% | +7 | 7.2 |
| GATE CSE Theory of Computation PYQs | 6 | 9 | 11% | +5 | 6.9 |
| GATE CSE Databases PYQs | 5 | 8 | 10% | +6 | 6.8 |
| GATE CSE Compiler Design PYQs | 3 | 4 | 5% | +2 | 5.2 |
| GATE CSE Computer Networks PYQs | 3 | 4 | 5% | -1 | 7.6 |
| GATE CSE Digital Logic PYQs | 3 | 4 | 5% | -1 | 5.5 |
GATE CSE 2020 FAQ
- How many questions were in GATE CSE 2020?
- GATE CSE 2020 had 53 questions for 82 marks: 31 MCQ, 0 MSQ and 22 NAT.
- Which subject carried the most marks in GATE CSE 2020?
- Engineering Mathematics carried the most marks (13 of 82). The top three were Engineering Mathematics (13), Programming and Data Structures (11), Computer Organization and Architecture (10).
- Where can I find the GATE CSE 2020 answer key?
- The answer key table on this page lists the answer to every question of GATE CSE 2020. Open any question for its full verified solution.
- Is the GATE CSE 2020 paper useful for GATE 2027 preparation?
- Yes. Solving past GATE CSE papers shows how marks are spread across subjects and which topics repeat. Compare it with other GATE CSE question papers and the topic-wise GATE CSE PYQs.