• Courses
  • Tutorials
  • Jobs
  • Practice
  • Contests

GATE CS 2013

Question 1

A binary operation [Tex]\\oplus[/Tex] on a set of integers is defined as x [Tex]\\oplus[/Tex] y = x2 + y2. Which one of the following statements is TRUE about [Tex]\\oplus[/Tex]?
  • Commutative but not associative
  • Both commutative and associative
  • Associative but not commutative
  • Neither commutative nor associative

Question 2

The smallest integer that can be represented by an 8-bit number in 2’s complement form is
  • -256
  • -128
  • -127
  • 0

Question 3

In the following truth table, V = 1 if and only if the input is valid. gatecs20133 What function does the truth table represent?
  • Priority encoder
  • Decoder
  • Multiplexer
  • Demultiplexer

Question 4

Which one of the following is the tightest upper bound that represents the number of swaps required to sort n numbers using selection sort?
  • O(log n)
  • O(n)
  • O(nLogn)
  • O(n^2)

Question 5

Which one of the following is the tightest upper bound that represents the time complexity of inserting an object into a binary search tree of n nodes?
  • O(1)
  • O(Logn)
  • O(n)
  • O(nLogn)

Question 6

Consider the languages L1 = [Tex]\\phi [/Tex]and L2 = {a}. Which one of the following represents L1 L2* U L1*

 
  • {[Tex]\epsilon [/Tex]}

  • [Tex]\phi [/Tex]

  • a*

  • {[Tex]\epsilon [/Tex],a}

Question 7

What is the maximum number of reduce moves that can be taken by a bottom-up parser for a grammar with no epsilon- and unit-production (i.e., of type A -> є and A -> a) to parse a string with n tokens?

  • n/2

  • n-1

  • 2n-1

  • 2n

Question 8

A scheduling algorithm assigns priority proportional to the waiting time of a process. Every process starts with priority zero (the lowest priority). The scheduler re-evaluates the process priorities every T time units and decides the next process to schedule. Which one of the following is TRUE if the processes have no I/O operations and all arrive at time zero?
  • This algorithm is equivalent to the first-come-first-serve algorithm
  • This algorithm is equivalent to the round-robin algorithm.
  • This algorithm is equivalent to the shortest-job-first algorithm..
  • This algorithm is equivalent to the shortest-remaining-time-first algorithm

Question 9

Match the problem domains in GROUP I with the solution technologies in GROUP II
GROUP I                                         GROUP II
(P) Service oriented computing                 (1) Interoperability
(Q) Heterogeneous communicating systems        (2) BPMN
(R) Information representation                 (3) Publish-find-bind
(S) Process description                        (4) XML 
  • P-1, Q-2, R-3, S-4
  • P-3, Q-4, R-2, S-1
  • P-3, Q-1, R-4, S-2
  • P-4, Q-3, R-2, S-1

Question 10

Three concurrent processes X, Y, and Z execute three different code segments that access and update certain shared variables. Process X executes the P operation (i.e., wait) on semaphores a, b and c; process Y executes the P operation on semaphores b, c and d; process Z executes the P operation on semaphores c, d, and a before entering the respective code segments. After completing the execution of its code segment, each process invokes the V operation (i.e., signal) on its three semaphores. All semaphores are binary semaphores initialized to one. Which one of the following represents a deadlock-free order of invoking the P operations by the processes?
  • X: P(a)P(b)P(c) Y: P(b)P(c)P(d) Z: P(c)P(d)P(a)
  • X: P(b)P(a)P(c) Y: P(b)P(c)P(d) Z: P(a)P(c)P(d)
  • X: P(b)P(a)P(c) Y: P(c)P(b)P(d) Z: P(a)P(c)P(d)
  • X: P(a)P(b)P(c) Y: P(c)P(b)P(d) Z: P(c)P(d)P(a)

There are 58 questions to complete.

Last Updated :
Take a part in the ongoing discussion