GATE 2017 (Session 1)
64 questions
MCQ 44 · NAT 201-mark 30 · 2-mark 34
Questions 26–30 of 64
The following functional dependencies hold true for the relational schema R{V,W,X,Y,Z}:
V W
VW X
Y VX
Y Z
Which of the following is irreducible equivalent for this set of functional dependencies ?
V W
VW X
Y VX
Y Z
Which of the following is irreducible equivalent for this set of functional dependencies ?
Answer: (A)
Find the minimal (irreducible) cover.
1. Split right sides: .
2. In , is extra, since . So it becomes .
3. is redundant, since and .
4. The rest are needed: , and cannot be derived from the others.
Minimal cover: .
Options (C) and (D) keep the redundant . Option (B) has , which does not follow from the given set because .
Answer: (A)
1. Split right sides: .
2. In , is extra, since . So it becomes .
3. is redundant, since and .
4. The rest are needed: , and cannot be derived from the others.
Minimal cover: .
Options (C) and (D) keep the redundant . Option (B) has , which does not follow from the given set because .
Answer: (A)
Consider the following grammar.
PxQRS
Qyz|z
Rw|
Sy
What is FOLLOW (Q) ?
PxQRS
Qyz|z
Rw|
Sy
What is FOLLOW (Q) ?
Answer: (C)
Look at the rule . Here Q is followed by RS. FIRST(R) = {w, }, so w goes into FOLLOW(Q). R can also become empty, so FIRST(S) = {y} goes in as well.
FOLLOW(Q) = {w, y}
Answer: {w, y}
FOLLOW(Q) = {w, y}
Answer: {w, y}
Threads of a process share
Answer: (D)
All threads inside one process use the same address space. This means they share the global variables and the heap. Each thread keeps its own stack and registers.
Answer: Both heap and global variables
Answer: Both heap and global variables
Let X be a Gaussian random variable mean 0 and variance . Let Y=max(X, 0) where max (a,b) is the maximum of a and b. The median of Y is ____________.
Answer: 0
The distribution of X is symmetric about 0. So P(X 0) = 0.5. The value of Y = max(X, 0) is 0 every time X 0. This gives and also . So the median of Y is 0.
Answer: 0
Answer: 0
Let T be a tree with 10 vertices. The sum of the degrees of all the vertices in T is _________.
Answer: 18
A tree that has 10 vertices has 9 edges. The sum of all degrees is 2 the number of edges, which gives 18.
Answer: 18
Answer: 18