info@jobexams.pk

MCQ Detailed View

Explore the question in detail with explanation, related questions, and community discussions.

1 DATABASE MCQS

In an Entity-Relationship (E-R) diagram, a rectangle represents ?

  • Attribute
  • Relationship
  • Entity
  • None of these
Correct Answer: C. Entity

Detailed Explanation

In an Entity-Relationship (E-R) diagram, a rectangle is used to represent an Entity. An entity is a real-world object or concept that has a distinct existence and is represented in a database. Entities can be physical objects like students, employees, and books, or abstract concepts like departments or courses.


Each entity typically has attributes, which describe its characteristics. For example, a "Student" entity may have attributes like Roll Number, Name, and Class. In E-R diagrams:


 




  • Rectangles represent Entities.




  • Ellipses represent Attributes.




  • Diamonds represent Relationships between entities.




  • Lines connect entities to attributes and relationships.




 

Discussion

Thank you for your comment! Our admin will review it soon.
No comments yet. Be the first to comment!

Leave a Comment