Code It Questions
Code It Questions
Which of the following indicates the maximum number of entities that can be involved in a
relationship?
A. Minimum Cardinality
B. Maximum Cardinality
C. ERD
D. Greater Entity Count (GEC)
2. The primary key of the representation of a weak entity set consists of the primary key of the
strong entity set and the _______
A. The having clause checks whether the query result is true or not
B. The having clause does not check for any condition
C. The having clause allows only those tuples that have average balance 10000
D. None of the mentioned
5. The join operations that do not retain mismatched tuples are called as _________
operations
A. outer join
B. natural join
C. full outer join
D. inner join
A. Functional dependencies
B. Subset dependencies
C. Superset dependencies
D. Primary dependencies
A. Record
B. Relation
C. Column
D. Field
8. Choose the option that correctly explains in words, the function of the following relational
algebra expression
σyear≥2009 (book ⋈ borrow)
A. Selects all tuples from the Cartesian product of book and borrow
B. Selects all the tuples from the natural join of book and borrow wherever the year is lesser
than 2009
C. Selects all the tuples from the natural join of book and student wherever the year is
greater than or equal to 2009
D. Selects all tuples from the Cartesian product of book and borrow wherever the year is
greater than or equal to 2009
9. Which of the following column properties specifies whether or not cells in a column must
contain a data value?
A. Null Status
B. Data type
C. Default Value
D. Data Constraints
10. The project operation’s function in relational algebra is identical to the _______ clause in
SQL
A. where
B. from
C. select
D. none of the mentioned
Answers
1. B
2. A
3. C
4. C
5. D
6. B
7. B
8. B
9. A
10. C