GATE 2022
65 questions
MCQ 32 · MSQ 15 · NAT 181-mark 30 · 2-mark 35
Questions 31–35 of 65
Consider a relation with the following three functional dependencies.
The number of superkeys in the relation is .
The number of superkeys in the relation is .
Answer: 8
Attributes A and B are never on the right side of any FD. So every key must have both A and B.
Closure of AB: . So AB is the only candidate key.
Superkeys are AB together with any subset of {C, D, E}: .
Answer: 8
Closure of AB: . So AB is the only candidate key.
Superkeys are AB together with any subset of {C, D, E}: .
Answer: 8
The number of arrangements of six identical balls in three identical bins is ____.
Answer: 7
Both the balls and the bins are identical. So each arrangement is a way to split 6 into at most 3 parts.
The ways are: 6, 5+1, 4+2, 3+3, 4+1+1, 3+2+1, 2+2+2
Answer: 7
The ways are: 6, 5+1, 4+2, 3+3, 4+1+1, 3+2+1, 2+2+2
Answer: 7
A cache memory that has a hit rate of 0.8 has an access latency 10 ns and miss penalty 100 ns. An optimization is done on the cache to reduce the miss rate. However, the optimization results in an increase of cache access latency to 15 ns, whereas the miss penalty is not affected. The minimum hit rate (rounded off to two decimal places) needed after the optimization such that it should not increase the average memory access time is _____.
Answer: 0.85
Average memory access time is the hit latency plus the miss rate the miss penalty.
Before the optimization: ns.
After the optimization:
Answer: 0.85
Before the optimization: ns.
After the optimization:
Answer: 0.85
The value of the following limit is _____
Answer: -0.5
At the numerator and the denominator , so it is a 0/0 form. Apply L'Hopital's rule.
Numerator derivative:
Denominator derivative:
Answer: -0.5
Numerator derivative:
Denominator derivative:
Answer: -0.5
Consider the resolution of the domain name by a DNS resolver. Assume that no resource records are cached anywhere across the DNS servers and that iterative query mechanism is used in the resolution. The number of DNS query-response pairs involved in completely resolving the domain name is ________.
Answer: 4
The iterative method is used and no cache holds any record. So the resolver has to ask each level one by one:
1. The root server points the resolver to the .in server
2. The .in server points the resolver to org.in
3. The org.in server points the resolver to gate.org.in
4. The gate.org.in server gives back the IP of www.gate.org.in
Answer: 4
1. The root server points the resolver to the .in server
2. The .in server points the resolver to org.in
3. The org.in server points the resolver to gate.org.in
4. The gate.org.in server gives back the IP of www.gate.org.in
Answer: 4