DB 2022
DB 2022
DB 2022
1. Which of the following is not superkey in a relation with attributes V, W, X, Y, Z and primary key VY? [0.5]
(a) VY
(b) VXYZ
(c) XVWY
(d) WXZ
(e) WVXYZ
(f) V
2. Given basic ER and relational models, which of the following is not correct? [0.5]
3. A relation with attributes A,B (A as primary key and B as foreign key pointing to A), contains the tuples: (2,3),(3,2).
Of course the relation was blank initially and then there had been DML operations on the table for reaching this
state. Which option is true? [1]
8. Let E1 and E2 be two entities in an E-R diagram with simple single-valued attributes, R1 and R2 are two relationships
between E1 and E2, Where R1 is one-to-many and R2 is many-to-many. R1 has one attribute of its own and R2 has
two attributes of its own. What is the minimum number of tables required represent this situation in the relation
model? [1]
(a) 1
(b) 2
(c) 3
(d) 4
9. The maximum number of superkeys for the relation schema R(A,B,D,E) with D as the only key is: [1]
(a) 15
(b) 8
(c) 7
(d) 4
10. Consider the relation schema R(E,F,G,H,I,J,K,L,M,N) and the set of functional dependencies {{E,F}→{G},
F→{I,J}, {E,H}→{K,L}, K→{M},{L}->{N}} on R. Which is key for R? [1]
(a) {E,F}
(b) {E,F,H}
(c) {E,F,K}
(d) {E}
(e) {E,F,H,K,L}
11. For a relation R(ABC) with functional dependency set {A->BC, B->C}, which one is false? [1]
12. Given the set F={X→YZ, YW→Z, Z→X, X→W}, using membership algorithm, to determine if the FD X→W is
redundant in F, how many iterations are required? What is the conclusion? [1]
(c) YZ→X
(d) Z→XY
14. Without using which Armstrong’s axiom, can union rule be proven? [0.5]
(a) Augmentation
(b) Transitivity
(c) Reflexivity
(d) None of the other options
15. A relation with two attributes A and B has the functional dependency as F={A→B, B→A}. Which statement is
implied by this dependency? [1]
(a) A is a foreign key to B, and B is a foreign key to A
18. Consider two Structured Query Statements from the Employee Table.
S1: select * from Employee where 1&2 | 1!=2|2 or upper(’hi’) <> lower(’HI’)
S2: select * from Employee where 1<2 or upper(’HI’) <> lower(’HI’) [1]
19. On which of the following, the minimum number of relations does not depend when converting a ER model to
relational model? [1]
20. Minimum how many relations and how many foreign keys will be required to convert this ER diagram to relational
model? [1]
21. p = |F+ | for F (functional dependency set) defined on R(ABCD) and F=A→B, B→C, C→D, D→A. Which option is
wrong? [1]
(a) p = 49
(b) p = 128
(c) p = 16
(d) p = 105
22. The following functional dependencies are given : AB→CD, AF→D, DE→F, C→G. F→E. G→A. Which one of the
following options is false? [0.5]
(a) CD → AC
(b) BD → CD
(c) BC → CD
(d) AC → BC
26. Which one of the following queries always gives the same answer as the nested query shown below:
Select * from R where a in (select S.a from S) [1]
(c) Select R.* from R, (Select distinct a from S) as S1 where R.a = S1.a
(a) External
(b) Conceptual
(c) Physical
(d) None of the other options
(a) There cannot be any two tuples with same values for all attributes
(b) tuples and attributes are unordered
(c) Each tuple in a relation represents one entity in the entity set
(d) None of the other options
32. What is the minimum number of tables a binary relationship will have with one weak entity with (1, 1)
participation in one side and one strong entity with (0, n) participation in the other side, and the relationship
has two multivalued attribute of its own. [1]
33. The ability to query data, as well as insert, delete, and alter tuples, is offered by [1]
(a) TCL
(b) DCL
(c) DDL
(d) DML
(a) MySQL
(b) Microsoft Access
(c) IBM DB2
(d) Microsoft Excel
(a) Age
(b) Gender
(c) Name
(d) Roll number
BEST OF LUCK