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

GATE 2000 CSE & IT

41 questions across 1 session

PYQ 1

Let $$S = \left\{ {0,1,2,3,4,5,6,7} \right\}$$ and $$ \otimes $$ denote multiplication modulo $$8$$, that is, $$x \otimes y = \left( {xy} \right)$$ mod $$8$$ (a) Prove that $$\left...

Discrete Mathematics·OTHER·medium
PYQ 2

Suppose you are given an array s[1..n] and a procedure reverse (s, i, j) which reverse the order of elements in s between positions i and j (both inclusive). What does the followin...

Data Structures·MCQ·easy·✓ keyed
PYQ 3

The value of j at the end of the execution of the following C program int incr (int i) { static int count = 0; count = count + i; return (count); } main () { int i,j; for (i = 0; i...

Programming Languages·MCQ·easy·✓ keyed
PYQ 4

Let P(S) denote the power set of a set S. Which of the following is always true?

Discrete Mathematics·MCQ·medium·✓ keyed
PYQ 5

An $$n\,\, \times \,\,n$$ array v is defined as follows v[i, j] = i - j for all i, j, $$1\,\, \le \,\,i\,\, \le \,\,n,\,1\,\, \le \,\,j\,\, \le \,\,n$$ The sum of elements of the a...

Discrete Mathematics·MCQ·easy·✓ keyed
PYQ 6

The simultaneous equations on the Boolean variables $$x, y, z$$ and $$w,$$ $$$x+y+z=1$$$ $$$xy=0$$$ $$$xz+w=1$$$ $$$xy + \overline z \overline w = 0$$$ have the following for $$x,...

Digital Logic·MCQ·easy·✓ keyed
PYQ 7

Consider the following C declaration struct { short s[5]; union { float y; long z; } u; }t; Assume that objects of the type short, float and long occupy 2 bytes, 4 bytes and 8 byte...

Programming Languages·MCQ·✓ keyed
PYQ 8

In SQL, relations can contain null values, and comparisons with null values are treated as unknown. Suppose all comparisons with a null value are treated as false. Which of the fol...

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

A relation R is defined on the set of integers as zRy if f (x + y) is even. Which of the following statements is true?

Discrete Mathematics·MCQ·easy·✓ keyed
PYQ 10

An n $$\times$$ n array v is defined as follows V [i, j] = i - j for all i, j, $$1 \le i \le n,\,1 \le j \le n$$ The sum of the elements of the array v is

Data Structures·MCQ·easy·✓ keyed
PYQ 11

The following C declarations struct node{ int i: float j; }; struct node *s[10]; define s to be

Programming Languages·MCQ·easy·✓ keyed
PYQ 12

The determinant of the matrix $$$\left[ {\matrix{ 2 & 0 & 0 & 0 \cr 8 & 1 & 7 & 2 \cr 2 & 0 & 2 & 0 \cr 9 & 0 & 6 & 1 \cr } } \right]\,\,is$$$

Discrete Mathematics·MCQ·easy·✓ keyed
PYQ 13

B + -trees are preferred to binary trees in databases because

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

Suppose the time to service a page fault is on the average $$10$$ milliseconds, while a memory access takes $$1$$ microsecond. Then a $$99.99$$% hit ratio results in average memory...

Operating Systems·MCQ·easy·✓ keyed
PYQ 15

Let G be an undirected graph. Consider a depth-first traversal of G, and let T be the resulting depth-first search tree. Let u be a vertex in G and let v be the first new (unvisite...

Data Structures·MCQ·medium·✓ keyed
PYQ 16

Given the relations employee (name, salary, deptno) , and department (deptno, deptname, address) Which of the following queries cannot be expressed using the basic relational algeb...

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

Let LASTPOST, LASTIN and LASTPRE denote the last vertex visited in a postorder, inorder and preorder traversal. Respectively, of a complete binary tree. Which of the following is a...

Data Structures·MCQ·medium·✓ keyed
PYQ 18

Let m[0] ..m[4] be mutexes (binary semaphores) and P[0] ...P[4] be processes. Suppose each process P[i] executes the following: wait (m[i]); wait (m(m[(i+1) mod 4]))0; ....... rele...

Operating Systems·MCQ·medium·✓ keyed
PYQ 19

A multiset is an unordered collection of elements where elements may repeat ay number of times. The size of a multiset is the number of elements in it counting repetitions. (a) wha...

Discrete Mathematics·OTHER·medium
PYQ 20

Comparing the time $$T1$$ taken for a single instruction on a pipelined $$CPU$$ with time $$T2$$ taken on a non-pipelined but identical $$CPU,$$ we can say that

Computer Organization·MCQ·easy·✓ keyed
PYQ 21

Given the following relation instance $$\eqalign{ & X\,\,\,\,\,Y\,\,\,\,\,Z \cr & \,\,1\,\,\,\,\,\,4\,\,\,\,\,\,2 \cr & \,\,1\,\,\,\,\,\,5\,\,\,\,\,\,3 \cr & \,\,1\,\,\,\,\,\,6\,\,...

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

The number $$43$$ in $$2's$$ complement representation is

Digital Logic·MCQ·easy·✓ keyed
PYQ 23

Let s be a sorted array of n integers. Let t(n) denote the time taken for the most efficient algorithm to determined if there are two elements with sum less than 1000 in s. which o...

Algorithms·MCQ·easy·✓ keyed
PYQ 24

Consider the following functions $$f(n) = 3{n^{\sqrt n }}$$ $$g(n) = {2^{\sqrt n {{\log }_2}n}}$$ $$h(n) = n!$$ Which of the following is true?

Algorithms·MCQ·medium·✓ keyed
PYQ 25

Let G be an undirected connected graph with distinct edge weight. Let emax be the edge with maximum weight and emin the edge with minimum weight. Which of the following statements...

Algorithms·MCQ·medium·✓ keyed
PYQ 26

The most appropriate matching for the following pairs $$X:$$ Indirect addressing $$Y:$$ Immediate addressing $$Z:$$ Auto decrement addressing is $$1:$$ Loops $$2:$$ Pointers $$3.$$...

Computer Organization·MTF·easy·✓ keyed
PYQ 27

Consider the following nested representation of binary trees: (X Y Z) indicates Y and Z are the left and right sub stress, respectively, of node X. Note that Y and Z may be NULL, o...

Data Structures·MCQ·easy·✓ keyed
PYQ 28

A graphics card has on board memory of $$1$$ $$MB.$$ Which of the following modes can the card not support?

Computer Organization·MCQ·easy·✓ keyed
PYQ 29

Which of the following is NOT a valid deadlock prevention scheme?

Operating Systems·MCQ·medium·✓ keyed
PYQ 30

Let $$a, b, c, d$$ be propositions. Assume that the equivalences $$a \leftrightarrow \left( {b \vee \neg b} \right)$$ and $$b \leftrightarrow c$$ hold. Then the truth value of the...

Discrete Mathematics·MCQ·easy·✓ keyed
PYQ 31

An instruction pipeline has five stages where each stage takes $$2$$ nanoseconds and all instructions use all five stages. Branch instructions are not overlapped, i.e., the instruc...

Computer Organization·OTHER·medium
PYQ 32

Given relations r( w, x ) and s( y, z ), the result of select distinct w,x from r, s; is guaranteed to be same as r, provided

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

The number of tokens in the following C statement is: printf("i = %d, &i = %x",i, &i);

Compiler Design·MCQ·easy·✓ keyed
PYQ 34

The most appropriate matching for the following pairs X: m=malloc(5); m= NULL; Y: free(n); n->value = 5; Z: char *p; *p='a'; 1: using dangling 2: using uninitialized pointers 3. lo...

Programming Languages·MTF·easy·✓ keyed
PYQ 35

The minimum number of cards to be dealt from an arbitrarily shuffled deck of 52 cards to guarantee that three cards are from same suit is

Discrete Mathematics·MCQ·easy·✓ keyed
PYQ 36

$${{E_1}}$$ and $${{E_2}}$$ are events in a probability space satisfying the following constraints: $$ \bullet $$ $$\Pr \,\,({E_1}) = \Pr \,({E_2})$$ $$ \bullet $$ $$\Pr \,\,({E_1}...

Discrete Mathematics·MCQ·easy·✓ keyed
PYQ 37

The solution to the recurrence equation $$T\left( {{2^k}} \right)$$ $$ = 3T\left( {{2^{k - 1}}} \right) + 1$$, $$T\left( 1 \right) = 1$$ is:

Discrete Mathematics·MCQ·medium·✓ keyed
PYQ 38

What can be said about a regular language $$L$$ over $$\left\{ a \right\}$$ whose minimal finite state automation has two states?

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

Let $$L$$ denote the language generated by the grammar $$S \to 0S\left. 0 \right|00.$$ Which one of the following is true?

Theory of Computation·MCQ·easy·✓ keyed
PYQ 40

Consider the following decision problems : $${P_1}$$ Does a given finite state machine accept a given string $${P_2}$$ Does a given context free grammar generate an infinite number...

Theory of Computation·MCQ·easy·✓ keyed
PYQ 41

Let $$S$$ and $$T$$ be languages over $$\sum { = \left\{ {a,b} \right\}} $$ represented by the regular expressions $${\left( {a + {b^ * }} \right)^ * }$$ and $$\,{\left( {a + b} \r...

Theory of Computation·MCQ·easy·✓ keyed