GATE 2014 (Session 1)
65 questions
MCQ 40 · NAT 251-mark 30 · 2-mark 35
Questions 36–40 of 65
Consider a token ring network with a length of 2km having 10 stations including a monitoring station. The propagation speed of the signal is 2x m/s and the token transmission time is ignored. If each station is allowed to hold the token for 2 sec, the minimum time for which the monitoring station should wait (in sec) before assuming that the token is lost is _______.
Answer: 28 to 30
Time for the signal to go once around the ring = 2000 / () = 10 s.
In the worst case, each of the other 9 stations keeps the token for 2 s. This gives 18 s.
So the monitor must wait at least 10 + 18 = 28 s. If the monitor's own holding time is counted, it is 30 s. Both values are accepted.
Answer: 28
In the worst case, each of the other 9 stations keeps the token for 2 s. This gives 18 s.
So the monitor must wait at least 10 + 18 = 28 s. If the monitor's own holding time is counted, it is 30 s. Both values are accepted.
Answer: 28
Let the size of congestion window of a TCP connection be 32 KB when a timeout occurs. The round trip time of the connection is 100 msec and the maximum segment size used is 2kB. The time taken (in msec) by the TCP connection to get back to 32KB congestion window is ______
Answer: 1100 to 1300
When the timeout happens, ssthresh becomes 16 KB and cwnd drops to 2 KB (1 MSS).
- Slow start: cwnd grows 2 4 8 16 KB. This takes 3 RTTs.
- Congestion avoidance: cwnd rises by 2 KB every RTT, so 18, 20, , 32 KB. This takes 8 RTTs.
In total there are 11 RTTs, so 11 RTTs 100 ms = 1100 ms.
Answer: 1100
- Slow start: cwnd grows 2 4 8 16 KB. This takes 3 RTTs.
- Congestion avoidance: cwnd rises by 2 KB every RTT, so 18, 20, , 32 KB. This takes 8 RTTs.
In total there are 11 RTTs, so 11 RTTs 100 ms = 1100 ms.
Answer: 1100
Consider a selective repeat sliding window protocol that uses a frame size of 1 KB to send data on a 1.5 Mbps link with a one-way latency of 50 msec. To achieve a link utilization of 60%, the minimum number of bits required to represent the sequence number field is ________.
Answer: 5
Time to send one frame = 8192 / 1.5 Mbps 5.46 ms. One full cycle = 5.46 + 2 50 = 105.46 ms.
For 60% utilization: 12 frames.
For selective repeat, the sequence number bits are found from: bits.
Answer: 5
For 60% utilization: 12 frames.
For selective repeat, the sequence number bits are found from: bits.
Answer: 5
Consider the following four schedules due to three transactions (indicted by the subscript) using read and write on a data item x, denoted by r(x) and w(x) respectively. Which one of them is conflict serializable?
Answer: (D)
Build the precedence graph of each schedule. Two operations on conflict when they come from different transactions and at least one is a write.
- (A) r1(x); r2(x); w1(x); r3(x); w2(x): r2 comes before w1, so . Also r1 comes before w2, so . Cycle.
- (B) r2(x); r1(x); w2(x); r3(x); w1(x): r1 comes before w2, so . Also r2 comes before w1, so . Cycle.
- (C) r3(x); r2(x); r1(x); w2(x); w1(x): r1 comes before w2, so . Also r2 comes before w1, so . Cycle.
- (D) r2(x); w2(x); r3(x); r1(x); w1(x): w2 comes before r3 and r1, so and . r3 comes before w1, so . There is no cycle, so the schedule is conflict equivalent to the serial order .
Answer: (D)
- (A) r1(x); r2(x); w1(x); r3(x); w2(x): r2 comes before w1, so . Also r1 comes before w2, so . Cycle.
- (B) r2(x); r1(x); w2(x); r3(x); w1(x): r1 comes before w2, so . Also r2 comes before w1, so . Cycle.
- (C) r3(x); r2(x); r1(x); w2(x); w1(x): r1 comes before w2, so . Also r2 comes before w1, so . Cycle.
- (D) r2(x); w2(x); r3(x); r1(x); w1(x): w2 comes before r3 and r1, so and . r3 comes before w1, so . There is no cycle, so the schedule is conflict equivalent to the serial order .
Answer: (D)
Given the following two statements:
S1: Every table with two single-valued attributes is in 1NF, 2NF, 3NF and BCNF
S2 : ABC, D E, EC is a minimal cover for the set of functional dependencies ABC, DE, AB E,EC.
Which one of the following is CORRECT?
S1: Every table with two single-valued attributes is in 1NF, 2NF, 3NF and BCNF
S2 : ABC, D E, EC is a minimal cover for the set of functional dependencies ABC, DE, AB E,EC.
Which one of the following is CORRECT?
Answer: (A)
S1: Take a table with two attributes . Any non-trivial FD, such as , has a left side that determines both attributes, so it is a superkey. So every FD has a superkey on the left and the table is in BCNF. BCNF implies 3NF, 2NF and 1NF. S1 is TRUE.
S2: In the given set, is redundant, since and . A minimal cover is . The proposed cover leaves out and keeps . Under the proposed set, , which does not contain , so cannot be derived. The two sets are not equivalent, so S2 is FALSE.
Answer: (A)
S2: In the given set, is redundant, since and . A minimal cover is . The proposed cover leaves out and keeps . Under the proposed set, , which does not contain , so cannot be derived. The two sets are not equivalent, so S2 is FALSE.
Answer: (A)