Ch 08: Relationships & Cardinality Constraints

4 Questions4 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 1 – 4 of 4 Questions
Page 1 of 1
Q1
❓ MCQ📘 CS403📑 Lec 8🏷️ 08.5. Super Key, Candidate Key, Primary Key and Alternate KeyEasy🔁⭐💡📄🎓VU🏛️VU
Under standard relational database guidelines, which key or column classification is strictly used to guarantee that every individual row (tuple) of a table can be uniquely identified?
💻 sql Snippet
TeacherID CHAR(5) PRIMARY KEY
  1. A.Foreign key column
  2. B.Composite attribute column
  3. C.Primary key column
  4. D.Derived attribute column
Q2
❓ MCQ📘 CS403📑 Lec 8🏷️ 08.5. Super Key, Candidate Key, Primary Key and Alternate KeyEasy🔁⭐💡📄🎓VU🏛️VU
In an SQL table, which of the following schema constraints or columns is strictly designed to uniquely identify individual rows (tuples) of a given table?
💻 sql Snippet
stId CHAR(5) PRIMARY KEY
  1. A.NOT NULL constraints
  2. B.Primary key column
  3. C.Foreign key column
  4. D.Secondary key column
Q3
❓ MCQ📘 CS403📑 Lec 8🏷️ 08.2. Entity Types and AttributesMedium⭐💡🌟📄🎓VU🏛️VU
Analyze the following business description: 'A university registration system allows students to enroll in courses. Each student has a unique registration number, name, and email. Each course has a unique course code, title, and credit hours. A student can enroll in multiple courses, and each course can have many registered students.' Identify the core entity types and relationship cardinality that should be modeled in an Entity-Relationship Diagram (ERD).
💻 text Snippet
-- Entity-Relationship Mapping:
-- Student (M) <--- Enroll ---> (N) Course
  1. A.Entities: Student and Course. Relationship: Enroll (Many-to-Many cardinality).
  2. B.Entities: Student, Course, and RegistrationNumber. Relationship: Has (One-to-Many cardinality).
  3. C.Entities: Student and Enroll. Relationship: Course (One-to-One cardinality).
  4. D.Entities: Student, Course, Title, and Email. Relationship: Enroll (Many-to-Many cardinality).
Q4
❓ MCQ📘 CS403📑 Lec 8🏷️ 08.4. Entity Integrity ConstraintMedium🔁⭐💡🌟📄🎓VU🏛️VU
Under standard database modeling and integrity rules, which of the following statements is strictly correct regarding Entity Integrity constraints?
💻 sql Snippet
-- Entity Integrity Violation Example:
INSERT INTO STUDENT (stId, stName) VALUES (NULL, 'Ali'); -- Fails because stId is Primary Key
  1. A.Entity integrity constraints specify that primary key values can be composite.
  2. B.Entity integrity constraints are specified on individual relations.
  3. C.Entity integrity constraints are specified between weak entities.
  4. D.When entity integrity rules are enforced, a tuple in one relation that refers to another relation must refer to an existing tuple.