GATE 2016 (Session 2)
65 questions
MCQ 38 · NAT 271-mark 30 · 2-mark 35
Questions 31–35 of 65
B+ Trees are considered BALANCED because
Answer: (A)
In a B+ tree all leaf nodes are at the same depth, so every path from the root to a leaf has the same length. That is why it is called balanced.
The tree keeps this when it changes. A split or merge starts at a leaf and moves upward. The height changes only at the root: when the root splits, a new root is added above all leaves at once, and when the root is left with a single child, the tree loses a level at the top. So no leaf becomes deeper than another.
(B) is wrong because path lengths never differ, not even by 1. (C) and (D) talk about counts of children or records. Nodes need only be at least about half full, so a node with the minimum number of children can sit beside a full one, and the counts can differ by more than 1.
Answer: (A)
The tree keeps this when it changes. A split or merge starts at a leaf and moves upward. The height changes only at the root: when the root splits, a new root is added above all leaves at once, and when the root is left with a single child, the tree loses a level at the top. So no leaf becomes deeper than another.
(B) is wrong because path lengths never differ, not even by 1. (C) and (D) talk about counts of children or records. Nodes need only be at least about half full, so a node with the minimum number of children can sit beside a full one, and the counts can differ by more than 1.
Answer: (A)
Suppose a database schedule S involves transactions T1,...,Tn. Construct the precedence graph of S with vertices representing the transactions and edges representing the conflicts. If S is serializable, which one of the following orderings of the vertices of the precedence graph is guaranteed to yield a serial schedule?
Answer: (A)
An edge tells us that has to run before the other transaction. If S is serializable, its precedence graph has no cycle. A topological order keeps every edge in the right direction, so it gives an equivalent serial schedule.
Answer: Topological order
Answer: Topological order
Anarkali digitally signs a message and sends it to Salim. Verification of the signature by Salim requires
Answer: (A)
Anarkali uses her private key to sign the message. So Salim, or anyone else, checks the signature with her public key.
Answer: Anarkali's public key
Answer: Anarkali's public key
In an Ethernet local area network,which one of the following statements is TRUE?
Answer: (D)
Let us check each statement one by one:
- A station goes on sensing the channel while it sends (this is how it finds a collision). So the statement is False.
- The jam signal informs all stations that a collision has taken place. Padding is a different thing. So the statement is False.
- When a collision happens, the station stops sending. So the statement is False.
- Exponential backoff makes stations wait for a random time that keeps growing, so a second collision is less likely. So the statement is True.
Answer: The exponential backoff mechanism reduces the probability of collision on retransmissions
- A station goes on sensing the channel while it sends (this is how it finds a collision). So the statement is False.
- The jam signal informs all stations that a collision has taken place. Padding is a different thing. So the statement is False.
- When a collision happens, the station stops sending. So the statement is False.
- Exponential backoff makes stations wait for a random time that keeps growing, so a second collision is less likely. So the statement is True.
Answer: The exponential backoff mechanism reduces the probability of collision on retransmissions
Identify the correct sequence in which the following packets are transmitted on the network by a host when a browser requests a webpage from a remote server,assuming that the host has just been restarted.
Answer: (C)
The host was just restarted, so the cache is empty:
1. DNS query finds the server's IP
2. TCP SYN starts the connection
3. HTTP GET is sent over that connection
Answer: DNS query, TCP SYN, HTTP GET request
1. DNS query finds the server's IP
2. TCP SYN starts the connection
3. HTTP GET is sent over that connection
Answer: DNS query, TCP SYN, HTTP GET request