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

GATE 2003 CSE & IT

62 questions across 1 session

PYQ 1

Which of the following is NOT an advantage of using shared, dynamically linked libraries as opposed to using statically linked libraries?

Compiler Design·MCQ·medium·✓ keyed
PYQ 2

Consider the following class definitions in a hypothetical Object Oriented language that supports inheritance and uses dynamic binding. The language should not be assumed to be eit...

Programming Languages·MCQ·medium·✓ keyed
PYQ 3

Consider the function f defined below. struct item { int data; struct item * next; }; int f(struct item *p) { return ((p == NULL) || (p ->next == NULL) || ((p->data <= p -> next ->...

Data Structures·MCQ·easy·✓ keyed
PYQ 4

$$\mathop {Lim}\limits_{x \to 0} \,{{Si{n^2}x} \over x} = \_\_\_\_.$$

Discrete Mathematics·MCQ·easy·✓ keyed
PYQ 5

Let $$A$$ be a sequence of $$8$$ distinct integers sorted in ascending order. How many distinct pairs of sequence, $$B$$ and $$C$$ are there such that i) Each is sorted in ascendin...

Discrete Mathematics·MCQ·easy·✓ keyed
PYQ 6

Consider the grammar shown below $$\eqalign{ & S \to iEtSS'\,|\,\,a \cr & S' \to eS\,|\,\,\varepsilon \cr & E \to b \cr} $$ In the predictive parse table, $$M$$, of this grammar, t...

Compiler Design·MCQ·medium·✓ keyed
PYQ 7

The following resolution rule is used in logic programming. Derive clause $$\left( {P \vee Q} \right)$$ from clauses $$\left( {P \vee R} \right)$$, $$\left( {Q \vee \neg R} \right)...

Discrete Mathematics·MCQ·medium·✓ keyed
PYQ 8

Let S be a stack of size n >= 1. Starting with the empty stack, suppose we push the first n natural numbers in sequence, and then perform n pop operations. Assume that Push and Pop...

Data Structures·MCQ·medium·✓ keyed
PYQ 9

Suppose the numbers 7, 5, 1, 8, 3, 6, 0, 9, 4, 2 are inserted in that order into an initially empty binary search tree. The binary search tree uses the usual ordering on natural nu...

Data Structures·MCQ·easy·✓ keyed
PYQ 10

Assume the following C variable declaration int * A[10], B[10][10]; Of the following expressions I. A[2] II. A[2] [3] III. B[1] IV. B[2] [3] Which will not give compile-time errors...

Programming Languages·MCQ·medium·✓ keyed
PYQ 11

In a system with $$32$$ bit virtual addresses and $$1$$ $$KB$$ page size, use of one-level page tables for virtual to physical address translation is not practical because of

Operating Systems·MCQ·easy·✓ keyed
PYQ 12

Consider the following system of linear equations $$$\left[ {\matrix{ 2 & 1 & { - 4} \cr 4 & 3 & { - 12} \cr 1 & 2 & { - 8} \cr } } \right]\left[ {\matrix{ x \cr y \cr z \cr } } \r...

Discrete Mathematics·MCQ·medium·✓ keyed
PYQ 13

Which of the following statements is FALSE?

Programming Languages·MCQ·medium·✓ keyed
PYQ 14

A processor uses $$2$$-level page tables for virtual to physical address translation. Page tables for both levels are stored in the main memory. Virtual and physical addresses are...

Operating Systems·MCQ·medium·✓ keyed
PYQ 15

Consider the grammar shown below. $$\eqalign{ & S \to CC \cr & C \to cC\,|\,d \cr} $$ This grammar is

Compiler Design·MCQ·easy·✓ keyed
PYQ 16

Which of the following is NOT an advantage of using shared, dynamically linked libraries as opposed to using statically linked libraries?

Operating Systems·MCQ·medium·✓ keyed
PYQ 17

Which of the following functionalities must be implemented by a transport protocol over and above the network protocol?

Computer Networks·MCQ·easy·✓ keyed
PYQ 18

Host A is sending data to host B over a full duplex link. A and B are using the sliding window protocol for flow control. The send and receive window sizes are 5 packets each. Data...

Computer Networks·MCQ·medium·✓ keyed
PYQ 19

Which of the following suffices to convert an arbitrary CFG to an LL(1) grammar?

Compiler Design·MCQ·easy·✓ keyed
PYQ 20

Suppose we want to synchronize two concurrent processes P and Q using binary semaphores S and T. The code for the processes P and Q is shown below. Process P: while(1){ W: Print '0...

Operating Systems·MCQ·medium·✓ keyed
PYQ 21

Which of the following scenarios may lead to an irrecoverable error in a database system?

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

Using a larger block size in a fixed block size file system leads to

Operating Systems·MCQ·easy·✓ keyed
PYQ 23

Which of the following statements is FALSE ?

Compiler Design·MCQ·medium·✓ keyed
PYQ 24

How many perfect matchings are there in a complete graph of 6 vertices?

Discrete Mathematics·MCQ·medium·✓ keyed
PYQ 25

Consider the translation scheme shown below $$\eqalign{ & S \to TR \cr & R \to + T\left\{ {pr{\mathop{\rm int}} (' + ');} \right\}\,R\,|\,\varepsilon \cr & T \to num\,\left\{ {pr{\...

Compiler Design·MCQ·medium·✓ keyed
PYQ 26

A 2 km long broadcast LAN has 10 7 bps bandwidth and uses CSMA/CD. The signal travels along the wire at 2 × 10 8 m/s. What is the minimum packet size that can be used on this netwo...

Computer Networks·MCQ·✓ keyed
PYQ 27

Consider the C program shown below. #include < stdio.h > #define print(x) printf("%d ", x) int x; void Q(int z) { z += x; print(z); } void P(int *y) { int x = *y+2; Q(x); *y = x-1;...

Programming Languages·MCQ·medium·✓ keyed
PYQ 28

For a pipelined $$CPU$$ with a single $$ALU$$, consider the following situations $$1.\,\,\,\,\,$$ The $$j+1$$ instruction uses the result of the $$j$$-$$th$$ instruction as an oper...

Computer Organization·STMT·easy·✓ keyed
PYQ 29

$$A$$ system of equations represented by $$AX=0$$ where $$X$$ is a column vector of unknown and $$A$$ is a square matrix containing coefficients has a non-trival solution when $$A$...

Discrete Mathematics·MCQ·easy·✓ keyed
PYQ 30

The following program fragment is written in a programming language that allows global variables and does not allow nested declarations of functions. global int i = 100, j = 5; voi...

Programming Languages·MCQ·hard·✓ keyed
PYQ 31

Assume that the SLR parser for a grammar G has n 1 states and the LALR parser for G has n 2 states. The relationship between n 1 and n 2 is

Compiler Design·MCQ·easy·✓ keyed
PYQ 32

$$A$$ graph $$G$$ $$=$$ $$(V, E)$$ satisfies $$\left| E \right| \le \,3\left| V \right| - 6.$$ The min-degree of $$G$$ is defined as $$\mathop {\min }\limits_{v \in V} \left\{ {{{\...

Discrete Mathematics·MCQ·easy·✓ keyed
PYQ 33

$$n$$ couples are invited to a party with the condition that every husband should be accompanied by his wife. However, a wife need not be accompanied by her husband. The number of...

Discrete Mathematics·MCQ·easy·✓ keyed
PYQ 34

Consider the following SQL query: Select distinct a 1 , a 2 , ..., a n From r 1 , r 2 , ..., r m Where P; For an arbitrary predicate P, this query is equivalent to which of the fol...

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

Let G=(V,E) be an undirected graph with a subgraph G 1 =(V 1 ,E 1 ). Weights are assigned to edges of G as follows. $$$w(e) = \begin{cases} 0 \text{, if } e \in E_1 \\1 \text{, oth...

Algorithms·MCQ·medium·✓ keyed
PYQ 36

Ram and Shyam have been asked to show that a certain problem Π is NP-complete. Ram shows a polynomial time reduction from the 3-SAT problem to Π, and Shyam shows a polynomial time...

Algorithms·MCQ·easy·✓ keyed
PYQ 37

In a heap with n elements with the smallest element at the root, the 7 th smallest element can be found in time

Algorithms·MCQ·medium·✓ keyed
PYQ 38

Let G = (V, E) be a directed graph with n vertices. A path from v i to v j in G is sequence of vertices (v i , v i +1, ……., v j ) such that (v k , v k +1) ∈ E for all k in i throug...

Algorithms·MCQ·hard·✓ keyed
PYQ 39

Consider an array multiplier for multiplying two n bit numbers. If each gate in the circuit has a unit delay, the total delay of the multiplier is

Algorithms·MCQ·medium·✓ keyed
PYQ 40

The following program fragment is written in a programming language that allows global variables and does not allow nested declarations of functions. global int i = 100, j = 5; voi...

Programming Languages·MCQ·medium·✓ keyed
PYQ 41

The usual $$\Theta ({n^2})$$ implementation of Insertion Sort to sort an array uses linear search to identify the position where an element is to be inserted into the already sorte...

Algorithms·MCQ·easy·✓ keyed
PYQ 42

Consider the set of relations shown below and the SQL query that follows. Students: (Roll_number, Name, Date_of_birth) Courses: (Course number, Course_name, Instructor) Grades: (Ro...

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

$$m$$ identical balls are to be placed in $$n$$ distinct bags. You are given that $$m \ge kn$$, where $$k$$ is a natural number $$ \ge 1$$. In how many ways can the balls be placed...

Discrete Mathematics·MCQ·medium·✓ keyed
PYQ 44

A uni-processor computer system only has two processes, both of which alternate $$10$$ $$ms$$ $$CPU$$ bursts with $$90$$ $$ms$$ $${\rm I}/O$$ bursts. Both the processes were create...

Operating Systems·MCQ·medium·✓ keyed
PYQ 45

A processor uses $$2$$-level page tables for virtual to physical address translation. Page tables for both levels are stored in the main memory. Virtual and physical addresses are...

Operating Systems·MCQ·hard·✓ keyed
PYQ 46

The subnet mask for a particular network is 255.255.31.0. Which of the following pairs of IP addresses could belong to this network?

Computer Networks·MCQ·medium·✓ keyed
PYQ 47

Let $$G$$ be an arbitrary graph with $$n$$ nodes and $$k$$ components. If a vertex is removed from $$G$$, the number of components in the resultant graph must necessarily lie betwe...

Discrete Mathematics·MCQ·medium·✓ keyed
PYQ 48

A 1- input, 2- output synchronous sequential circuit behaves as follows. Let $${z_k},\,{n_k}$$ denote the number of $$0’s$$ and $$1’s$$ respectively in initial $$k$$ bits of the in...

Digital Logic·MCQ·medium·✓ keyed
PYQ 49

Suppose we want to synchronize two concurrent processes P and Q using binary semaphores S and T. The code for the processes P and Q is shown below. Process P: while(1){ W: Print '0...

Operating Systems·MCQ·medium·✓ keyed
PYQ 50

Which of the following assertions is FALSE about the Internet Protocol (IP)?

Computer Networks·MCQ·medium·✓ keyed
PYQ 51

Let P(E) denote the probability of the event E. Given P(A) = 1, P(B) = $${\raise0.5ex\hbox{$\scriptstyle 1$} \kern-0.1em/\kern-0.15em \lower0.25ex\hbox{$\scriptstyle 2$}}$$, the va...

Discrete Mathematics·MCQ·easy·✓ keyed
PYQ 52

Consider the following functional dependencies in a database. $$\eqalign{ & \,\,\,\,Date\,\,of\,\,Birth\,\, \to \,\,Age \cr & \,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,Ag...

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

In a bottom-up evaluation of a syntax directed definition, inherited attributes can

Compiler Design·MCQ·medium·✓ keyed
PYQ 54

Consider the following C function. float f,(float x, int y) { float p, s; int i; for (s=1,p=1,i=1; i < y; i++) { p *= x/i; s+=p; } return s; } For large values of y, the return val...

Programming Languages·MCQ·medium·✓ keyed
PYQ 55

Assuming all numbers are in $$2's$$ complement representation, which of the following numbers is divisible by $$11111011?$$

Digital Logic·MCQ·easy·✓ keyed
PYQ 56

Nobody knows yet if $$P=NP$$. Consider the language $$L$$ defined as follows $$L = \left\{ {\matrix{ {{{\left( {0 + 1} \right)}^ * }\,\,\,if\,\,P = NP} \cr {\,\,\,\,\,\,\,\phi \,\,...

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

Define Languages $${L_0}$$ and $${L_1}$$ as follows $${L_0} = \left\{ { < M,\,w,\,0 > \left| {M\,\,} \right.} \right.$$ halts on $$\left. w \right\}$$ $${L_1} = \left\{ { < M,w,1 >...

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

The regular expression $${0^ * }\left( {{{10}^ * }} \right){}^ * $$denotes the same set as

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

Consider the set $$\sum {^ * } $$ of all strings over the alphabet $$\,\sum { = \,\,\,\left\{ {0,\,\,\,1} \right\}.\sum {^ * } } $$ with the concatenation operator for strings

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

If the strings of a language $$L$$ can be effectively enumerated in lexicographic (i.e., alphabetic$$(c)$$ order, which of the following statements is true?

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

Consider the following three claims I. (n + k) m = $$\Theta \,({n^m})$$ where k and m are constants II. 2 n+1 = O(2 n ) III. 2 2n = O(2 2n ) Which of those claims are correct?

Algorithms·STMT·easy·✓ keyed
PYQ 62

The cube root of a natural number n is defined as the largest natural number m such that $${m^3} \le n$$. The complexity of computing the cube root of n (n is represented in binary...

Algorithms·MCQ·medium·✓ keyed