GATE 2016 (Session 2)
65 questions
MCQ 38 · NAT 271-mark 30 · 2-mark 35
Questions 61–65 of 65
Consider the following databases chedule with two transactions, T1 and T2.
where denotes a read operation by transaction on avariable Z, denotes a write operation by on avariable Z and denotes an abort by transaction .
Which one of the following statements about the above schedule is TRUE?
where denotes a read operation by transaction on avariable Z, denotes a write operation by on avariable Z and denotes an abort by transaction .
Which one of the following statements about the above schedule is TRUE?
Answer: (C)
Neither transaction reads a value that the other one wrote before the other one ends. T1 reads X before T2 writes it. The reads of T2 come before the write of T1. So if T1 aborts, T2 need not be aborted: no cascading abort.
S is not strict, because overwrites while T1 is still active.
Answer: S does not have a cascading abort
S is not strict, because overwrites while T1 is still active.
Answer: S does not have a cascading abort
Consider the following database table named water_schemes :
The number of tuples returned by the following SQL query is __________.
The number of tuples returned by the following SQL query is __________.
with total(name, capacity) as
select district_name, sum(capacity)
from water_schemes
group by district_name
with total_avg(capacity) as
select avg(capacity)
from total
select name
from total, total_avg
where total.capacity ≥ total_avg.capacityAnswer: 2
Total capacity for each district: Ajmer 20, Bikaner 10 + 10 + 20 = 40, Churu 10 + 20 = 30, Dungargarh 10.
Average of these totals = (20 + 40 + 30 + 10) / 4 = 25.
The districts whose total is 25 are Bikaner and Churu 2 rows.
Answer: 2
Average of these totals = (20 + 40 + 30 + 10) / 4 = 25.
The districts whose total is 25 are Bikaner and Churu 2 rows.
Answer: 2
A network has a data transmission bandwidth of bits per second. It uses CSMA/CD in the MAClayer. The maximum signal propagation time from one node to another node is 40 microseconds. The minimum size of a frame in the network is ______ bytes.
Answer: 200
In CSMA/CD the sender must still be transmitting when the collision signal gets back to it: .
Minimum frame size = bits = 200 bytes
Answer: 200
Minimum frame size = bits = 200 bytes
Answer: 200
For the IEEE802.11 MAC protocol for wireless communication,which of the following statements is/are TRUE?
I. At least three non-overlapping channels are available for transmissions.
II. The RTS-CTS mechan is misused for collision detection.
III. Unicast frames are ACKed.
I. At least three non-overlapping channels are available for transmissions.
II. The RTS-CTS mechan is misused for collision detection.
III. Unicast frames are ACKed.
Answer: (B)
Let us check each statement:
- I: 802.11 (2.4 GHz) has 3 channels that do not overlap (1, 6, 11). True
- II: RTS/CTS is for collision avoidance (hidden terminals). Wireless stations cannot detect collisions. False
- III: Unicast frames get an ACK. True
Answer: I and III only
- I: 802.11 (2.4 GHz) has 3 channels that do not overlap (1, 6, 11). True
- II: RTS/CTS is for collision avoidance (hidden terminals). Wireless stations cannot detect collisions. False
- III: Unicast frames get an ACK. True
Answer: I and III only
Consider a bits/second satellite communication link with one way propagation delay of 150 milliseconds. Selective retransmission(repeat) protocol is used on this link to send data with a frame size of 1 kilobyte. Neglect the transmission time of acknowledgement. The minimum number of bits required for the sequence number field to achieve 100% utilization is ________.
Answer: 4
One frame is 1 KB = 8192 bits ms. The round trip time (RTT) is 300 ms.
For 100% utilization, the window must hold 6 frames.
In selective repeat, the window size must satisfy . So: .
Answer: 4
For 100% utilization, the window must hold 6 frames.
In selective repeat, the window size must satisfy . So: .
Answer: 4