Test 1
Test 1
Test 1
Directions for questions 1 to 35: Select the correct alterna- 6. Consider the following table:
tive from the given choices. Sailor
Questions 1 to 15 carry one mark each: Sname Rating Age
1. Consider the given ER-Diagram Yashu 9 35
Lalit 10 45
Faculty Meeting Yashu 9 40
Bose 8 41
The given ER-Diagram represents How many tuples are returned by following expression,
(A) Unary Relationship (B) Binary Relationship pSname, Rating (Sailor)
(C) Ternary Relationship (D) None of the above (A) 4 (B) 3
(C) 2 (D) 1
2. Consider the given ER-Diagram:
7. Which of the following statement is FALSE, for 2
Since Pname Relations R and S?
Wld Name Pld (A) RXS returns a Relation with all the fields of R in the
Budget same order as they appear in R followed by all the
fields of S in the same order as they appear in S.
Worker Works Project (B) The fields in RXS have the same domains as the
corresponding fields in R and S.
(C) R ∩ S = R – (R – S)
Which of the following is the descriptive Attribute? (D) R ∩ S = S – (S – R)
(A) WId (B) Since 8. Which of the following correctly describes “Prime
(C) PId (D) {WId, PId} Attribute”?
3. Which of the following statements is FALSE about (A) It should be a part of primary key
“Weak Entity”? (B) It should be a part of any candidate key
(A) A weak entity can be identified uniquely only by (C) It should be a part of every candidate key
considering some of its attributes in conjunction (D) None of the above.
with the primary key of another Entity. 9. Let X, Y and Z denote sets of attributes over a relation
(B) The owner entity set and the Weak entity set must schema R. Match the following.
participate in a one-to-many relationship set. I. If X → Y, then XZ → YZ for any Z
(C) One owner entity is associated with one or more II. If X ⊇ Y, then X → Y
weak entities, but each weak entity has a single III. If X → YZ, then X → Y and X → Z
owner. P. Reflexivity
(D) The weak entity set may/may not have total par- Q. Augmentation
ticipation in the identifying relationship set. R. Decomposition
(A) I–Q, II–P, III–R (B) I–P, II–R, III–Q
4. Consider the given Relation schema: (C) I–P, II–Q, III–R (D) I–R, II–Q, III–P
Student (RNo: integer, sname: string, login: string, age:
10. Which of the following are additional features of SQL?
integer, grade: char(1), parent-name: string, percent-
(A) SQL has language constructs for specifying views,
age: Real).
also known as virtual tables, using the CREATE
What is the “Arity” of given Relation schema?
VIEW Statement
(A) 2, 3, 1, 1 (B) 7 (B) SQL and Relational databases can interact with
(C) 3, 4 (D) 6 new technologies such as XML and OLAP.
5. Which of the following specifies “Cardinality” of a (C) SQL has Language constructs for creating triggers
Relation? (D) All the above
(A) The number of fields in a Relation 11. Consider the given Functional Dependencies for
(B) The number of columns in a Relation Employee – Project Relation:
(C) The number of Tuples in a Relation ENo → EName
(D) Both (A) and (C) PNo → PName, Location
3.112 | Database Test 1
FROM Worker 32. Which of the following Tuple is not part of sailor-1 and
GROUPBY Project-Number sailor-2?
HAVING COUNT (*) ≥ 3 (A)
(A) Yashu 9 35 Kamal 10 41
Project-Number MIN (Age) (B)
10 24 Lalit 10 45 Raj 10 40
20 19 (C)
(B) Ana 7 40 Kamal 7 40
Project-Number MIN (Age) (D)
10 24 Bose 8 41 Lalit 10 45
Answer Keys
1. A 2. B 3. D 4. B 5. C 6. B 7. D 8. B 9. A 10. D
11. B 12. A 13. A 14. B 15. B 16. D 17. B 18. C 19. B 20. A
21. A 22. D 23. C 24. A 25. B 26. A 27. D 28. B 29. D 30. A
31. C 32. D 33. D 34. B 35. C
Database Test 1 | 3.115
28. T1 T2 Table-4