Professional Documents
Culture Documents
MCQ Lec1 (RelationalAlgebra)
MCQ Lec1 (RelationalAlgebra)
Which operation is used to select a subset of tuples from a relation based on a selection
condition?
✗ - UNION
✗ - PROJECT
✗ - JOIN
✓ - SELECT
Which operation combines tuples from two relations and eliminates duplicate tuples?
✓ - UNION
✗ - SELECT
✗ - JOIN
✗ - PROJECT
What is the type compatibility requirement for the binary set operation UNION?
✗ - R1(A1, A2, ..., An) and R2(B1, B2, ..., Bn) are type compatible if they have different
number of attributes and the domains of corresponding attributes are type compatible.
✗ - R1(A1, A2, ..., An) and R2(B1, B2, ..., Bn) are type compatible if they have different
number of attributes and the domains of corresponding attributes can be different.
✗ - R1(A1, A2, ..., An) and R2(B1, B2, ..., Bn) are type compatible if they have the same
number of attributes but the domains of corresponding attributes can be different.
✓ - R1(A1, A2, ..., An) and R2(B1, B2, ..., Bn) are type compatible if they have the same
number of attributes and the domains of corresponding attributes are type compatible.
✓ - The result is a relation Q with degree n + m attributes, where Q(A1, A2, ..., An, B1, B2, ...,
Bm), in that order. The resulting relation state has one tuple for each combination of tuples—
one from R and one from S.
✗ - The result is a relation Q with degree n + m attributes, where Q(A1, A2, ..., An, B1, B2, ...,
Bm), in that order. The resulting relation state has one tuple for each combination of tuples—
both from R and S.
✗ - The result is a relation Q with degree n + m attributes, where Q(A1, A2, ..., An, B1, B2, ...,
Bm), in that order. The resulting relation state has one tuple for each combination of tuples—
neither from R nor S.
✗ - SELECT column1, column2,..., columnN FROM table1, table2,..., tableN UNION SELECT
column1, column2,..., columnN FROM table1, table2,..., tableN
Which operations are commutative?
✗ - INTERSECTION and SET DIFFERENCE
✓ - UNION and INTERSECTION
✗ - UNION and SET DIFFERENCE
✗ - INTERSECTION and CARTESIAN PRODUCT