Skip to content
Early access — you're among the first to try PYQLabs. Share feedback

GATE 2020 CSE & IT

56 questions across 1 session

PYQ 1

Assume 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 send HTTP r...

Computer Networks·NAT·easy
PYQ 2

Goods and Services Tax (GST) is an indirect tax introduced in India in 2017 that is imposed on the supply of goods and services, and it subsumes all indirect taxes except few. It i...

General Aptitude·MCQ·easy·✓ keyed
PYQ 3

Consider the following statements. I. Symbol table is accessed only during lexical analysis and syntax analysis. II. Compilers for programming languages that support recursion nece...

Compiler Design·STMT·easy·✓ keyed
PYQ 4

Consider 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 notation) 0x4...

Digital Logic·MCQ·medium·✓ keyed
PYQ 5

Raman is confident of speaking English _____ six months as he has been practising regularly_____the last three weeks.

General Aptitude·MCQ·easy·✓ keyed
PYQ 6

Consider 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 process can mo...

Operating Systems·STMT·easy·✓ keyed
PYQ 7

Consider 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...

Programming Languages·NAT·easy
PYQ 8

If P = 3, R = 27, T = 243, then Q + S = ______.

General Aptitude·MCQ·easy·✓ keyed
PYQ 9

Consider the productions A $$ \to $$ PQ and A $$ \to $$ 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...

Compiler Design·MCQ·medium·✓ keyed
PYQ 10

Which one of the following predicate formulae is NOT logically valid? Note that W is a predicate formula without any free occurrence of x .

Discrete Mathematics·MCQ·medium·✓ keyed
PYQ 11

Graph G is obtained by adding vertex s to K 3,4 and making s adjacent to every vertex of K 3,4 . The minimum number of colours required to edge-colour G is _____.

Discrete Mathematics·NAT·medium
PYQ 12

Consider a relational table R that is in 3NF, but not in BCNF. Which one of the following statements is TRUE?

Database Management System·MCQ·medium·✓ keyed
PYQ 13

Let G be a group of 35 elements. Then the largest possible size of a subgroup of G other than G itself is ______.

Discrete Mathematics·NAT·easy
PYQ 14

The drawn of the 21st century witnessed the melting glaciers oscillating between giving too much and too little to billions of people who depend on them for fresh water. The UN cli...

General Aptitude·MCQ·easy·✓ keyed
PYQ 15

Consider 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 KB, slow st...

Computer Networks·NAT·medium
PYQ 16

Consider 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 _______.

Data Structures·NAT·medium
PYQ 17

Let A and B be two n$$ \times $$n matrices over real numbers. Let rank(M) and det(M) denote the rank and determinant of a matrix M, respectively. Consider the following statements,...

Discrete Mathematics·MCQ·easy·✓ keyed
PYQ 18

Consider the functions I. $${e^{ - x}}$$ II. $${x^2} - \sin x$$ III. $$\sqrt {{x^3} + 1} $$ Which of the above functions is/are increasing everywhere in [0,1]?

Discrete Mathematics·MCQ·easy·✓ keyed
PYQ 19

Let 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 off to 3 de...

Discrete Mathematics·NAT·easy
PYQ 20

Let G = (V, E) be a directed, weighted graph with weight function w: E $$ \to $$ R. For some function f: V $$ \to $$ R, for each edge (u, v) $$ \in $$ E, define w'(u, v) as w(u, v)...

Data Structures·MCQ·medium·✓ keyed
PYQ 21

In 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 elements is k...

Data Structures·MCQ·medium·✓ keyed
PYQ 22

Consider a paging system that uses a 1-level page table residing in main memory and a TLB for address translation. Each main memory access takes 100 ns and TLB lookup takes 20 ns....

Operating Systems·NAT·hard
PYQ 23

Which one of the following is used to represent the supporting many-one relationships of a weak entity set in an entity-relationship diagram?

Database Management System·MCQ·easy·✓ keyed
PYQ 24

A 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 register name, a...

Computer Organization·NAT·medium
PYQ 25

For 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 $$\sum\limits_{i = 1}^n {{a_i}{x_i}} $$ is a...

Discrete Mathematics·NAT·medium
PYQ 26

Consider the following C program. #include < stdio.h > 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\n”...

Data Structures·NAT·medium
PYQ 27

The 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?

Data Structures·MCQ·easy·✓ keyed
PYQ 28

Consider a graph G = (V, E), where V = {v 1 , v 2 , ...., v 100 }, E = {(v i , v j ) | 1 ≤ i < j ≤ 100}, and weight of the edge (v i , v j ) is |i - j|. The weight of the minimum s...

Algorithms·NAT·easy
PYQ 29

Let 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) $$ \in $$ V $$ \t...

Algorithms·MCQ·medium·✓ keyed
PYQ 30

Select the word that fits the analogy: Cook : Cook :: Fly : _____

General Aptitude·MCQ·easy·✓ keyed
PYQ 31

Consider 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 for a router...

Computer Networks·STMT·medium·✓ keyed
PYQ 32

The 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 _______.

Discrete Mathematics·NAT·hard
PYQ 33

A 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 register will move...

Digital Logic·NAT·easy
PYQ 34

Consider 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 processor. Overhea...

Computer Organization·NAT·medium
PYQ 35

Consider 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 polling to id...

Computer Organization·STMT·medium·✓ keyed
PYQ 36

Consider the following grammar. S $$ \to $$ aSB| d B $$ \to $$ b The number of reduction steps taken by a bottom-up parser while accepting the string aaadbbb is _______.

Compiler Design·NAT·easy
PYQ 37

A direct mapped cache memory of 1 MB has a block ize of 256 bytes. The cache has an access time of 3 ns and a hit rate of 94%. During a cache miss, it takes 20 ns to bring the firs...

Computer Organization·NAT·medium
PYQ 38

Consider 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), (R, 110)...

Operating Systems·MCQ·medium·✓ keyed
PYQ 39

Consider 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...

Programming Languages·NAT·medium
PYQ 40

If 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 ____.

Digital Logic·NAT·easy
PYQ 41

Consider 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 of smaller...

Operating Systems·MCQ·medium·✓ keyed
PYQ 42

His knowledge of the subject was excellent but his classroom performance was ______.

General Aptitude·MCQ·easy·✓ keyed
PYQ 43

What 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?

Data Structures·MCQ·easy·✓ keyed
PYQ 44

An organization requires a range of IP addresses to assign one to each of its 1500 computers. The organization has approached an Internet Service Provider (ISP) for this task. The...

Computer Networks·MCQ·medium·✓ keyed
PYQ 45

Two straight lines are drawn perpendicular to each other in X-Y plane. If $$\alpha $$ and $$\beta $$ are the acute angles the straight lines make with the X-axis, then $$\alpha $$...

General Aptitude·MCQ·easy·✓ keyed
PYQ 46

Consider a double hashing scheme in which the primary hash function is h 1 (k)=k mod 23, and the secondary hash function is h 2 (k)=1+(k mod 19). Assume that the table size is 23....

Data Structures·NAT·easy
PYQ 47

A 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. Consider th...

Computer Organization·MCQ·medium·✓ keyed
PYQ 48

Consider 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 tree/disk...

Database Management System·NAT·medium
PYQ 49

What is the worst case time complexity of inserting n 2 elements into an AVL-tree with n elements initially?

Data Structures·MCQ·medium·✓ keyed
PYQ 50

Consider the language L = { $${a^n}|n \ge 0$$ } $$ \cup $$ { $${a^n}{b^n}|n \ge 0$$ } and the following statements. I. L is deterministic context-free. II. L is context-free but no...

Theory of Computation·STMT·medium·✓ keyed
PYQ 51

Consider the following languages. L 1 = {wxyx | w, x, y ∈ (0 + 1) + } L 2 = {xy | x, y ∈ (a + b)*, |x| = |y|, x ≠ y} Which one of the following is TRUE?

Theory of Computation·MCQ·hard·✓ keyed
PYQ 52

Consider the following statements. I. If L 1 $$ \cup $$ L 2 is regular, then both L 1 and L 2 must be regular. II. The class of regular languages is closed under infinite union. Wh...

Theory of Computation·STMT·easy·✓ keyed
PYQ 53

Consider the following language. L = {x $$ \in $$ {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 ___...

Theory of Computation·NAT·medium
PYQ 54

Which of the following languages are undecidable? Note that $$\langle M\rangle $$ indicates encoding of the Turing machine M. L 1 = $$\left\{ {\langle M\rangle |L\left( M \right) =...

Theory of Computation·MCQ·medium·✓ keyed
PYQ 55

Which one of the following regular expressions represents the set of all binary strings with an odd number of 1’s?

Theory of Computation·MCQ·medium
PYQ 56

For parameters a and b, both of which are $$\omega \left( 1 \right)$$, T(n) = $$T\left( {{n^{1/a}}} \right) + 1$$, and T(b) = 1. Then T(n) is

Algorithms·MCQ·medium·✓ keyed