GATE 2007
184 questions
MCQ 1841-mark 184
Questions 151–155 of 184
Which one of the following statements if FALSE?
Answer: (D)
(A) True. Take a relation with attributes . A non-trivial FD makes , so is a superkey. The same holds for . If neither holds, there is no non-trivial FD. So every FD has a superkey on the left, and the relation is in BCNF.
(B) True. A partial dependency needs a proper non-empty subset of a key. A key with one attribute has none, so there is no partial dependency and the relation is in 2NF.
(C) True. 3NF needs, for every non-trivial FD , that is a superkey or every attribute of is prime. So an FD chain key non-key prime attribute is allowed, which is a transitive dependency of a prime attribute, and the relation is still in 3NF.
(D) False. In BCNF the left side of every non-trivial FD must be a superkey. So the chain key non-key prime attribute cannot occur, because the non-key on the left of the second FD would have to be a superkey. A transitive dependency on a prime attribute is not possible.
Answer: (D)
(B) True. A partial dependency needs a proper non-empty subset of a key. A key with one attribute has none, so there is no partial dependency and the relation is in 2NF.
(C) True. 3NF needs, for every non-trivial FD , that is a superkey or every attribute of is prime. So an FD chain key non-key prime attribute is allowed, which is a transitive dependency of a prime attribute, and the relation is still in 3NF.
(D) False. In BCNF the left side of every non-trivial FD must be a superkey. So the chain key non-key prime attribute cannot occur, because the non-key on the left of the second FD would have to be a superkey. A transitive dependency on a prime attribute is not possible.
Answer: (D)
The order of a leaf node in a B+ tree is the maximum number of (value, data record pointer) pairs it can hold. Given that the block size is 1K bytes, data record pointer is 7 bytes long, the value field is 9 bytes long and a block pointer is 6 bytes long, what is the order of the leaf node?
Answer: (A)
Each leaf stores n (value, record pointer) pairs. It also stores one block pointer that points to the next leaf:
Answer: 63
Answer: 63
Consider the following schedules involving two transactions. Which one of the
following statements is TRUE?
Answer: (C)
Two operations conflict when they are on the same item, in different transactions, and at least one is a write. Add an edge when the operation of comes first.
- Take : comes before , so . comes before , so . The graph has a cycle, so the schedule is not conflict serializable.
- Take : comes before , so . comes before , so . There is only one direction of edges, so the schedule is conflict serializable.
S1 is not conflict serializable and S2 is conflict serializable.
Answer: (C)
- Take : comes before , so . comes before , so . The graph has a cycle, so the schedule is not conflict serializable.
- Take : comes before , so . comes before , so . There is only one direction of edges, so the schedule is conflict serializable.
S1 is not conflict serializable and S2 is conflict serializable.
Answer: (C)
Match the following:
(P) SMTP (1) Application layer
(Q) BGP (2) Transport layer
(R) TCP (3) Data link layer
(S) PPP (4) Network layer
(5) Physical layer Answer: (B)
- SMTP (P) sends e-mail between mail servers, so it is an application layer protocol: P - 1.
- BGP (Q) exchanges routes between networks on the Internet. Routing belongs to the network layer, so Q goes with the network layer: Q - 4.
- TCP (R) gives reliable end-to-end delivery between processes, so it is a transport layer protocol: R - 2.
- PPP (S) sets up a direct link between two nodes, so it is a data link layer protocol: S - 3.
Answer: (B)
Let us consider a statistical time division multiplexing of packets. The number of sources is 10. In a time unit, a source transmits a packet of 1000 bits. The number of sources sending data for the first 20 time units is 6, 9, 3, 7, 2, 2, 2, 3, 4, 6, 1, 10, 7, 5, 8, 3, 6, 2, 9, 5 respectively. The output capacity of multiplexer is 5000 bits per time unit. Then the average number of backlogged of packets per time unit during the given period is
Answer: (B)
The multiplexer sends at most packets per time unit. Packets that cannot be sent wait as backlog and are added to the next time unit.
With packets arriving in unit , the backlog after unit is .
- Unit 1: .
- Unit 2: .
- Unit 3: .
- Unit 4: , and so on.
Backlog after each of the 20 units: 1, 5, 3, 5, 2, 0, 0, 0, 0, 1, 0, 5, 7, 7, 10, 8, 9, 6, 10, 10.
Their sum is .
packets per time unit.
Answer: (B)
With packets arriving in unit , the backlog after unit is .
- Unit 1: .
- Unit 2: .
- Unit 3: .
- Unit 4: , and so on.
Backlog after each of the 20 units: 1, 5, 3, 5, 2, 0, 0, 0, 0, 1, 0, 5, 7, 7, 10, 8, 9, 6, 10, 10.
Their sum is .
packets per time unit.
Answer: (B)