DBMS · Question 23 · Medium

DBMS question 23

Relation R has 3 attributes and 5 tuples, and relation S has 4 attributes and 6 tuples (no attribute names in common). What are the degree and cardinality of the Cartesian product R × S?

  1. Degree 12 and 11 tuples
  2. Degree 7 and 11 tuples
  3. Degree 12 and 30 tuples
  4. Degree 7 and 30 tuples
Answer and explanation

Answer: D. Degree 7 and 30 tuples

Explanation: The Cartesian product has all attributes of both relations, so 3 + 4 = 7 columns, and pairs every tuple of R with every tuple of S, so 5 × 6 = 30 tuples.

Previous: A one-to-many relationship 'works in' links Department (one) to Employee… · Next: Relation R(A, B, C, D) has the functional dependencies AB → CD and B → C, and…

Practise dbms

Try a fresh set of dbms questions with an explanation after every answer, free and without signing up: DBMS practice. Or sit a full placement mock test.

More dbms questions

More technical & programming practice

SQL · Operating Systems · Computer Networks · Software Engineering · Cloud & DevOps · GenAI Basics · Pseudo-code · C Programming

LogicWiz Exams home · All practice topics · Placement mock tests · Daily 10 challenge