CS and IT GATE 2014 Set-2 Questions with Answer

Ques 1 Algorithms


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 Algorithms


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 Aptitude


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.



Ques 4 Aptitude


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.



Ques 5 Aptitude


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



Ques 6 Aptitude


Who _________ was coming to see us this evening?

A

you said

B

did you say

C

did you say that

D

had you



Ques 7 Aptitude


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



Ques 8 Aptitude


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



Ques 9 Computer Networks


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



Ques 10 Computer Networks


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



Ques 11 Computer Networks


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 Computer Networks


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



Ques 13 Computer Networks


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



Unique Visitor Count

Total Unique Visitors

Loading......