You are on page 1of 2

Paradise valley University College

Department of Information Technology

Final exam on advanced database max weight 40% time allowed 2 hours
Name _________________________________________________Id_________dept__________

I. Say true or false, each question has two marks (2 pts each).
1. __________Arithmetic functions perform take numeric data; date functions take date
type data and string functions take strings.

2. ___________Miscellaneous functions perform operations on any type of data.

3. ___________Group functions are used to perform operations on the groups created by


GROUP BY clause.

4. ___________ROUND takes the leftmost digit that is being lost and accordingly adds one
to the rightmost digit.

5. ____________DUAL table is with SELECT command to display the result of expression


that do not relate to any table.

6. ___________CEIL produces the smallest integer that is greater than or equal to the given
value.

7. ___________dual table is made available in the account of every oracle database.

II. Choose the correct answer and encircle it.(2pts each)


8. A functional dependency X Y is full functional dependency if removal of any attribute A
from X means that the dependency does not hold any more.
A. Fully Functional dependency B. half Functional dependency C. normalization D. all
9. The domain of attribute must include only atomic (simple, indivisible) values.
A. 3 NF (Normal Form) B. 1 NF (Normal Form) C. Boyce-Codd Normal Form D.
all
10. A Functional dependency is denoted by X Y between two sets of attributes X and Y that
are subsets of R specifies a constraint on the possible tuple that can form a relation state r
of R.
A. Functional dependency B. nonfunctional dependency C. normalization D. none
11. A relation schema R is in 2NF if it is in 1NF and every non-prime attribute A in R is fully
functionally dependent on primary key.
A. 2NF B. 3NF C. 4 NF D. 4NF
12. A relation schema R is in 3NF if it is in 2NF and for every FD X A either of the
following is true.
A. X is a Super-key of R. B. A is a prime attribute of R. C. both A and B D. none

13. It is procedural query language, it consists of a set of operations that take one or two
relations as input and produce a new relation.

A. Relational Algebra B. Normalization C. Function D. all


III. Fill in the blank space (2pts each).

14. To get the remainder of a division_____ function is used.

15. In Date Arithmetic __________, _______________ and ___________ operations are


allowed.

16. ____________ is the result of LAST_DAY(SYSDATE) assuming SYSDATE is 23th A


September.

IV. Write the output of the following statement (3 pts each)

17. Select ROUND(1285.356, -1)from dual;

18. Select round(1047.785,2), trunc(1047.785,2) from dual;

19. Select sysdate, add_months(sysdate,2) From dual;

20. Select add_months('31-aug-2001',1) from dual;

21. Display the current system date?

You might also like