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

GATE 2012 CSE & IT

45 questions across 1 session

PYQ 1

Fetch_And_Add (X, i) is an atomic Read-Modify-Write instruction that reads the value of memory location X, increments it by the value i, and returns the old value of X. It is used...

Operating Systems·MCQ·hard·✓ keyed
PYQ 2

Let $$G$$ be a complete undirected graph on $$6$$ vertices. If vertices of $$G$$ $$\,\,\,\,$$ are labeled, then the number of distinct cycles of length $$4$$ in $$G$$ is equal to

Discrete Mathematics·MCQ·medium·✓ keyed
PYQ 3

Consider the following logical inferences. $${{\rm I}_1}:$$ If it rains then the cricket match will not be played. The cricket match was played. Inference: there was no rain. $${{\...

Discrete Mathematics·MCQ·easy·✓ keyed
PYQ 4

How many onto (or subjective) functions are there form an n-element $$(n\, \ge \,2)$$ set to a 2-element set ?

Discrete Mathematics·MCQ·✓ keyed
PYQ 5

Consider the virtual page reference string $$$1,2,3,2,4,1,3,2,4,1$$$ On a demand paged virtual memory system running on a computer system that has main memory size of $$3$$ page fr...

Operating Systems·MCQ·medium·✓ keyed
PYQ 6

Suppose a circular queue of capacity (n – 1) elements is implemented with an array of n elements. Assume that the insertion and deletion operations are carried out using REAR and F...

Data Structures·MCQ·easy·✓ keyed
PYQ 7

Let G be a weighted graph with edge weights greater than one and G' be the graph constructed by squaring the weights of edges in G. Let T and T' be the minimum spanning trees of G...

Data Structures·MCQ·medium·✓ keyed
PYQ 8

Register renaming is done in pipelined processors

Computer Organization·MCQ·easy·✓ keyed
PYQ 9

Let $$A$$ be the $$2 \times 2$$ matrix with elements $${a_{11}} = {a_{12}} = {a_{21}} = + 1$$ and $${a_{22}} = - 1$$. Then the eigen values of the matrix $${A^{19}}$$ are

Discrete Mathematics·MCQ·medium·✓ keyed
PYQ 10

An Internet Service Provider (ISP) has the following chunk of CIDR-based IP addresses available with it: 245.248.128.0/20. The ISP wants to give half of this chunk of addresses to...

Computer Networks·MCQ·medium·✓ keyed
PYQ 11

Which of the following transport layer protocols is used to support electronic mail?

Computer Networks·MCQ·easy·✓ keyed
PYQ 12

Consider an instance of TCP’s Additive Increase Multiplicative Decrease (AIMD) algorithm where the window size at the start of the slow start phase is 2 MSS and the threshold at th...

Computer Networks·MCQ·medium·✓ keyed
PYQ 13

What is the correct translation of the following statement into mathematical logic? "Some real numbers are rational"

Discrete Mathematics·MCQ·easy·✓ keyed
PYQ 14

Suppose R 1 ( A, B) and R 2 ( C, D) are two relation schemas. Let r 1 and r 2 be the corresponding relation instances. B is a foreign key that refers to C in R 2 . If data in r 1 a...

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

A computer has a $$256$$ $$K$$ Byte, $$4$$-way set associative, write back data cache with block size of $$32$$ Bytes. The processor sends $$32$$ bit addresses to the cache control...

Computer Organization·MCQ·medium·✓ keyed
PYQ 16

The protocol data unit (PDU) for the application layer in the Internet stack is

Computer Networks·MCQ·easy·✓ keyed
PYQ 17

Which of the following is TRUE?

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

In the IPv4 addressing format, the number of networks allowed under Class C addresses is

Computer Networks·MCQ·easy·✓ keyed
PYQ 19

The height of a tree is defined as the number of edges on the longest path in the tree. The function shown in the pseudocode below is invoked as height (root) to compute the height...

Data Structures·MCQ·medium·✓ keyed
PYQ 20

The decimal value $$0.5$$ in $$IEEE$$ single precision floating point representation has

Computer Organization·MCQ·easy·✓ keyed
PYQ 21

Consider a source computer (S) transmitting a file of size 10 6 bits to a destination computer (D) over a network of two routers (R 1 and R 2 ) and three links (L 1 , L 2 , and L 3...

Computer Networks·MCQ·medium·✓ keyed
PYQ 22

A list of n strings, each of length n, is sorted into lexicographic order using the merge-sort algorithm. The worst case running time of this computation is

Algorithms·MCQ·medium·✓ keyed
PYQ 23

The worst case running time to search for an element in a balanced binary search tree with n2 n elements is

Algorithms·MCQ·easy·✓ keyed
PYQ 24

Consider the following relations A, B and C: A ID Name Age 12 Arun 60 15 Shreya 24 99 Rohit 11 B ID Name Age 15 Shreya 24 25 Hari 40 98 Rohit 20 99 Rohit 11 C ID Phone Area 10 2200...

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

Let W(n) and A(n) denote respectively, the worst case and average case running time of an algorithm executed on an input of size n. Which of the following is ALWAYS TRUE?

Algorithms·MCQ·easy·✓ keyed
PYQ 26

A file system with 300 G Byte disk uses a file descriptor with 8 direct block addresses, 1 indirect block address and 1 doubly indirect block address. The size of each disk block i...

Operating Systems·MCQ·medium·✓ keyed
PYQ 27

Consider the $$3$$ processes, $$P1,$$ $$P2$$ and $$P3$$ shown in the table. Process Arrival Time Time Units Required P1 0 5 P2 1 7 P3 3 4 The completion order of the $$3$$ processe...

Operating Systems·MCQ·medium·✓ keyed
PYQ 28

The recurrence relation capturing the optional execution time of the Towers of Hanoi problem with $$n$$ discs is

Discrete Mathematics·MCQ·easy·✓ keyed
PYQ 29

What will be the output of the following C program segment? Char inchar = 'A'; Switch ( inchar ) { case 'A' : printf ("Choice A\ n") ; case 'B' : case 'C' : printf (“Choice B”) ; c...

Programming Languages·MCQ·easy·✓ keyed
PYQ 30

Consider the following C code segment. int a, b, c = 0; void prtFun(void); main( ) { static int a = 1; /* Line 1 */ prtFun(); a + = 1; prtFun(); printf("\n %d %d ", a, b); } void p...

Programming Languages·MCQ·medium·✓ keyed
PYQ 31

Let G be a simple undirected planner graph on 10 vertices with 15 edges. If G is a connected graph, then the number of bounded faces in any embedding of G on the plane is equal to

Discrete Mathematics·MCQ·easy·✓ keyed
PYQ 32

A process executes the code fork $$\left( {\,\,\,} \right);$$ fork $$\left( {\,\,\,} \right);$$ fork $$\left( {\,\,\,} \right);$$ The total number of child processes created is

Operating Systems·MCQ·easy·✓ keyed
PYQ 33

Which of the following statements are TRUE about an SQL query? P: An SQL query can contain a HAVING clause even if it does not have a GROUP BY clause Q: An SQL query can contain a...

Database Management System·STMT·medium·✓ keyed
PYQ 34

A computer has a $$256$$ $$K$$ Byte, $$4$$-way set associative, write back data cache with block size of $$32$$ Bytes. The processor sends $$32$$ bit addresses to the cache control...

Computer Organization·MCQ·medium·✓ keyed
PYQ 35

Consider the following relations A, B and C: A ID Name Age 12 Arun 60 15 Shreya 24 99 Rohit 11 B ID Name Age 15 Shreya 24 25 Hari 40 98 Rohit 20 99 Rohit 11 C ID Phone Area 10 2200...

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

Consider a random variable X that takes values + 1 and-1 with probability 0.5 each. The values of the cumulative distribution function F(x) at x = - 1 and + 1 are

Discrete Mathematics·MCQ·easy·✓ keyed
PYQ 37

Consider the program given below, in a block-structured pseudo-language with lexical scoping and nesting of procedures permitted. Program main; Var . . . Procedure A1; Var . . . Ca...

Programming Languages·MCQ·medium·✓ keyed
PYQ 38

Consider the following C code segment. int a, b, c = 0; void prtFun(void); main( ) { static int a = 1; /* Line 1 */ prtFun(); a + = 1; prtFun(); printf("\n %d %d ", a, b); } void p...

Programming Languages·MCQ·medium·✓ keyed
PYQ 39

Consider the function $$f\left( x \right) = \sin \left( x \right)$$ in the interval $$x \in \left[ {\pi /4,\,\,7\pi /4} \right].$$ The number and location(s) of the local minima of...

Discrete Mathematics·MCQ·easy·✓ keyed
PYQ 40

Suppose a fair six-sided die is rolled once. If the value on the die is 1, 2 or 3 the die is rolled a second time. What is the probability that the sum total of values that turn up...

Discrete Mathematics·MCQ·medium·✓ keyed
PYQ 41

Given the language L= { ab, aa, baa }, which of the following strings are in L* ? 1) abaabaaabaa 2) aaaabaaaa 3) baaaaabaaaab 4) baaaaabaa

Compiler Design·MCQ·medium·✓ keyed
PYQ 42

Consider the following transactions with data items P and Q initialized to zero: T 1 : read (P) ; read (Q) ; if P = 0 then Q : = Q + 1 ; write (Q). T 2 : read (Q) ; read (P) if Q =...

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

The amount of $$ROM$$ needed to implement a $$4$$ bit multiplier is

Computer Organization·MCQ·medium·✓ keyed
PYQ 44

Given the basic $$ER$$ and relational models, which of the following is INCORRECT?

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

Which of the following problems are decidable? $$1.$$ Does a given program ever produce an output? $$2.$$ If L is a context-free language, then, is $$\overline L $$ also context-fr...

Theory of Computation·MCQ·medium·✓ keyed