21. What does MOD () function do?
- Returns the remainder after division
- Modifies the column definition
- Modifies the definition of a table
- None of the above
Answer: a. Returns the remainder after division
22. Which of the following statement is correct regarding table creation?
- Tables once created cannot not be modified to add columns
- Constraints can only be given while table creation
- One can easily create a table from a given table
- When a table is created from another table, all the constrains are copied as well
- The width of the columns cannot be modified
- Columns cannot be removed from a table
Answer: c. one can easily create a table from a given table
23. Which operator will be evaluated first in the following statement;
Select (age + 3*4/2-8) from emp
- +
- -
- /
- *
Answer: d. *
24. If E1 and E2 are relational algebra expressions, then which of the following is NOT a relational algebra expression?
- E1 U E2
- E1 / E2
- E1 - E2
- E1 x E2
Answer: b. E1 / E2
25. The overall logical structure of a database can be expressed graphically by:
- Data Flow Chart
- Flow Chart
- Directed Chart
- Entity-Relationship Diagram
- None of the above
Answer: d. Entity-Relationship Diagram
26. When the rows from two tables are concatenated according to a specified condition, the operation is known as:
- Intersection
- Difference
- Restriction
- Product
- Join
- Union
- Minus
Answer: e. Join
27. What is the collection of information stored in a database at a particular moment called?
- Schema
- Instance
- Table
- Cluster
- View
- Index
- None of the above
Answer: b. Instance
28. What are the columns of a table called in a relational model?
- Attributes
- Rows
- Tuples
- Constrains
- Keys
- Indexes
- Sets
- Elements
Answer: a. Attributes
29. What is the order of precedence among the following operators?
1. IN
2. NOT
3. AND
4. OR
- 1,2,3,4
- 2,3,4,1
- 1,2,4,3
- 1,4,3,2
- 4,3,2,1
- 4,1,2,3
- 4,2,1,3
- 3,2,1,4
Answer: a. 1,2,3,4 (IN NOT AND OR)
30. An RDBMS performs the following steps:
1) It calculates the results of the group functions of each group
2) It groups those rows together based on the group by clause
3) It orders the groups based on the results of the group functions in the order by clause
4) It chooses and eliminates groups based on the having clause
5) It chooses rows based on the where clause
Arrange the above steps in the correct order of execution:
2) It groups those rows together based on the group by clause
3) It orders the groups based on the results of the group functions in the order by clause
4) It chooses and eliminates groups based on the having clause
5) It chooses rows based on the where clause
Arrange the above steps in the correct order of execution:
a. 4,3,5,1,2
b. 4,5,3,2,1
c. 5,2,1,4,3
d. 5,2,3,4,1
e. 2,3,1,4,5
f. 2,3,1,5,4
g. 1,2,3,4,5
h. 3,2,1,4,5
Answer: c. 5, 2,1,4,3