Machine-translated by Google. Questions are authored in English.
Top

Discussion

Let S be the specification: "Instructors teach courses. Students register for courses. Courses are allocated classrooms. Instructors guide students." Which one of the following ER diagrams CORRECTLY represents S?

  • A.ER diagram: Instructor Teaches Course; Course linked to Registration directly and to Student; Course Allocation Classroom; Instructor Guides Student
  • B.ER diagram: Instructor Teaches Course; Course Registration with Projects; Course Allocation Classroom; Instructor Guides Projects
  • C.ER diagram: Instructor Teaches Course; Course Registration Student; Classroom linked straight to Course; Course Allocation unlinked to Classroom; Instructor Guides Student
  • D.ER diagram: Instructor Teaches Course; Course Registration Student; Course Allocation Classroom; Instructor Guides Student

Answer: D

The correct ER diagram is (iv).

The specification has four entity sets, Instructor, Course, Classroom and Student, and four relationships: Teaches (Instructor, Course), Registration (Student, Course), Allocation (Course, Classroom) and Guides (Instructor, Student). Diagram (iv) draws exactly these, with entities as rectangles and relationships as diamonds joining the right pairs.

Diagram (i) makes Registration an entity and Student a relationship. Diagram (ii) has no Student entity and has Guides linking Instructor to Projects. Diagram (iii) leaves Allocation unconnected to Classroom and joins Classroom directly to Course.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.