Beruflich Dokumente
Kultur Dokumente
Multiple-Choice Questions:
1) ______ symbol is used to denote the SELECT operation.
a) X b) σ c) ρ d) π
4) _______ operation can be visualized as a horizontal partition of the relation into two set of tuples.
a) JOIN b) PARTITION c) SELECT d) PROJECT
5) _______ operation can be visualized as a vertical partition of the relation into two relations.
a) PROJECT b) PARTITION c) SELECT d) JOIN
10) The degree of the relation resulting from SELECT operation is ______ the degree of the
participating relation.
a) less than or equal to b) equal to c) less than d) more than
11) The basic set of operations for the relational model is the relational _______.
a) statement b) algebra c) geometry d) definition
12) The relational algebra operations enable a user to specify basic _______ requests.
a) construct b) modification c) retrieval d) entry
13) The degree of the relation resulting from PROJECT operation is ______ to the number of
attributes in the attribute-list specified.
a) less than or equal to b) equal to c) less than d) more than
14) Two relations are said to be _____ if they have the same degree n and if dom (Ai) = dom (Bi)
for 1≤ i ≤ n.
a) degree compatible b) union compatible c) domain compatible d) similar
15) Two relations are said to be union compatible if they have same number of ______
a) attributes b) tuples c) key attributes d) foreign keys
16) The result of _____ operation is a relation that includes all tuples that are in both R and S relations.
a) JOIN b) MINUS c) UNION d) INTERSECTION
17) R ∩ ( S ∩ T ) ______ ( R ∩ S ) ∩ T .
a) ≈ b) ≠ c) = d) <
20) The ______ operation is used instead of using the sequence of CARTESIAN PRODUCT
followed by SELECT.
a) PROJECT b) MINUS c) JOIN d) UNION
22) If R has x tuples and S has y tuples, then R X S will have ______ tuples.
a) x + y b) x * y c) x – y d) y – x
23) ______ operation allows us to process relationships among relations.
a) PROJECT b) MINUS c) JOIN d) UNION
25) ______ operation combines related tuples from two relations into single tuples.
a) JOIN b) MINUS c) PROJECT d) UNION
26) A join where the only comparison operator used is = is called an ________.
a) NATURAL JOIN b) SAME JOIN c) EQUI JOIN d) THETA JOIN
28) _____ operation is used to remove the second superfluous attribute in an EQUIJOIN condition.
a) NATURAL JOIN b) SAME JOIN c) DELETE JOIN d) THETA JOIN
29) The DIVISION operation is applied on two relations R (Z) ÷ S (X), where X ______ Z.
a) = b) ≤ c) X d)
31) R _____ S ≡ ( R U S ) – ( ( R – S ) U ( S – R ) )
a) U b) ∩ c) X d) π
32) If relation R has n attributes and relation S has m attributes, then the result of JOIN on relations R
and S will have ______ attributes.
a) n X m b) n / m c) n – m d) n + m
33) If relation R has n attributes and relation S has m attributes, then the result of JOIN on relations R
and S will have upto ______ tuples.
a) n * m b) n / m c) n + m d) n – m
34) The JOIN operation where only matching tuples are kept in the result are called _____ joins.
a) outer b) external c) inner d) related
35) The JOIN operation where we keep all the tuples in relation R, or all those in relation S,
or all those in both relations regardless of whether or not they have matching tuples is called
_____ join.
a) outer b) external c) inner d) related
TRUE or FALSE:
1. The SELECT operation selects certain rows from the table. (T/F)
2. The PROJECT operation selects certain columns from the table. (T/F)
3. ‘>’ comparison operator can be used with unordered values. (T/F)
4. The domain of date are unordered values. (T/F)
5. The relation resulting from SELECT operation has same attributes as original relation. (T/F)
6. The PROJECT operation can be applied to more than one relation. (T/F)
7. A sequence of SELECTs can be applied in any order. (T/F)
8. A sequence of SELECT operations can be combined into single SELECT operation
with a AND condition. (T/F)
9. σ <cond1> (σ <cond2> (R) ) ≠ σ <cond2> (σ <cond1> (R) ). (T/F)
10. The number of tuples in resulting relation from SELECT operation is always more than
or equal to number of tuples in participating relation. (T/F)
11. The PROJECT operation does not remove duplicate tuples. (T/F)
12. The number of tuples in resulting relation from PROJECT operation is always less than
or equal to number of tuples in participating relation. (T/F)
13. The relation resulting from PROJECT operation has the attributes as specified
in the attribute-list in the same order as they appear in the list. (T/F)
14. The PROJECT operation satisfies the commutative property. (T/F)
15. The RENAME operation can rename either the relation name or the attributes names
or both. (T/F)
16. INTERSECTION operation must be union compatible. (T/F)
17. Union compatible relations must have different type of tuples. (T/F)
18. The degree of union compatible relations must be same. (T/F)
19. In UNION operation duplicate tuples are eliminated. (T/F)
20. INTERSECTION operation is not commutative. (T/F)