GATE 2008
185 questions
MCQ 1851-mark 52 · 2-mark 133
Questions 161–165 of 185
Answer: (A)
Answer: non-key and ordering
[Notation: In the following NYO represents the action Y (R for read, W for write) performed by transaction N on object O.]
Which of the following statements is TRUE?
Answer: (D)
Two schedules are conflict equivalent if we can get one from the other by swapping non-conflicting operations.
S1Here, we can swap R(C) and W(B), since they are a non-conflicting pair (as they work on different data items).
After the swap, the schedule becomes
S2 Here, we can move R(C) to after the T2 operations R(A), W(A) and W(B), since each of them forms a non-conflicting pair with R(C) (as they work on different data items).
Also, we can move W(C) so it runs before all the T1 operations, as each T1 operation forms a non-conflicting pair with W(C) (since they work on different data items).
After the swaps, the schedule becomes
S3Here, we can't swap the operations to make it because of the conflicting pair W(A) and W(A).
Option S1 is conflict equivalent to S2, but not to S3 is the correct answer.
Answer: (B)
Answer: B
The link works in asynchronous mode. So each byte is sent with some extra bits, such as start bit, stop bits and parity bit. The start bit and stop bit are always needed.
Bits used in one frame: for the start bit, for the data, for the parity, for the stop bits.
Number of bytes sent:
Answer: (B)
The bucket holds Mbits of tokens and is refilled at Mbps. The computer sends at the full rate Mbps, so tokens are used at 10 Mbps and added at 2 Mbps.
The bucket therefore drains at the net rate Mbps. Full-rate sending lasts until the bucket is empty:
Check: in 2 s the computer sends Mbits, which equals the 16 Mbits in the bucket plus Mbits of new tokens. (Dividing 16 by 10 ignores the refill, and dividing 16 by 2 ignores the sending rate.)
Answer: (B)
The table shows data received by a receiver and has n corrupted bits. What is the minimum possible value of n?
Answer: (C)
Rows: has four 1s (ok), has five 1s (fails), has two (ok), has four (ok), has four (ok).
Columns: two 1s (ok), four (ok), one (fails), two (ok), two (ok), three (fails), four (ok), one (fails).
So one row and three columns () fail. One flipped bit changes the parity of only one column, so at least 3 bits are corrupted.
3 flips are enough: flip the bit at (this fixes row and column ), then flip and (these fix columns and , and row stays even because two of its bits change). All parities now hold.
Minimum .
Answer: (C)