CS and IT Gate 2014 Set-2 Questions with Answer

Ques 1 GATE 2014 SET-2


Consider two strings A = ""qpqrr"" and B = ""pqprqrp"". Let x be the length of the longest common subsequence (not necessarily contiguous) between A and B and let y be the number of such longest common subsequences between A and B. Then x + 10y = _______.


(34 to 34) is the correct answer.

Ques 2 GATE 2014 SET-2


Suppose P, Q, R, S, T are sorted sequences having lengths 20, 24, 30, 35, 50 respectively. They are to be merged into a single sequence by merging together two sequences at a time. The number of comparisons that will be needed in the worst case by the optimal algorithm for doing this is _______.


(358 to 358) is the correct answer.

Ques 3 Gate 2014 Set-2


The number of people diagnosed with dengue fever (contracted from the bite of a mosquito) in north India is twice the number diagnosed last year. Municipal authorities have concluded that measures to control the mosquito population have failed in this region. Which one of the following statements, if true, does not contradict this conclusion?

A

A high proportion of the affected population has returned from neighbouring countries where dengue is prevalent.

B

More cases of dengue are now reported because of an increase in the Municipal Office’s administrative efficiency.

C

Many more cases of dengue are being diagnosed this year since the introduction of a new and effective diagnostic test.

D

The number of people with malarial fever (also contracted from mosquito bites) has increased this year.


(English Grammar) is the correct answer.

Ques 4 Gate 2014 Set-2


The old city of Koenigsberg, which had a German majority population before World War 2, is now called Kaliningrad. After the events of the war, Kaliningrad is now a Russian territory and has a predominantly Russian population. It is bordered by the Baltic Sea on the north and the countries of Poland to the south and west and Lithuania to the east respectively. Which of the statements below can be inferred from this passage?

A

Kaliningrad was historically Russian in its ethnic make up.

B

Kaliningrad is a part of Russia despite it not being contiguous with the rest of Russia.

C

Koenigsberg was renamed Kaliningrad, as that was its original Russian name.

D

Poland and Lithuania are on the route from Kaliningrad to the rest of Russia.


(English Grammar) is the correct answer.

Ques 5 Gate 2014 Set-2


Match the columns.

Column 1 Column 2
1) eradicate P) misrepresent
2) distort Q) soak completely
3) saturate R) use
4) utilize S) destroy utterly

A

1:S, 2:P, 3:Q, 4:R

B

1:P, 2:Q, 3:R, 4:S

C

1:Q, 2:R, 3:S, 4:P

D

1:S, 2:P, 3:R, 4:Q


(English Grammar) is the correct answer.

Ques 6 Gate 2014 Set-2


Who _________ was coming to see us this evening?

A

you said

B

did you say

C

did you say that

D

had you


(English Grammar) is the correct answer.

Ques 7 Gate 2014 Set-2


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

India is a post-colonial country because

A

It was a former British colony

B

Indian Information Technology professionals have colonized the world

C

India does not follow any colonial practices

D

India has helped other countries gain freedom


(English Grammar) is the correct answer.

Ques 8 Gate 2014 Set-2


If x is real and |x2 - 2x + 3| = 11, then possible values of |- x3 + x2 - x| include

A

2,4

B

2,14

C

4,52

D

14,52


(1) is the correct answer.

Ques 9 GATE 2014 SET-2


Which one of the following is TRUE about the interior gateway routing protocols Routing Information Protocol (RIP) and Open Shortest Path First (OSPF)?

A

RIP uses distance vector routing and OSPF uses link state routing

B

OSPF uses distance vector routing and RIP uses link state routing

C

Both RIP and OSPF use link state routing

D

Both RIP and OSPF use distance vector routing


(a) is the correct answer.

Ques 10 GATE 2014 SET-2


Which one of the following socket API functions converts an unconnected active TCP socket into a passive socket?

A

connect

B

bind

C

listen

D

accept


(c) is the correct answer.

Ques 11 GATE 2014 SET-2


In the diagram shown below, L1 is an Ethernet LAN and L2 is a Token-Ring LAN. An IP packet originates from sender S and traverses to R, as shown. The links within each ISP and across the two ISPs, are all point-to-point optical links. The initial value of the TTL field is 32. The maximum possible value of the TTL field when R receives the datagram is _______.


(26 to 26) is the correct answer.

Ques 12 GATE 2014 SET-2


Consider the store and forward packet switched network given below. Assume that the bandwidth of each link is 106 bytes/sec. A user on host A sends a file of size 103 bytes to host B through routers R1 and R2 in three different ways. In the first case a single packet containing the complete file is transmitted from A to B. In the second case, the file is split into 10 equal parts, and these packets are transmitted from A to B. In the third case, the file is split into 20 equal parts and these packets are sent from A to B. Each packet contains 100 bytes of header information along with the user data. Consider only transmission time and ignore processing, queuing and propagation delays. Also assume that there are no errors during transmission. Let T1, T2 and T3 be the times taken to transmit the file in the first, second and third case respectively. Which one of the following is CORRECT?

A

T1 < T2 < T3

B

T1 > T2 > T3

C

T2 = T3, T3 < T1

D

T1 = T3, T3 > T2


(d) is the correct answer.

Ques 13 GATE 2014 SET-2


An IP machine Q has a path to another IP machine H via three IP routers R1, R2, and R3.
Q-R1-R2-R3-H
H acts as an HTTP server, and Q connects to H via HTTP and downloads a file. Session layer encryption is used, with DES as the shared key encryption protocol. Consider the following four pieces of information:
[I1] The URL of the file downloaded by Q
[I2] The TCP port numbers at Q and H
[I3] The IP addresses of Q and H
[I4] The link layer addresses of Q and H
Which of I1, I2, I3, and I4 can an intruder learn through sniffing at R2 alone?

A

Only I1 and I2

B

Only I1

C

Only I2 and I3

D

Only I3 and I4


(c) is the correct answer.

Unique Visitor Count

Total Unique Visitors

Loading......