GATE 2010 Computer Science and Information Technology (CS) Questions with Solutions

GATE 2010

82 questions

MCQ 821-mark 39 · 2-mark 43

Questions 56–60 of 82

Q56Network Layer Protocol2 marksMCQ−0.67 if wrong
Consider a network with 6 routers R1 to R6 connected with links having weights as shown in the following diagram
R1 R2 R4 R6 R3 R5 6 7 8 3 2 1 4 9
All the routers use the distance vector based routing algorithm to update their routing tables. Each router starts with its routing table initialized to contain an entry for each neighbour with the weight of the respective connecting link. After all the routing tables stabilize, how many links in the network will never be used for carrying any data?

Q57Network Layer Protocol2 marksMCQ−0.67 if wrong
Suppose computers A and B have IP addresses 10.105.1.113 and 10.105.1.91 respectively and they both use the same net mask N. Which of the values of N given below should not be used if A and B should belong to the same network?

Q58Network Layer Protocol1 markMCQ−0.33 if wrong
One of the header fields in an IP datagram is the Time to Live (TTL) field. Which of the following statements best explains the need for this field?

Q59Application Layer Protocols1 markMCQ−0.33 if wrong
Which one of the following is not a client server application?

Q60Software Engineering2 marksMCQ−0.67 if wrong
The following program is to be tested for statement coverage:

begin
    if (a ==b) {S1; exit;}
    else if (c ==d) {S2;}
    else {S3; exit;}
    S4;
end
The test cases T1, T2, T3 and T4 given below are expressed in terms of the properties satisfied by the values of variables a, b, c and d. The exact values are not given.

T1 : a, b, c and d are all equal
T2 : a, b, c and d are all distinct
T3 : a=b and c !=d
T4 : a !=b and c=d

Which of the test suites given below ensures coverage of statements S1, S2, S3 and S4?