Skip to main contentSkip to solution

What is the degree and cardinality respectively of the table below ?

Roll No.SNameSDoBGNameGPhone
101Akarsh21.04.95Himanshu9918044336
102Amit15.10.96Pradeep7905200265
103Anubhav13.06.95Sumit9415019796
104Amit12.05.94Nidhi8563886953

Solution

✅ Correct Option: 1

Degree is the number of columns (attributes) in a table, and cardinality is the number of rows (tuples).

The table has 5 columns (Roll No., SName, SDoB, GName, GPhone), so the degree is 5. It has 4 rows of data (Roll No. 101 to 104), so the cardinality is 4.


Option 2: reverses the two terms.

Options 3 and 4: 20 is the total number of cells (5×45 \times 4), which is neither degree nor cardinality.

The header row is not counted as a tuple.

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question