GateAI
ER Model

GATE CSE 2024 Set 1 · Q20

MCQ1 markEasy

Time

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?

GATE CSE 2024 Set 1 Q20 diagram

Select one answerSingle correct

Pick an option to check

Solution

Step-by-step verified solution

Official answer: D) (iv)

ER Model

In standard Entity-Relationship (ER) modeling:

  • Entity sets are represented by rectangles.

  • Relationship sets are represented by diamonds.

From the given specification SS:

  1. Entities:

    • Instructor

    • Course

    • Classroom

    • Student

    All four must be represented as rectangles.

  2. Relationships:

    • Teaches: relates Instructor and Course (diamond connecting Instructor and Course).

    • Registration: relates Student and Course (diamond connecting Student and Course).

    • Allocation: relates Course and Classroom (diamond connecting Course and Classroom).

    • Guides: relates Instructor and Student (diamond connecting Instructor and Student).

Evaluating the given diagrams:

  • Diagram (i): Incorrectly represents Student as a diamond (relationship) and Registration as a rectangle (entity).

  • Diagram (ii): Introduces an extraneous entity Projects not present in the specification SS.

  • Diagram (iii): Does not properly align the connections and entities according to the specification.

  • Diagram (iv): Correctly represents all four entities (Instructor, Course, Classroom, Student) as rectangles and all four relationships (Teaches, Allocation, Registration, Guides) as diamonds connecting the appropriate entities.

Thus, diagram (iv) is correct, which corresponds to option (D).

Try the question first, then check your work.

Think the official key or this write-up is wrong?

Report error or challenge

Examiner trap

The misconception this question tests

This ER Model previous year question is Q20 of the GATE CSE 2024 Set 1 paper. Find more GATE CSE PYQs on ER Model in Databases, or browse all GATE CSE PYQs.

Free diagnostic

Where do you stand for GATE?

Take the 20-minute diagnostic: the 3 topics that cost you the most marks, and a rank range. Or sit 5 related ER Model PYQs now with no account.

One GATE CSE PYQ every morning

An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.

ER Model in GATE CSE

ER Model has 8 GATE CSE PYQs across 8 papers from 2012 to 2026. 7 of them are 1-mark MCQs like this one, and it is the only one in GATE CSE 2024 Set 1.

How GATE tests ER Model

More from GATE CSE 2024 Set 1

Share this solution

A plain-text card for WhatsApp or Telegram study groups.

GateAI solution cardGATE CSE 2024 Set 1 · Q20 · MCQ

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?

Topic-wise GATE CS PYQs with verified steps

Independent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.