GATE / CS ARCHIVE

GATE CSE 2023 / QUESTION 16

GATE CSE 2023 Q16

Database Management Systems · Database Models, Architecture & ER Diagrams · Full GATE CSE 2023 paper

GATE 2023, Q16 1 mark · MCQ
Report issue

Database Models, Architecture & ER Diagrams

Question 16, GATE 2023: What is a relation's degree or arity? A number of attributes; B number of tuples; C number of entries; D number of distinct attribute domains.
Tap to enlarge
Your answer
Answer & solution

Official answer: A

The degree or arity of a relation is its number of attributes/columns. Its number of tuples is its cardinality, and multiple attributes may share a domain. Therefore A.

Teaching detail. For example, a Student relation with columns rollNum, name, gender, marks has degree 4 whether it contains zero rows or a million rows. Its cardinality changes when rows are inserted, but its arity changes only if the schema's attribute count changes. Two columns can share the same domain, such as two integer-valued attributes, so counting distinct domains can undercount attributes. “Entries” is not the precise schema-level definition sought here.

Original paper, page 13 · Answer key