Ch 17: Functional Dependencies

12 Questions12 MCQs0 Short Questions0 Long Questions
๐ŸŽฏ Exam Practice Papers
SEMESTER PASS

CS403 - Database Management Systems Examination Practice

Timed practice exam simulation for CS403 - Database Management Systems.

๐Ÿ“˜ VU MID TERM EXAMLectures 1 to 22
โฑ๏ธ 60 Mins

Mid Term Examination

Covers syllabus of Lectures 1 to 22 with 30 high-yield MCQs in a timed exam environment.

๐Ÿ“30 MCQs
โฑ๏ธ60 Minutes
๐Ÿ“— VU FINAL TERM EXAMLectures 23 to 45
โฑ๏ธ 90 Mins

Final Term Examination

Comprehensive semester exam preparation with 45 MCQs covering Lectures 23 to 45 with complete course coverage.

๐Ÿ“45 MCQs
โฑ๏ธ90 Minutes
Showing 11 โ€“ 12 of 12 Questions
Page 2 of 2
Q11
โ“ MCQ๐Ÿ“˜ CS403๐Ÿ“‘ Lec 17๐Ÿท๏ธ 17.4. Union, Intersection and Difference OperatorsHard๐Ÿ”โญ๐Ÿ’ก๐ŸŒŸ๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Consider two database relations, Student(Fname, Lname, MajorCode) and Instructor(First_Name, Last_Name, DeptID), where Fname/First_Name and Lname/Last_Name represent compatible character datatypes. Which of the following statements is correct regarding the relational algebra union-compatibility of these two relations?
๐Ÿ’ป text Snippet
-- Relational algebra union compatibility check:
-- Degree(R) == Degree(S) AND Domain(R.col_i) == Domain(S.col_i)
  1. A.The two relations are not union-compatible because their attribute names are different.
  2. B.The two relations are union-compatible because they share the same degree and compatible attribute domains (same type of tuples).
  3. C.Set operations like Cartesian Product and Division can only be applied if relations are union-compatible.
  4. D.To retrieve students who are not instructors, the division operator (Student / Instructor) must be applied.
Q12
โ“ MCQ๐Ÿ“˜ CS403๐Ÿ“‘ Lec 17๐Ÿท๏ธ 17.4. Union, Intersection and Difference OperatorsEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Suppose you are given two database tables, 'Active_Students' and 'Honors_List', both containing identical, union-compatible columns. Which SQL set operator should be used to retrieve only those student records that exist in both tables concurrently?
๐Ÿ’ป sql Snippet
SELECT stId, stName FROM Active_Students
INTERSECT
SELECT stId, stName FROM Honors_List;
  1. A.UNION
  2. B.EXCEPT
  3. C.INTERSECT
  4. D.MINUS