Subjects in this paper

GATE CS 2013 CS questions

Q1

Discrete MathematicsMCQ1 mark−1/3 if wrong
A binary operation ⊕\oplus on a set of integers is defined as x⊕y=x2+y2x \oplus y = x^2 + y^2. Which one of the following statements is TRUE about ⊕\oplus?
Show answer without attempting

Answer: A

Q2

Probability and StatisticsMCQ1 mark−1/3 if wrong
Suppose pp is the number of cars per minute passing through a certain road junction between 5 PM and 6 PM, and pp has a Poisson distribution with mean 3. What is the probability of observing fewer than 3 cars during any given minute in this interval?
Show answer without attempting

Answer: C

Q3

Linear AlgebraMCQ1 mark−1/3 if wrong
Which one of the following does NOT equal ∣1xx21yy21zz2∣\begin{vmatrix} 1 & x & x^2 \\ 1 & y & y^2 \\ 1 & z & z^2 \end{vmatrix}?
Show answer without attempting

Answer: A

Q4

Number Representation and ArithmeticMCQ1 mark−1/3 if wrong
The smallest integer that can be represented by an 8-bit number in 2's complement form is
Show answer without attempting

Answer: B

Q5

Combinational CircuitsMCQ1 mark−1/3 if wrong
In the following truth table, V=1V = 1 if and only if the input is valid. Inputs are D0D_0 to D3D_3; outputs are X0X_0, X1X_1 and VV.
D0D_0D1D_1D2D_2D3D_3X0X_0X1X_1VV
0000xx0
1000001
x100011
xx10101
xxx1111
What function does the truth table represent?
Show answer without attempting

Answer: A

Q6

Searching Sorting and HashingMCQ1 mark−1/3 if wrong
Which one of the following is the tightest upper bound that represents the number of swaps required to sort nn numbers using selection sort?
Show answer without attempting

Answer: B

Q7

Tree Data StructuresMCQ1 mark−1/3 if wrong
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 nn nodes?
Show answer without attempting

Answer: C

Q8

Regular LanguagesMCQ1 mark−1/3 if wrong
Consider the languages L1=ΦL_1 = \Phi and L2={a}L_2 = \{a\}. Which one of the following represents L1L2∗∪L1∗L_1 L_2^* \cup L_1^*?
Show answer without attempting

Answer: A

Q9

ParsingMCQ1 mark−1/3 if wrong
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→ϵA \to \epsilon and A→aA \to a) to parse a string with nn tokens?
Show answer without attempting

Answer: B

Q10

SchedulingMCQ1 mark−1/3 if wrong
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 TT 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?
Show answer without attempting

Answer: B

Q11

Application LayerMCQ1 mark−1/3 if wrong
Match the problem domains in GROUP I with the solution technologies in GROUP II.
GROUP IGROUP 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
Show answer without attempting

Answer: C

Q12

Transport LayerMCQ1 mark−1/3 if wrong
The transport layer protocols used for real time multimedia, file transfer, DNS and email, respectively are
Show answer without attempting

Answer: C

Q13

Transport LayerMCQ1 mark−1/3 if wrong
Using public key cryptography, X adds a digital signature σ\sigma to message MM, encrypts ⟨M,σ⟩\langle M, \sigma \rangle, and sends it to Y, where it is decrypted. Which one of the following sequences of keys is used for the operations?
Show answer without attempting

Answer: D

Q14

Layering and SwitchingMCQ1 mark−1/3 if wrong
Assume that source S and destination D are connected through two intermediate routers labeled R. Determine how many times each packet has to visit the network layer and the data link layer during a transmission from S to D.
Question figure
Show answer without attempting

Answer: C

Q15

Storage and IndexingMCQ1 mark−1/3 if wrong
An index is clustered, if
Show answer without attempting

Answer: C

Q16

DeadlocksMCQ1 mark−1/3 if wrong
Three concurrent processes X, Y, and Z execute three different code segments that access and update certain shared variables. Process X executes the PP operation (i.e., wait) on semaphores aa, bb and cc; process Y executes the PP operation on semaphores bb, cc and dd; process Z executes the PP operation on semaphores cc, dd, and aa before entering the respective code segments. After completing the execution of its code segment, each process invokes the VV 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 PP operations by the processes?
Show answer without attempting

Answer: B

Q17

ComputabilityMCQ1 mark−1/3 if wrong
Which of the following statements is/are FALSE?

1. For every non-deterministic Turing machine, there exists an equivalent deterministic Turing machine.
2. Turing recognizable languages are closed under union and complementation.
3. Turing decidable languages are closed under intersection and complementation.
4. Turing recognizable languages are closed under union and intersection.
Show answer without attempting

Answer: C

Q18

Algorithm DesignMCQ1 mark−1/3 if wrong
Which of the following statements are TRUE?

1. The problem of determining whether there exists a cycle in an undirected graph is in P.
2. The problem of determining whether there exists a cycle in an undirected graph is in NP.
3. If a problem A is NP-Complete, there exists a non-deterministic polynomial time algorithm to solve A.
Show answer without attempting

Answer: A

Q19

Graph AlgorithmsMCQ1 mark−1/3 if wrong
What is the time complexity of Bellman-Ford single-source shortest path algorithm on a complete graph of nn vertices?
Show answer without attempting

Answer: C

Q20

Memory HierarchyMCQ1 mark−1/3 if wrong
In a kk-way set associative cache, the cache is divided into vv sets, each of which consists of kk lines. The lines of a set are placed in sequence one after another. The lines in set ss are sequenced before the lines in set (s+1)(s+1). The main memory blocks are numbered 0 onwards. The main memory block numbered jj must be mapped to any one of the cache lines from
Show answer without attempting

Answer: A

Q21

Boolean Algebra and MinimizationMCQ1 mark−1/3 if wrong
Which one of the following expressions does NOT represent exclusive NOR of xx and yy?
Show answer without attempting

Answer: D

Q22

CalculusMCQ1 mark−1/3 if wrong
Which one of the following functions is continuous at x=3x = 3?
Show answer without attempting

Answer: A

Q23

CalculusMCQ1 mark−1/3 if wrong
Function ff is known at the following points:

<br>x00.30.60.91.21.51.82.12.42.73.0<br>f(x)00.090.360.811.442.253.244.415.767.299.00<br>\begin{array}{l|cccccccccccc}<br>x & 0 & 0.3 & 0.6 & 0.9 & 1.2 & 1.5 & 1.8 & 2.1 & 2.4 & 2.7 & 3.0 \\ \hline<br>f(x) & 0 & 0.09 & 0.36 & 0.81 & 1.44 & 2.25 & 3.24 & 4.41 & 5.76 & 7.29 & 9.00<br>\end{array}

The value of ∫03f(x) dx\int_{0}^{3} f(x) \, dx computed using the trapezoidal rule is
Show answer without attempting

Answer: D

Q24

Probability and StatisticsMCQ1 mark−1/3 if wrong
Consider an undirected random graph of eight vertices. The probability that there is an edge between a pair of vertices is 1/21/2. What is the expected number of unordered cycles of length three?
Show answer without attempting

Answer: C

Q25

Discrete MathematicsMCQ1 mark−1/3 if wrong
Which of the following statements is/are TRUE for undirected graphs?

P: Number of odd degree vertices is even.
Q: Sum of degrees of all vertices is even.
Show answer without attempting

Answer: C

Q26

Discrete MathematicsMCQ2 marks−2/3 if wrong
The line graph L(G)L(G) of a simple graph GG is defined as follows:
- There is exactly one vertex v(e)v(e) in L(G)L(G) for each edge ee in GG.
- For any two edges ee and e′e' in GG, L(G)L(G) has an edge between v(e)v(e) and v(e′)v(e'), if and only if ee and e′e' are incident with the same vertex in GG.

Which of the following statements is/are TRUE?

(P) The line graph of a cycle is a cycle.
(Q) The line graph of a clique is a clique.
(R) The line graph of a planar graph is planar.
(S) The line graph of a tree is a tree.
Show answer without attempting

Answer: A

Q27

Discrete MathematicsMCQ2 marks−2/3 if wrong
What is the logical translation of the following statement?

"None of my friends are perfect."
Show answer without attempting

Answer: D

Q28

Input OutputMCQ2 marks−2/3 if wrong
Consider the following sequence of micro-operations.

<br>MBR←PC<br>MAR←X<br>PC←Y<br>Memory←MBR<br>\begin{align*}<br>\text{MBR} &\leftarrow \text{PC} \\<br>\text{MAR} &\leftarrow \text{X} \\<br>\text{PC} &\leftarrow \text{Y} \\<br>\text{Memory} &\leftarrow \text{MBR}<br>\end{align*}

Which one of the following is a possible operation performed by this sequence?
Show answer without attempting

Answer: D

Q29

File SystemsMCQ2 marks−2/3 if wrong
Consider a hard disk with 16 recording surfaces (0-15) having 16384 cylinders (0-16383) and each cylinder contains 64 sectors (0-63). Data storage capacity in each sector is 512 bytes. Data are organized cylinder-wise and the addressing format is <cylinder no., surface no., sector no.>. A file of size 42797 KB is stored in the disk and the starting disk location of the file is <1200, 9, 40>. What is the cylinder number of the last sector of the file, if it is stored in a contiguous manner?
Show answer without attempting

Answer: D

Q30

Searching Sorting and HashingMCQ2 marks−2/3 if wrong
The number of elements that can be sorted in Θ(log⁡n)\Theta(\log n) time using heap sort is
Show answer without attempting

Answer: C

Q31

Algorithm AnalysisMCQ2 marks−2/3 if wrong
Consider the following function:
int unknown(int n){
  int i, j, k=0;
  for (i=n/2; i<=n; i++)
    for (j=2; j<=n; j=j*2)
      k = k + n/2;
  return (k);
}
The return value of the function is
Show answer without attempting

Answer: B

Q32

Context Free LanguagesMCQ2 marks−2/3 if wrong
Consider the following languages.

L1={0p1q0r∣p,q,r≥0}L_1 = \{0^p 1^q 0^r \mid p, q, r \ge 0\}
L2={0p1q0r∣p,q,r≥0,p≠r}L_2 = \{0^p 1^q 0^r \mid p, q, r \ge 0, p \neq r\}

Which one of the following statements is FALSE?
Show answer without attempting

Answer: D

Q33

Regular LanguagesMCQ2 marks−2/3 if wrong
Consider the DFA A given below.

Which of the following are FALSE?

1. Complement of L(A)L(A) is context-free.
2. L(A)=L((11∗0+0)(0+1)∗0∗1∗)L(A) = L((11^*0+0)(0 + 1)^*0^*1^*)
3. For the language accepted by A, A is the minimal DFA.
4. A accepts all strings over {0,1}\{0, 1\} of length at least 2.
Question figure
Show answer without attempting

Answer: D

Q34

Concurrency and SynchronizationMCQ2 marks−2/3 if wrong
A shared variable xx, initialized to zero, is operated on by four concurrent processes W, X, Y, Z as follows. Each of the processes W and X reads xx from memory, increments by one, stores it to memory, and then terminates. Each of the processes Y and Z reads xx from memory, decrements by two, stores it to memory, and then terminates. Each process before reading xx invokes the PP operation (i.e., wait) on a counting semaphore SS and invokes the VV operation (i.e., signal) on the semaphore SS after storing xx to memory. Semaphore SS is initialized to two. What is the maximum possible value of xx after all processes complete execution?
Show answer without attempting

Answer: D

Q35

Relational QueriesMCQ2 marks−2/3 if wrong
Consider the following relational schema.

Students(rollno: integer‾\underline{\text{rollno: integer}}, sname: string)
Courses(courseno: integer‾\underline{\text{courseno: integer}}, cname: string)
Registration(rollno: integer, courseno: integer‾\underline{\text{rollno: integer, courseno: integer}}, percent: real)

Which of the following queries are equivalent to this query in English?
"Find the distinct names of all students who score more than 90% in the course numbered 107"

(I) SELECT DISTINCT S.sname
FROM Students as S, Registration as R
WHERE R.rollno=S.rollno AND R.courseno=107 AND R.percent > 90
(II) Πsname(σcourseno=107∧percent>90(Registration⋈Students))\Pi_{\text{sname}}(\sigma_{\text{courseno}=107 \wedge \text{percent}>90}(\text{Registration} \bowtie \text{Students}))
(III) {T∣∃S∈Students,∃R∈Registration(S.rollno=R.rollno∧R.courseno=107∧R.percent>90∧T.sname=S.sname)}\{T \mid \exists S \in \text{Students}, \exists R \in \text{Registration} (S.\text{rollno}=R.\text{rollno} \wedge R.\text{courseno}=107 \wedge R.\text{percent}>90 \wedge T.\text{sname}=S.\text{sname})\}
(IV) {⟨SN⟩∣∃SR∃RP(⟨SR,SN⟩∈Students∧⟨SR,107,RP⟩∈Registration∧RP>90)}\{\langle S_N \rangle \mid \exists S_R \exists R_P (\langle S_R, S_N \rangle \in \text{Students} \wedge \langle S_R, 107, R_P \rangle \in \text{Registration} \wedge R_P > 90)\}
Show answer without attempting

Answer: A

Q36

Data Link LayerMCQ2 marks−2/3 if wrong
Determine the maximum length of the cable (in km) for transmitting data at a rate of 500 Mbps in an Ethernet LAN with frames of size 10,000 bits. Assume the signal speed in the cable to be 2,00,000 km/s.
Show answer without attempting

Answer: B

Q37

IPv4MCQ2 marks−2/3 if wrong
In an IPv4 datagram, the M bit is 0, the value of HLEN is 10, the value of total length is 400 and the fragment offset value is 300. The position of the datagram, the sequence numbers of the first and the last bytes of the payload, respectively are
Show answer without attempting

Answer: C

Q38

Application LayerMCQ2 marks−2/3 if wrong
The following figure represents access graphs of two modules M1 and M2. The filled circles represent methods and the unfilled circles represent attributes. If method m is moved to module M2 keeping the attributes where they are, what can we say about the average cohesion and coupling between modules in the system of two modules?
Question figure
Show answer without attempting

Answer: A

Q39

Concurrency and SynchronizationMCQ2 marks−2/3 if wrong
A certain computation generates two arrays aa and bb such that a[i]=f(i)a[i]=f(i) for 0≤i<n0 \le i < n and b[i]=g(a[i])b[i] = g(a[i]) for 0≤i<n0 \le i < n. Suppose this computation is decomposed into two concurrent processes X and Y such that X computes the array aa and Y computes the array bb. The processes employ two binary semaphores RR and SS, both initialized to zero. The array aa is shared by the two processes. The structures of the processes are shown below.
Process X:
private i;
for (i=0; i<n; i++) {
  a[i] = f(i);
  ExitX(R, S);
}

Process Y:
private i;
for (i=0; i<n; i++) {
  EntryY(R, S);
  b[i] = g(a[i]);
}
Which one of the following represents the CORRECT implementations of ExitX and EntryY?
Show answer without attempting

Answer: C

Q40

ParsingMCQ2 marks−2/3 if wrong
Consider the following two sets of LR(1) items of an LR(1) grammar.

<br>X→c⋅X,c/dX→c⋅X,$<br>X→⋅cX,c/dX→⋅cX,$<br>X→⋅d,c/dX→⋅d,$<br>\begin{array}{ll}<br>X \to c\cdot X, c/d & X \to c\cdot X, \$ \\<br>X \to \cdot cX, c/d & X \to \cdot cX, \$ \\<br>X \to \cdot d, c/d & X \to \cdot d, \$<br>\end{array}

Which of the following statements related to merging of the two sets in the corresponding LALR parser is/are FALSE?

1. Cannot be merged since look aheads are different.
2. Can be merged but will result in S-R conflict.
3. Can be merged but will result in R-R conflict.
4. Cannot be merged since goto on cc will lead to two different sets.
Show answer without attempting

Answer: D

Q41

ComputabilityMCQ2 marks−2/3 if wrong
Which of the following is/are undecidable?

1. GG is a CFG. Is L(G)=ΦL(G) = \Phi?
2. GG is a CFG. Is L(G)=Σ∗L(G) = \Sigma^*?
3. MM is a Turing machine. Is L(M)L(M) regular?
4. AA is a DFA and NN is an NFA. Is L(A)=L(N)L(A) = L(N)?
Show answer without attempting

Answer: D

Q42

C ProgrammingMCQ2 marks−2/3 if wrong
What is the return value of f(p,p), if the value of pp is initialized to 5 before the call? Note that the first parameter is passed by reference, whereas the second parameter is passed by value.
int f (int &x, int c) {
  c = c - 1;
  if (c==0) return 1;
  x = x + 1;
  return f(x,c) * x;
}
Show answer without attempting

Answer: Marks to all

Q43

Tree Data StructuresMCQ2 marks−2/3 if wrong
The preorder traversal sequence of a binary search tree is 30, 20, 10, 15, 25, 23, 39, 35, 42. Which one of the following is the postorder traversal sequence of the same tree?
Show answer without attempting

Answer: D

Q44

Linear Data StructuresMCQ2 marks−2/3 if wrong
Consider the following operation along with Enqueue and Dequeue operations on queues, where kk is a global parameter.
MultiDequeue(Q){
  m = k
  while (Q is not empty) and (m > 0) {
    Dequeue(Q)
    m = m – 1
  }
}
What is the worst case time complexity of a sequence of nn queue operations on an initially empty queue?
Show answer without attempting

Answer: A

Q45

Instruction PipeliningMCQ2 marks−2/3 if wrong
Consider an instruction pipeline with five stages without any branch prediction: Fetch Instruction (FI), Decode Instruction (DI), Fetch Operand (FO), Execute Instruction (EI) and Write Operand (WO). The stage delays for FI, DI, FO, EI and WO are 5 ns, 7 ns, 10 ns, 8 ns and 6 ns, respectively. There are intermediate storage buffers after each stage and the delay of each buffer is 1 ns. A program consisting of 12 instructions I1,I2,I3,…,I12I_1, I_2, I_3, \dots, I_{12} is executed in this pipelined processor. Instruction I4I_4 is the only branch instruction and its branch target is I9I_9. If the branch is taken during the execution of this program, the time (in ns) needed to complete the program is
Show answer without attempting

Answer: B

Q46

Memory HierarchyMCQ2 marks−2/3 if wrong
A RAM chip has a capacity of 1024 words of 8 bits each (1K×81\text{K} \times 8). The number of 2×42 \times 4 decoders with enable line needed to construct a 16K×1616\text{K} \times 16 RAM from 1K×81\text{K} \times 8 RAM is
Show answer without attempting

Answer: B

Q47

Discrete MathematicsMCQ2 marks−2/3 if wrong
Which one of the following is NOT logically equivalent to ¬∃x(∀y(α)∧∀z(β))\neg \exists x (\forall y (\alpha) \wedge \forall z (\beta))?
Show answer without attempting

Answer: Marks to all

Q48

Optimization and Data FlowMCQ2 marks−2/3 if wrong
Suppose the instruction set architecture of the processor has only two registers. The only allowed compiler optimization is code motion, which moves statements from one place to another while preserving correctness. What is the minimum number of spills to memory in the compiled code?
Show answer without attempting

Answer: B

Q49

Optimization and Data FlowMCQ2 marks−2/3 if wrong
What is the minimum number of registers needed in the instruction set architecture of the processor to compile this code segment without any spill to memory? Do not apply any optimization other than optimizing register allocation.
Show answer without attempting

Answer: B

Q50

C ProgrammingMCQ2 marks−2/3 if wrong
The tester now tests the program on all input strings of length five consisting of characters 'a', 'b', 'c', 'd' and 'e' with duplicates allowed. If the tester carries out this testing with the four test cases given above, how many test cases will be able to capture the flaw?
Show answer without attempting

Answer: B

Q51

C ProgrammingMCQ2 marks−2/3 if wrong
If array A is made to hold the string "abcde", which of the above four test cases will be successful in exposing the flaw in this procedure?
Show answer without attempting

Answer: C

Q52

Memory ManagementMCQ2 marks−2/3 if wrong
What is the size of a page in KB in this computer?
Show answer without attempting

Answer: C

Q53

Memory ManagementMCQ2 marks
What is the minimum number of page colours needed to guarantee that no two synonyms map to different sets in the processor cache of this computer?
Show answer without attempting

Answer: C

Q54

Relational DesignMCQ2 marks−2/3 if wrong
How many candidate keys does the relation R have?
Show answer without attempting

Answer: B

Q55

Relational DesignMCQ2 marks
The relation R is
Show answer without attempting

Answer: A

Q56

Verbal AptitudeMCQ1 mark−1/3 if wrong
Which one of the following options is the closest in meaning to the word given below?

Nadir
Show answer without attempting

Answer: B

Q57

Verbal AptitudeMCQ1 mark−1/3 if wrong
Complete the sentence:
Universalism is to particularism as diffuseness is to _______________.
Show answer without attempting

Answer: A

Q58

Quantitative AptitudeMCQ1 mark−1/3 if wrong
What will be the maximum sum of 44, 42, 40, ...... ?
Show answer without attempting

Answer: C

Q59

Verbal AptitudeMCQ1 mark−1/3 if wrong
Were you a bird, you ___________________ in the sky.
Show answer without attempting

Answer: A

Q60

Verbal AptitudeMCQ1 mark−1/3 if wrong
Choose the grammatically INCORRECT sentence:
Show answer without attempting

Answer: C

Q61

Quantitative AptitudeMCQ2 marks−2/3 if wrong
Find the sum of the expression

11+2+12+3+13+4+……⋯+180+81\frac{1}{\sqrt{1}+\sqrt{2}} + \frac{1}{\sqrt{2}+\sqrt{3}} + \frac{1}{\sqrt{3}+\sqrt{4}} + \dots \dots \dots + \frac{1}{\sqrt{80}+\sqrt{81}}
Show answer without attempting

Answer: B

Q62

Quantitative AptitudeMCQ2 marks−2/3 if wrong
Out of all the 2-digit integers between 1 and 100, a 2-digit number has to be selected at random. What is the probability that the selected number is not divisible by 7?
Show answer without attempting

Answer: D

Q63

Verbal AptitudeMCQ2 marks−2/3 if wrong
After several defeats in wars, Robert Bruce went in exile and wanted to commit suicide. Just before committing suicide, he came across a spider attempting tirelessly to have its net. Time and again, the spider failed but that did not deter it to refrain from making attempts. Such attempts by the spider made Bruce curious. Thus, Bruce started observing the near-impossible goal of the spider to have the net. Ultimately, the spider succeeded in having its net despite several failures. Such act of the spider encouraged Bruce not to commit suicide. And then, Bruce went back again and won many a battle, and the rest is history.

Which one of the following assertions is best supported by the above information?
Show answer without attempting

Answer: D

Q64

Quantitative AptitudeMCQ2 marks−2/3 if wrong
A tourist covers half of his journey by train at 60 km/h, half of the remainder by bus at 30 km/h and the rest by cycle at 10 km/h. The average speed of the tourist in km/h during his entire journey is
Show answer without attempting

Answer: C

Q65

Quantitative AptitudeMCQ2 marks−2/3 if wrong
The current erection cost of a structure is Rs. 13,200. If the labour wages per day increase by 1/5 of the current wages and the working hours decrease by 1/24 of the current period, then the new cost of erection in Rs. is
Show answer without attempting

Answer: B

0/650 correct0 marks

More GATE CS papers