GATE Computer Science & IT 2011 — GATE 2011 · CS

CS · 65 of 65 questions publicly available

Sections: General Aptitude, Computer Science & IT

Subject marks
Subject1 mark questions2 mark questionsTotal marks
General Aptitude5515
Computer Science253085

Question 1 · 1 mark Q3830

In a compiler, keywords of a language are recognized during

  1. A.

    parsing of the program

  2. B.

    the code generation

  3. C.

    the lexical analysis of the program

  4. D.

    dataflow analysis

Official answer key

Official answer key (GATE Computer Science & IT 2011 GATE 2011 · CS): C

Solutions and video are in the course

Question 2 · 1 mark Q3831

A layer-4 firewall (a device that can look at all protocol headers up to the transport layer) CANNOT

  1. A.

    block entire HTTP traffic during 9:00PM and 5:00AM

  2. B.

    block all ICMP traffic

  3. C.

    stop incoming traffic from a specific IP address but allow outgoing traffic to the same IP address

  4. D.

    block TCP traffic from a specific user on a multi-user system during 9:00PM and 5:00AM

Official answer key

Official answer key (GATE Computer Science & IT 2011 GATE 2011 · CS): D

Solutions and video are in the course

Question 3 · 1 mark Q3832

If two fair coins are flipped and at least one of the outcomes is known to be a head, what is the probability that both outcomes are heads?

  1. A.

    1/3

  2. B.

    1/4

  3. C.

    1/2

  4. D.

    2/3

Official answer key

Official answer key (GATE Computer Science & IT 2011 GATE 2011 · CS): A

Solutions and video are in the course

Question 4 · 1 mark Q3833

Consider different activities related to email.

  • m1: Send an email from a mail client to a mail server

  • m2: Download an email from mailbox server to a mail client

  • m3: Checking email in a web browser

Which is the application level protocol used in each activity?

  1. A.

    m1: HTTP    m2:SMTP    m3:POP

  2. B.

    m1: SMTP    m2:FTPm3:HTTP

  3. C.

    m1: SMTP    m2:POPm3:HTTP

  4. D.

    m1: POP    m2:SMTPm3:IMAP

Official answer key

Official answer key (GATE Computer Science & IT 2011 GATE 2011 · CS): C

Solutions and video are in the course

Question 5 · 1 mark Q3834

A company needs to develop a strategy for software product development for which it has a choice of two programming languages L1 and L2. The number of lines of code (LOC) developed using L2 is estimated to be twice the LOC developed with L1. The product will have to be maintained for five years. Various parameters for the company are given in the table below.

Total cost of the project includes cost of development and maintenance. What is the LOC for L1 for which the cost of the project using L1 is equal to the cost of the project using L2?

  1. A.

    4000

  2. B.

    5000

  3. C.

    4333

  4. D.

    4667

Official answer key

Official answer key (GATE Computer Science & IT 2011 GATE 2011 · CS): B

Solutions and video are in the course

Question 6 · 2 marks Q3835

Let the time taken to switch from user mode to kernel mode of execution be t1t1 while time taken to switch between two user processes be t2t2. Which of the following is correct?

  1. A.

    t1>t2t1 > t2

  2. B.

    t1=t2t1 = t2

  3. C.

    t1<t2t1 < t2

  4. D.

    Nothing can be said about the relation between t1t1 and t2t2

Official answer key

Official answer key (GATE Computer Science & IT 2011 GATE 2011 · CS): C

Solutions and video are in the course

Question 7 · 2 marks Q3836

A company needs to develop digital signal processing software for one of its newest inventions. The software is expected to have 40,000 lines of code. The company needs to determine the effort in person-months using the basic COCOMO model. The multiplicative factor for embedded systems is 2.8, and the exponentiation factor is 1.20. What is the estimated effort in person-months?

  1. A.

    234.25

  2. B.

    932.50

  3. C.

    287.80

  4. D.

    122.40

Official answer key

Official answer key (GATE Computer Science & IT 2011 GATE 2011 · CS): A

Solutions and video are in the course

Question 8 · 2 marks Q3837

Which of the following pairs have DIFFERENT expressive power?

  1. A.

    Deterministic finite automata (DFA) and Non-deterministic finite automata (NFA)

  2. B.

    Deterministic push down automata (DPDA) and Non-deterministic push down automata (NPDA)

  3. C.

    Deterministic single tape Turing machine and Non-deterministic single tape Turing machine

  4. D.

    Single tape Turing machine and multi-tape Turing machine

Official answer key

Official answer key (GATE Computer Science & IT 2011 GATE 2011 · CS): B

Solutions and video are in the course

Question 9 · 2 marks Q70418

HTML (Hypertext Markup Language) has language element which permits certain actions other than describing the structure of the web document. Which one of the following actions is NOT supported by pure HTML (without any server or client side scripting) pages?

  1. A.

    Embed web objects from different sites into the same page

  2. B.

    Refresh the page automatically after a specified interval

  3. C.

    Automatically redirect to another page upon download

  4. D.

    Display the client time as part of the page

Official answer key

Official answer key (GATE Computer Science & IT 2011 GATE 2011 · CS): D

Solutions and video are in the course

Question 10 · 2 marks Q9975

Which one of the following is NOT desired in a good Software Requirement Specifications (SRS) document?

  1. A.

    Functional Requirements

  2. B.

    Non-Functional Requirements

  3. C.

    Goals of Implementation

  4. D.

    Algorithms for Software Implementation

Official answer key

Official answer key (GATE Computer Science & IT 2011 GATE 2011 · CS): D

Solutions and video are in the course

Question 11 · 1 mark Q3840

A computer handles several interrupt sources of which of the following are relevant for this question.

  • Interrupt from CPU temperature sensor (raises interrupt if CPU temperature is too high)

  • Interrupt from Mouse (raises Interrupt if the mouse is moved or a button is pressed)

  • Interrupt from Keyboard (raises Interrupt if a key is pressed or released)

  • Interrupt from Hard Disk (raises Interrupt when a disk read is completed)

Which one of these will be handled at the HIGHEST priority?

  1. A.

    Interrupt from Hard Disk

  2. B.

    Interrupt from Mouse

  3. C.

    Interrupt from Keyboard

  4. D.

    Interrupt from CPU temperature sensor

Official answer key

Official answer key (GATE Computer Science & IT 2011 GATE 2011 · CS): D

Solutions and video are in the course

Question 12 · 1 mark Q3841

Consider a relational table with a single record for each registered student with the following attributes:

  1. Registration_Num: Unique registration number for each registered student

  2. UID: Unique identity number, unique at the national level for each citizen

  3. BankAccount_Num: Unique account number at the bank. A student can have multiple accounts or joint accounts. This attribute stores the primary account number.

  4. Name: Name of the student

  5. Hostel_Room: Room number of the hostel

Which of the following options is INCORRECT?

  1. A.

    BankAccount_Num is a candidate key

  2. B.

    Registration_Num can be a primary key

  3. C.

    UID is a candidate key if all students are from the same country

  4. D.

    If S is a super key such that S ∩ UID is NULL then S ∪ UID is also a superkey

Official answer key

Official answer key (GATE Computer Science & IT 2011 GATE 2011 · CS): A

Solutions and video are in the course

Question 13 · 1 mark Q1813

Which one of the following circuits is NOT equivalent to a 2-input XNOR (exclusive NOR) gate?

  1. A.
  2. B.

  3. C.

  4. D.

Official answer key

Official answer key (GATE Computer Science & IT 2011 GATE 2011 · CS): D

Solutions and video are in the course

Question 14 · 1 mark Q3843

The simplified SOP (Sum of Product) from the Boolean expression 

(P+Qˉ+Rˉ).(P+Qˉ+R).(P+Q+Rˉ)(P + \bar{Q} + \bar{R}) . (P + \bar{Q} + R) . (P + Q +\bar{R}) is

  1. A.

    (Pˉ.Q+Rˉ)(\bar{P}.Q+\bar{R})

  2. B.

    (P+Qˉ.Rˉ)(P+\bar{Q}.\bar{R})

  3. C.

    (Pˉ.Q+R)(\bar{P}.Q+R)

  4. D.

    (P.Q+R)(P.Q+R)

Official answer key

Official answer key (GATE Computer Science & IT 2011 GATE 2011 · CS): B

Solutions and video are in the course

Question 15 · 1 mark Q3844

The minimum number of D flip-flops needed to design a mod-258 counter is

  1. A.

    9

  2. B.

    8

  3. C.

    512

  4. D.

    258

Official answer key

Official answer key (GATE Computer Science & IT 2011 GATE 2011 · CS): A

Solutions and video are in the course

Question 16 · 1 mark Q3845

A thread is usually defined as a light weight process because an Operating System (OS) maintains smaller data structure for a thread than for a process. In relation to this, which of the following statement is correct?

  1. A.

    OS maintains only scheduling and accounting information for each thread

  2. B.

    OS maintains only CPU registers for each thread

  3. C.

    OS does not maintain virtual memory state for each thread

  4. D.

    OS does not maintain a separate stack for each thread

Official answer key

Official answer key (GATE Computer Science & IT 2011 GATE 2011 · CS): C

Solutions and video are in the course

Question 17 · 1 mark Q3846

K4 and Q3 are graphs with the following structures.

Which one of the following statements is TRUE in relation to these graphs?

  1. A.

    K4 is a planar while Q3 is not

  2. B.

    Both K4 and Q3 are planar

  3. C.

    Q3 is planar while K4 is not

  4. D.

    Neither K4 nor Q3 is planar

Official answer key

Official answer key (GATE Computer Science & IT 2011 GATE 2011 · CS): B

Solutions and video are in the course

Question 18 · 1 mark Q3847

If the difference between the expectation of the square of a random variable (E[X2])\left(E\left[X^2\right]\right) and the square of the expectation of the random variable (E[X])2\left(E\left[X\right]\right)^2 is denoted by RR, then

  1. A.

    R=0R = 0

  2. B.

    R<0R < 0

  3. C.

    R≥0R \geq 0

  4. D.

    R>0R > 0

Official answer key

Official answer key (GATE Computer Science & IT 2011 GATE 2011 · CS): C

Solutions and video are in the course

Question 19 · 1 mark Q3848

The lexical analysis for a modern computer language such as Java needs the power of which one of the following machine models in a necessary and sufficient sense?

  1. A.

    Finite state automata

  2. B.

    Deterministic pushdown automata

  3. C.

    Non-deterministic pushdown automata

  4. D.

    Turing machine

Official answer key

Official answer key (GATE Computer Science & IT 2011 GATE 2011 · CS): A

Solutions and video are in the course

Question 20 · 1 mark Q3849

Let the page fault service time be 10 milliseconds(ms) in a computer with average memory access time being 20 nanoseconds (ns). If one page fault is generated every 10^6 memory accesses, what is the effective access time for memory?

  1. A.

    21 ns

  2. B.

    30 ns

  3. C.

    23 ns

  4. D.

    35 ns

Official answer key

Official answer key (GATE Computer Science & IT 2011 GATE 2011 · CS): B

Solutions and video are in the course

Question 21 · 1 mark Q3850

Consider a hypothetical processor with an instruction of type LW  R1, 20(R2), which during execution reads a 32-bit word from memory and stores it in a 32-bit register R1. The effective address of the memory location is obtained by the addition of a constant 20 and the contents of register R2. Which of the following best reflects the addressing mode implemented by this instruction for the operand in memory?

  1. A.

    Immediate addressing

  2. B.

    Register addressing

  3. C.

    Register Indirect Scaled Addressing

  4. D.

    Base Indexed Addressing

Official answer key

Official answer key (GATE Computer Science & IT 2011 GATE 2011 · CS): D

Solutions and video are in the course

Question 22 · 1 mark Q3851

What does the following fragment of C program print?

char c[] = "GATE2011";
char *p = c;
printf("%s", p + p[3] - p[1]);

  1. A.

    GATE2011

  2. B.

    E2011

  3. C.

    2011

  4. D.

    011

Official answer key

Official answer key (GATE Computer Science & IT 2011 GATE 2011 · CS): C

Solutions and video are in the course

Question 23 · 1 mark Q3852

A max-heap is a heap where the value of each parent is greater than or equal to the value of its children. Which of the following is a max-heap?

  1. A.

  2. B.

  3. C.

  4. D.

Official answer key

Official answer key (GATE Computer Science & IT 2011 GATE 2011 · CS): B

Solutions and video are in the course

Question 24 · 1 mark Q3853

Let PP be a regular language and QQ be a context-free language such that Q⊆PQ \subseteq P. (For example, let PP be the language represented by the regular expression p∗q∗p^*q^* and QQ be {pnqn∣n∈N})\{p^nq^n \mid n \in N\}). Then which of the following is ALWAYS regular?

  1. A.

    P∩QP \cap Q

  2. B.

    P−QP -Q

  3. C.

    Σ∗−P\Sigma^*-P

  4. D.

    Σ∗−Q\Sigma^*-Q

Official answer key

Official answer key (GATE Computer Science & IT 2011 GATE 2011 · CS): C

Solutions and video are in the course

Question 25 · 1 mark Q3854

An algorithm to find the length of the longest monotonically increasing sequence of numbers in an array A[0:n−1]A[0:n-1] is given below.Let LiL_i, denote the length of the longest monotonically increasing sequence starting at index ii in the array.Initialize Ln−1=1L_{n-1} = 1.For all ii such that 0≤i≤n−20 \leq i \leq n-2Li={1+Li+1if A[i] < A[i+1]1OtherwiseL_i = \begin{cases} 1+ L_{i+1} & \quad\text{if A[i] < A[i+1]} \\ 1 & \quad\text{Otherwise}\end{cases}Finally, the length of the longest monotonically increasing sequence is Max(L0,L1,…,Ln−1)\text{Max}(L_0,L_1,\ldots,L_{n-1}).Which of the following statements is TRUE?

  1. A.

    The algorithm uses dynamic programming paradigm

  2. B.

    The algorithm has a linear complexity and uses branch and bound paradigm

  3. C.

    The algorithm has a non-linear polynomial complexity and uses branch and bound paradigm

  4. D.

    The algorithm uses divide and conquer paradigm

Official answer key

Official answer key (GATE Computer Science & IT 2011 GATE 2011 · CS): A

Solutions and video are in the course

Question 26 · 1 mark Q3855

Consider the languages L1, L2 and L3 as given below.

L1={0p1q∣p,q∈N},L_1=\{0^p1^q \mid p,q\in N\},

L2={0p1q∣p,q∈N and p=q}L_2=\{0^p1^q \mid p,q\in N\text{ and }p=q\} and

L3={0p1q0r∣p,q,r∈N and p=q=r}.L_3=\{0^p1^q0^r \mid p,q,r\in N\text{ and }p=q=r\}. Which of the following statements is NOT TRUE?

  1. A.

    Push Down Automata (PDA) can be used to recognize L1L_1 and L2L_2

  2. B.

    L1L_1 is a regular language

  3. C.

    All the three languages are context free

  4. D.

    Turing machines can be used to recognize all the languages

Official answer key

Official answer key (GATE Computer Science & IT 2011 GATE 2011 · CS): C

Solutions and video are in the course

Question 27 · 1 mark Q3856

Consider two binary operators ‘↑’\text{‘} \uparrow \text{’}  and ‘↓’\text{‘} \downarrow \text{’} with the precedence of operator ↓\downarrow being lower than that of the operator ↑\text{} \uparrow \text{}. Operator ↑\text{} \uparrow \text{} is right associative while operator ↓\downarrow is left associative. Which one of the following represents the parse tree for expression (7↓3↑4↑3↓2)(7 \downarrow 3 \uparrow 4 \uparrow 3 \downarrow 2)

  1. A.

  2. B.

  3. C.

  4. D.

Official answer key

Official answer key (GATE Computer Science & IT 2011 GATE 2011 · CS): B

Solutions and video are in the course

Question 28 · 1 mark Q3857

On a non-pipelined sequential processor, a program segment, which is the part of the interrupt service routine, is given to transfer 500 bytes from an I/O device to memory.

        Initialize the address register

Initialize the count to 500

LOOP: Load a byte from device

Store in memory at address given by address register

Increment the address register

Decrement the count

If count !=0 go to LOOP Assume that each statement in this program is equivalent to a machine instruction which takes one clock cycle to execute if it is a non-load/store instruction. The load-store instructions take two clock cycles to execute.

The designer of the system also has an alternate approach of using the DMA controller to implement the same transfer. The DMA controller requires 20 clock cycles for initialization and other overheads. Each DMA transfer cycle takes two clock cycles to transfer one byte of data from the device to the memory.

What is the approximate speed up when the DMA controller based design is used in a place of the interrupt driven program based input-output?

  1. A.

    3.4

  2. B.

    4.4

  3. C.

    5.1

  4. D.

    6.7

Official answer key

Official answer key (GATE Computer Science & IT 2011 GATE 2011 · CS): A

Solutions and video are in the course

Question 29 · 1 mark Q3858

We are given a set of nn distinct elements and an unlabeled binary tree with nn nodes. In how many ways can we populate the tree with the given set so that it becomes a binary search tree?

  1. A.

    00

  2. B.

    11

  3. C.

    n!n!

  4. D.

    1n+1(2nn)\frac{1}{n+1}\binom{2n}{n}

Official answer key

Official answer key (GATE Computer Science & IT 2011 GATE 2011 · CS): B

Solutions and video are in the course

Question 30 · 1 mark Q3859

Which one of the following options is CORRECT given three positive integers x,yx,y and zz, and a predicate

P(x)=¬(x=1)∧∀y(∃z(x=y∗z)⇒(y=x)∨(y=1))P\left(x\right) = \neg \left(x=1\right)\wedge \forall y \left(\exists z\left(x=y*z\right) \Rightarrow \left(y=x\right) \vee \left(y=1\right) \right)

  1. A.

    P(x)P(x) being true means that xx is a prime number

  2. B.

    P(x)P(x) being true means that xx is a number other than 1 

  3. C.

    P(x)P(x) is always true irrespective of the value of xx

  4. D.

    P(x)P(x) being true means that xx has exactly two factors other than 1 and xx

Official answer key

Official answer key (GATE Computer Science & IT 2011 GATE 2011 · CS): A

Solutions and video are in the course

Question 31 · 1 mark Q3860

Given i=−1i = \sqrt{-1}, what will be the evaluation of the definite integral ∫0π/2cos⁡x+isin⁡xcos⁡x−isin⁡xdx\int \limits_0^{\pi/2} \dfrac{\cos x +i \sin x} {\cos x - i \sin x} dx?

  1. A.

    00

  2. B.

    22

  3. C.

    −i-i

  4. D.

    ii

Official answer key

Official answer key (GATE Computer Science & IT 2011 GATE 2011 · CS): D

Solutions and video are in the course

Question 32 · 1 mark Q3861

Consider a database table T containing two columns X and Y each of type integer. After the creation of the table, one record (X=1, Y=1) is inserted in the table.

Let MX and MY denote the respective maximum values of X and Y among all records in the table at any point in time. Using MX and MY, new records are inserted in the table 128 times with X and Y values being MX+1, 2*MY+1 respectively. It may be noted that each time after the insertion, values of MX and MY change.

What will be the output of the following SQL query after the steps mentioned above are carried out?

SELECT Y FROM T WHERE X=7;
  1. A.

    127

  2. B.

    255

  3. C.

    129

  4. D.

    257

Official answer key

Official answer key (GATE Computer Science & IT 2011 GATE 2011 · CS): A

Solutions and video are in the course

Question 33 · 1 mark Q3862

Consider a finite sequence of random values X=[x1,x2,…xn]X=[x_1,x_2,\dots x_n]. Let μx\mu_x be the mean and σx\sigma_x be the standard deviation of XX. Let another finite sequence YY of equal length be derived from this as yi=a∗xi+by_i=a*x_i+b, where aa and bb are positive constants. Let μy\mu_y be the mean and σy\sigma_y be the standard deviation of this sequence.

Which one of the following statements is INCORRECT?

  1. A.

    Index position of mode of XX in XX is the same as the index position of mode of YY in YY

  2. B.

    Index position of median of XX in XX is the same as the index position of median of YY in YY

  3. C.

    μy=aμx+b\mu_y=a \mu_x + b

  4. D.

    σy=aσx+b\sigma_y=a \sigma_x + b

Official answer key

Official answer key (GATE Computer Science & IT 2011 GATE 2011 · CS): D

Solutions and video are in the course

Question 34 · 1 mark Q3863

A deck of 5 cards (each carrying a distinct number from 1 to 5) is shuffled thoroughly. Two cards are then removed one at a time from the deck. What is the probability that the two cards are selected with the number on the first card being one higher than the number on the second card?

  1. A.

    1/5

  2. B.

    4/25

  3. C.

    1/4

  4. D.

    2/5

Official answer key

Official answer key (GATE Computer Science & IT 2011 GATE 2011 · CS): A

Solutions and video are in the course

Question 35 · 1 mark Q3864

Consider the following table of arrival time and burst time for three processes P0,P1 and P2.

ProcessArrival TimeBurst TimeP00 ms9P11 ms4P22 ms9\small \begin{array}{|c|c|c|} \hline \textbf{Process} & \textbf{Arrival Time} & \textbf{Burst Time}\\\hline \text{P0} & \text{0 ms} & 9 \\\hline \text{P1} & \text{1 ms} & 4 \\\hline \text{P2} & \text{2 ms} & 9 \\\hline \end{array}

The pre-emptive shortest job first scheduling algorithm is used. Scheduling is carried out only at arrival or completion of processes. What is the average waiting time for the three processes?

  1. A.

    5.0 ms

  2. B.

    4.33 ms

  3. C.

    6.33 ms

  4. D.

    7.33 ms

Official answer key

Official answer key (GATE Computer Science & IT 2011 GATE 2011 · CS): A

Solutions and video are in the course

Question 36 · 2 marks Q3865

Consider evaluating the following expression tree on a machine with load-store architecture in which memory can be accessed only through load and store instructions. The variables a,b,c,d,a, b, c, d, and ee are initially stored in memory. The binary operators used in this expression tree can be evaluated by the machine only when operands are in registers. The instructions produce result only in a register. If no intermediate results can be stored in memory, what is the minimum number of registers needed to evaluate this expression?

  1. A.

    2

  2. B.

    9

  3. C.

    5

  4. D.

    3

Official answer key

Official answer key (GATE Computer Science & IT 2011 GATE 2011 · CS): D

Solutions and video are in the course

Question 37 · 2 marks Q49051

Which of the given options provides the increasing order of asymptotic complexity of functions f₁, f₂, f₃ and f₄?

f1(n)=2nf_1(n)=2^n

f2(n)=n3/2f_2(n)=n^{3/2}

f3(n)=nlog⁡2nf_3(n)=n\log_2 n

f4(n)=nlog⁡2nf_4(n)=n^{\log_2 n}

  1. A.

    f₃, f₂, f₄, f₁

  2. B.

    f₃, f₂, f₁, f₄

  3. C.

    f₂, f₃, f₁, f₄

  4. D.

    f₂, f₃, f₄, f₁

Official answer key

Official answer key (GATE Computer Science & IT 2011 GATE 2011 · CS): A

Solutions and video are in the course

Question 38 · 2 marks Q3867

Four Matrices M1,M2,M3M_1 , M_2, M_3 and M4M_4 of dimensions p×q, q×r, r×sp \times q, \ q \times r , \ r \times s and s×ts \times t respectively can be multiplied in several ways with different number of total scalar multiplications. For example when multiplied as ((M1×M2)×(M3×M4))((M_1 \times M_2) \times (M_3 \times M_4))  the total number of scalar multiplications is pqr+rst+prtpqr + rst + prt. When multiplied as (((M1×M2)×M3)×M4)(((M_1 \times M_2) \times M_3) \times M_4), the total number of scalar multiplications is pqr+prs+pstpqr + prs + pst.

If p=10,q=100,r=20,s=5p=10, q=100, r=20, s=5 and t=80t=80, then the minimum number of scalar multiplications needed is

  1. A. 248000
  2. B.

    44000

  3. C.

    19000

  4. D.

    25000

Official answer key

Official answer key (GATE Computer Science & IT 2011 GATE 2011 · CS): C

Solutions and video are in the course

Question 39 · 2 marks Q3868

Consider a relational table rr with sufficient number of records, having attributes A1,A2,…,AnA_1, A_2, \dots ,A_n and let 1≤p≤n1 \leq p \leq n. Two queries Q1Q1 and Q2Q2 are given below.

Q1:πA1,…,Ap(σAp=c(r))Q1: \pi_{A_1, \dots ,A_p} \left(\sigma_{A_p=c}\left(r\right)\right) where cc is a constant

Q2:πA1,…,Ap(σc1≤Ap≤c2(r))Q2: \pi_{A_1, \dots ,A_p} \left(\sigma_{c_1 \leq A_p \leq c_2}\left(r\right)\right) where c1c_1 and c2c_2 are constants.

The database can be configured to do ordered indexing on ApA_p or hashing on ApA_p. Which of the following statements is TRUE?

  1. A.

    Ordered indexing will always outperform hashing for both queries

  2. B.

    Hashing will always outperform ordered indexing for both queries

  3. C.

    Hashing will outperform ordered indexing on Q1Q1, but not on Q2Q2

  4. D.

    Hashing will outperform ordered indexing on Q2Q2, but not on Q1Q1

Official answer key

Official answer key (GATE Computer Science & IT 2011 GATE 2011 · CS): C

Solutions and video are in the course

Question 40 · 2 marks Q3869

Consider the matrix as given below.

[123047003]\begin{bmatrix} 1 & 2 & 3 \\ 0 & 4 & 7 \\ 0 & 0 & 3\end{bmatrix}

Which one of the following options provides the CORRECT values of the eigenvalues of the matrix?

  1. A.

    1,4,3

  2. B.

    3,7,3

  3. C.

    7,3,2

  4. D.

    1,2,3

Official answer key

Official answer key (GATE Computer Science & IT 2011 GATE 2011 · CS): A

Solutions and video are in the course

Question 41 · 2 marks Q3870

Consider an instruction pipeline with four stages (S1, S2, S3 and S4) each with combinational circuit only. The pipeline registers are required between each stage and at the end of the last stage. Delays for the stages and for the pipeline registers are as given in the figure.

What is the approximate speed up of the pipeline in steady state under ideal conditions when compared to the corresponding non-pipeline implementation?

  1. A.

    4.0

  2. B.

    2.5

  3. C.

    1.1

  4. D.

    3.0

Official answer key

Official answer key (GATE Computer Science & IT 2011 GATE 2011 · CS): B

Solutions and video are in the course

Question 42 · 2 marks Q3871

Definition of a language LL with alphabet {a}\{a\} is given as following.

L={ank∣k>0,  and  n is a positive integer constant}L = \left\{a^{nk} \mid k > 0, \:\: and \:\: n \text{ is a positive integer constant} \right\}

What is the minimum number of states needed in a DFA to recognizeLL?

  1. A.

    k+1k + 1

  2. B.

    n+1n+ 1

  3. C.

    2n+12^{n+1}

  4. D.

    2k+12^{k+1}

Official answer key

Official answer key (GATE Computer Science & IT 2011 GATE 2011 · CS): B

Solutions and video are in the course

Question 43 · 2 marks Q3872

An 8KB direct-mapped write-back cache is organized as multiple blocks, each size of 32-bytes. The processor generates 32-bit addresses. The cache controller contains the tag information for each cache block comprising of the following.

1 valid bit

1 modified bit

As many bits as the minimum needed to identify the memory block mapped in the cache.

What is the total size of memory needed at the cache controller to store meta-data (tags) for the cache?

  1. A.

    4864 bits

  2. B.

    6144 bits

  3. C.

    6656 bits

  4. D.

    5376 bits

Official answer key

Official answer key (GATE Computer Science & IT 2011 GATE 2011 · CS): D

Solutions and video are in the course

Question 44 · 2 marks Q1862

An application loads 100 libraries at start-up. Loading each library requires exactly one disk access. The seek time of the disk to a random location is given as 10 milliseconds. Rotational speed of disk is 6000 rpm. If all 100 libraries are loaded from random locations on the disk, how long does it take to load all libraries? (The time to transfer data from the disk block once the head has been positioned at the start of the block may be neglected)

  1. A.

    0.50 s

  2. B.

    1.50 s

  3. C.

    1.25 s

  4. D.

    1.00 s

Official answer key

Official answer key (GATE Computer Science & IT 2011 GATE 2011 · CS): B

Solutions and video are in the course

Question 45 · 2 marks Q3874

A deterministic finite automaton (DFA) DD with alphabet Σ={a,b}Σ=\{a,b\} is given below.

Which of the following finite state machines is a valid minimal DFA which accepts the same languages as DD?

  1. A.
  2. B.
  3. C.
  4. D.
Official answer key

Official answer key (GATE Computer Science & IT 2011 GATE 2011 · CS): A

Solutions and video are in the course

Question 46 · 2 marks Q3875

Database table by name Loan_Records is given below.

Borrower

Bank_Manager

Loan_Amount

Ramesh

Sunderajan

10000.00

Suresh

Ramgopal

5000.00

Mahesh

Sunderajan

7000.00

What is the output of the following SQL query?

SELECT count(*) FROM ( SELECT Borrower, Bank_Manager FROM Loan_Records) AS S NATURAL JOIN (SELECT Bank_Manager, Loan_Amount FROM Loan_Records) AS T );

  1. A.

    3

  2. B.

    9

  3. C.

    5

  4. D.

    6

Official answer key

Official answer key (GATE Computer Science & IT 2011 GATE 2011 · CS): C

Solutions and video are in the course

Question 47 · 2 marks Q3876

The following is the comment written for a C function.

/* This function computes the roots of a quadratic equation a.x^2 + b.x + c = 0. The function stores two real roots in *root1 and *root2 and returns the status of validity of roots. It handles four different kinds of cases. (i) When coefficient a is zero irrespective of discriminant (ii) When discriminant is positive (iii) When discriminant is zero (iv) When discriminant is negative Only in case (ii) and (iii), the stored roots are valid. Otherwise 0 is stored in the roots. The function returns 0 when the roots are valid and -1 otherwise. The function also ensures root1 >= root2. int get_QuadRoots (float a, float b, float c, float *root1, float *root2); */

A software engineer is assigned the job of doing black box testing. He comes up with the following test cases, many of which are redundant.

Which one of the following options provide the set of non-redundant tests using equivalence class partitioning approach from input perspective for black box testing?

  1. A.

    T1, T2, T3, T6

  2. B.

    T1, T3, T4, T5

  3. C.

    T2, T4, T5, T6

  4. D.

    T2, T3, T4, T5

Official answer key

Official answer key (GATE Computer Science & IT 2011 GATE 2011 · CS): C

Solutions and video are in the course

Question 48 · 2 marks Q3877

Consider the following recursive C function that takes two arguments.

unsigned int foo(unsigned int n, unsigned int r) { if (n>0) return ((n%r) + foo(n/r, r)); else return 0; }

What is the return value of the function foo when it is called as foo(345, 10)?

  1. A.

    345

  2. B.

    12

  3. C.

    5

  4. D.

    3

Official answer key

Official answer key (GATE Computer Science & IT 2011 GATE 2011 · CS): B

Solutions and video are in the course

Question 49 · 2 marks Q12453

Consider the following recursive C function that takes two arguments

unsigned int rer (unsigned int n, unsigned int r) {
  if (n > 0) return (n% r + rer(n/r, r));
  else return 0;
 } 

What is the return value of the function rer when it is called as rer (513, 2) ?

  1. A.

    9

  2. B.

    8

  3. C.

    5

  4. D.

    2

Official answer key

Official answer key (GATE Computer Science & IT 2011 GATE 2011 · CS): D

Solutions and video are in the course

Question 50 · 2 marks Q9934

Consider the following circuit involving three D-type flip-flops used in a certain type of counter configuration.

If at some instance prior to the occurrence of the clock edge, P,Q and R have a value 0, 1 and 0 respectively, what shall be the value of PQR after the clock edge?

  1. A.

    000

  2. B.

    001

  3. C.

    010

  4. D.

    011

Official answer key

Official answer key (GATE Computer Science & IT 2011 GATE 2011 · CS): D

Solutions and video are in the course

Question 51 · 2 marks Q3880

 Consider the following circuit involving three D-type flip-flops used in a certain type of counter configuration.

If all the flip-flops were reset to 0 at power on, what is the total number of distinct outputs (states) represented by PQRPQR generated by the counter?

  1. A.

    3

  2. B.

    4

  3. C.

    5

  4. D.

    6

Official answer key

Official answer key (GATE Computer Science & IT 2011 GATE 2011 · CS): B

Solutions and video are in the course

Question 52 · 2 marks Q9933

Consider a network with five nodes, N1 to N5, as shown as below.

image.png

The network uses a Distance Vector Routing protocol. Once the routes have been stabilized, the distance vectors at different nodes are as follows.

N1: (0,1,7,8,4)

N2: (1,0,6,7,3)

N3: (7,6,0,2,6)

N4: (8,7,2,0,4)

N5: (4,3,6,4,0)

Each distance vector is the distance of the best known path at that instance to nodes, N1 to N5, where the distance to itself is 0. Also, all links are symmetric and the cost is identical in both directions. In each round, all nodes exchange their distance vectors with their respective neighbors. Then all nodes update their distance vectors. In between two rounds, any change in cost of a link will cause the two incident nodes to change only that entry in their distance vectors.

The cost of link N2−N3 reduces to 2 (in both directions). After the next round of updates, what will be the new distance vector at node, N3?

  1. A.

    (3,2,0,2,5)

  2. B.

    (3,2,0,2,6)

  3. C.

    (7,2,0,2,5)

  4. D.

    (7,2,0,2,6)

Official answer key

Official answer key (GATE Computer Science & IT 2011 GATE 2011 · CS): A

Solutions and video are in the course

Question 53 · 2 marks Q6110

Consider a network with five nodes, N1 to N5, as shown as below.

image.png

The network uses a Distance Vector Routing protocol. Once the routes have been stabilized, the distance vectors at different nodes are as follows.

N1: (0,1,7,8,4)

N2: (1,0,6,7,3)

N3: (7,6,0,2,6)

N4: (8,7,2,0,4)

N5: (4,3,6,4,0)

Each distance vector is the distance of the best known path at that instance to nodes, N1 to N5, where the distance to itself is 0. Also, all links are symmetric and the cost is identical in both directions. In each round, all nodes exchange their distance vectors with their respective neighbors. Then all nodes update their distance vectors. In between two rounds, any change in cost of a link will cause the two incident nodes to change only that entry in their distance vectors.

In Q52, the cost of link N2−N3 reduces to 2 (in both directions). After the update in the previous question, the link N1−N2 goes down. N2 will reflect this change immediately in its distance vector as cost, ∞. After the NEXT ROUND of update, what will be the cost to N1 in the distance vector of N3 ?

  1. A.

    3

  2. B.

    9

  3. C.

    10

  4. D.

    ∞

Official answer key

Official answer key (GATE Computer Science & IT 2011 GATE 2011 · CS): C

Solutions and video are in the course

Question 54 · 2 marks Q3883

An undirected graph G(V,E)G(V,E) contains n (n>2)n \: (n>2) nodes named v1,v2,…,vnv_1,v_2, \dots, v_n. Two nodes vi,vjv_i, v_j  are connected if and only if 0<∣i−j∣≤20 < \mid i-j\mid \leq 2. Each edge (vi,vj)(v_i,v_j) is assigned a weight i+ji+j. A sample graph with n=4n=4 is shown below.

What will be the cost of the minimum spanning tree (MST) of such a graph with nn nodes?

  1. A.

    112(11n2−5n)\frac{1}{12} (11n^2 - 5 n)

  2. B.

    n2−n+1n^2-n+1

  3. C.

    6n−116n-11

  4. D.

    2n+12n+1

Official answer key

Official answer key (GATE Computer Science & IT 2011 GATE 2011 · CS): B

Solutions and video are in the course

Question 55 · 2 marks Q3884

An undirected graph G(V,E)G(V,E) contains n (n>2)n \: (n>2) nodes named v1,v2,…,vnv_1,v_2, \dots, v_n. Two nodes vi,vjv_i, v_j  are connected if and only if 0<∣i−j∣≤20 < \mid i-j\mid \leq 2. Each edge (vi,vj)(v_i,v_j) is assigned a weight i+ji+j. A sample graph with n=4n=4 is shown below.

The length of the path from v5v_5 to v6v_6 in the MST of previous question with n=10n = 10 is

  1. A.

    11

  2. B.

    25

  3. C.

    31

  4. D.

    41

Official answer key

Official answer key (GATE Computer Science & IT 2011 GATE 2011 · CS): C

Solutions and video are in the course

Question 56 · 2 marks Q3820

Which of the following options is the closest in the meaning to the word below:

Inexplicable

  1. A.

    Incomprehensible

  2. B.

    Indelible

  3. C.

    Inextricable

  4. D.

    Infallible

Official answer key

Official answer key (GATE Computer Science & IT 2011 GATE 2011 · CS): A

Solutions and video are in the course

Question 57 · 2 marks Q3821

If Log⁡(P)=(1/2)Log⁡(Q)=(1/3)Log⁡(R)Log⁡(P)=(1/2)Log⁡(Q)=(1/3)Log⁡(R), then which of the following options is TRUE?

  1. A.

    P2=Q3R2\text{P}^2 = \text{Q}^3\text{R}^2

  2. B.

    Q2=PR\text{Q}^2=\text{P}\text{R}

  3. C.

    Q2=R3P\text{Q}^2 = \text{R}^3\text{P}

  4. D.

    R=P2Q2\text{R}=\text{P}^2\text{Q}^2

Official answer key

Official answer key (GATE Computer Science & IT 2011 GATE 2011 · CS): B

Solutions and video are in the course

Question 58 · 2 marks Q3822

Choose the most appropriate word(s) from the options given below to complete the following sentence.

I contemplated _________ Singapore for my vacation but decided against it.

  1. A.

    to visit

  2. B.

    having to visit

  3. C.

    visiting

  4. D.

    for a visit

Official answer key

Official answer key (GATE Computer Science & IT 2011 GATE 2011 · CS): C

Solutions and video are in the course

Question 59 · 2 marks Q3823

Choose the most appropriate word from the options given below to complete the following sentence.

If you are trying to make a strong impression on your audience, you cannot do so by being understated, tentative or ________.

  1. A.

    hyperbolic

  2. B.

    restrained

  3. C.

    argumentative

  4. D.

    indifferent

Official answer key

Official answer key (GATE Computer Science & IT 2011 GATE 2011 · CS): B

Solutions and video are in the course

Question 60 · 2 marks Q3824

Choose the word from the options given below that is most nearly opposite in the meaning to the given word

Amalgamate

  1. A.

    merge

  2. B.

    split

  3. C.

    collect

  4. D.

    separate

Official answer key

Official answer key (GATE Computer Science & IT 2011 GATE 2011 · CS): B

Solutions and video are in the course

Question 61 · 2 marks Q3825

Few school curriculum include a unit on how to deal with bereavement and grief, and yet all students at some point in their lives suffer from losses through death and parting.

Based on the above passage which topic would not be included in a unit on bereavement?

  1. A.

    how to write a letter of condolence

  2. B.

    what emotional stages are passed through in the healing process

  3. C.

    what the leading causes of death are

  4. D.

    how to give support to a grieving friend

Official answer key

Official answer key (GATE Computer Science & IT 2011 GATE 2011 · CS): C

Solutions and video are in the course

Question 62 · 2 marks Q3826

P,Q,R and S are four types of dangerous microbes recently found in a human habitat. The area of each circle with its diameter printed in brackets represents the growth of a single microbe surviving human immunity system within 24 hours of entering the body. The danger to human beings varies proportionately with the toxicity, potency and growth attributed to a microbe shown in the figure below:

A pharmaceutical company is contemplating the development of a vaccine against the most dangerous microbe. Which microbe should the company target in its first attempt?

  1. A.

    P

  2. B.

    Q

  3. C.

    R

  4. D.

    S

Official answer key

Official answer key (GATE Computer Science & IT 2011 GATE 2011 · CS): D

Solutions and video are in the course

Question 63 · 2 marks Q3827

The variable cost (V) of manufacturing a product varies according to the equation V=4q, where q is the quantity produced. The fixed cost (F) of production of same product reduces with q according to the equation F=100/q. How many units should be produced to minimize the total cost (V+F)?

  1. A.

    5

  2. B.

    4

  3. C.

    7

  4. D.

    6

Official answer key

Official answer key (GATE Computer Science & IT 2011 GATE 2011 · CS): A

Solutions and video are in the course

Question 64 · 2 marks Q3828

A transporter receives the same number of orders each day. Currently, he has some pending orders (backlog) to be shipped. If he uses 7 trucks, then at the end of the 4th day he can clear all the orders. Alternatively, if he uses only 3 trucks, then all the orders are cleared at the end of the 10th day. What is the minimum number of trucks required so that there will be no pending order at the end of 5th day?

  1. A.

    4

  2. B.

    5

  3. C.

    6

  4. D.

    7

Official answer key

Official answer key (GATE Computer Science & IT 2011 GATE 2011 · CS): C

Solutions and video are in the course

Question 65 · 2 marks Q3829

A container originally contains 10 litres of pure spirit. From this container, 1 litre of spirit replaced with 1 litre of water. Subsequently, 1 litre of the mixture is again replaced with 1 litre of water and this process is repeated one more time. How much spirit is now left in the container?

  1. A.

    7.58 litres

  2. B.

    7.84 litres

  3. C.

    7 litres

  4. D.

    7.29 litres

Official answer key

Official answer key (GATE Computer Science & IT 2011 GATE 2011 · CS): D

Solutions and video are in the course