GATE 2014 (Session 3)
65 questions
MCQ 47 · NAT 181-mark 30 · 2-mark 35
Questions 31–35 of 65
What is the optimized version of the relation algebra expression , where A1, A2 are sets of attributes in r with and F1, F2 are Boolean expressions based on the attributes in r?
Answer: (A)
Let us look at each step:
- Two selections can be merged into one:
- As , the two projections reduce to one:
Answer:
- Two selections can be merged into one:
- As , the two projections reduce to one:
Answer:
A prime attribute of a relation scheme R is an attribute that appears
Answer: (B)
A prime attribute is an attribute that is part of at least one candidate key.
Answer: in some candidate key of R
Answer: in some candidate key of R
In the following pairs of OSI protocol layer/sub-layer and its functionality, the INCORRECT pair is
Answer: (B)
The physical layer does bit synchronization. The data link layer works on framing, error control and flow control.
All the other pairs are right.
Answer: Data Link Layer and Bit synchronization
All the other pairs are right.
Answer: Data Link Layer and Bit synchronization
A bit-stuffing based framing protocol uses an 8-bit delimiter pattern of 01111110. If the output bit-string after stuffing is 01111100101, then the input bit-string is
Answer: (B)
In bit stuffing, the sender puts a 0 after every five 1s in a row. So we take out that extra 0:
0 11111 0 0101 0 11111 0101 = 0111110101
Answer: 0111110101
0 11111 0 0101 0 11111 0101 = 0111110101
Answer: 0111110101
Host A (on TCP/IP v4 network A) sends an IP datagram D to host B (also on TCP/IP V4 network B). Assume that no error occurred during the transmission of D. When D reaches B, which of the following IP header field(s) may be different from that of the original datagram D?
(i) TTL
(ii) Checksum
(iii) Fragment Offset
(i) TTL
(ii) Checksum
(iii) Fragment Offset
Answer: (D)
Let us look at each field:
- TTL goes down by one at every router.
- Checksum is calculated again each time the header changes.
- If a router breaks D into fragments, each fragment gets its own Fragment Offset value.
So all three fields may be different.
Answer: (i), (ii) and (iii)
- TTL goes down by one at every router.
- Checksum is calculated again each time the header changes.
- If a router breaks D into fragments, each fragment gets its own Fragment Offset value.
So all three fields may be different.
Answer: (i), (ii) and (iii)