Dbms QB Nep 2023
Dbms QB Nep 2023
QUESTION BANK
OF
DATABASE MANAGEMENT SYSTEM
IV SEMESTER B.sc
UNIT-I
Two marks questions:
UNIT-II
Two marks questions:
1) What is the degree of a relation? What is the degree of the following relation?
STUDENT(Name, SSn, Home_phone, Address, Office_phone, Age, Gpa)
2) Define Cartesian product.
3) What is relation schema? List the characteristics of Relations
4) Define a)tuple b)Attribute c)Domain
5) List any two categories of relational model constraints.
6) Define super key. Give an example
7) What is candidate kay? Give an example
8) What is entity integrity constraint and referential entity constraint?
9) Mention the properties of key in a relational schema
10) What is entity integrity constraint and referential integrity constraint?
11) Give any two basic operations that can change the state of relations in the database
12) What is the function of Insert, update and delete functions?
13) Mention any two update anomalies
14) State interpretations of NULL values
15) Define functional dependency
16) What do mean by “normalization of data”?
17) What is 1NF,2NF,3NF?
18) What is BCNF?
19) What is equivalence sets of functional dependencies?
20) What is minimal sets of functional dependencies?
21) Define atomic value with respect to tuple.
22) What are flat relational models?
23) Define model-based constraints.
24) Define schema-based constraints.
25) What are application-based constraints?
26) What are component values of relation?
27) What does domain constraints specify?
28) Define the term minimal superkey.
29) What is schedule(History)?
30) What is the system log used for? What are the typical kinds of records in a
system log what are transaction commit points and why are they important?
31) Explain the desirable properties of transactions.
32) What is schedule(History)?.Define the concept of recoverale,cascadeless and
strict schedule,and compare them in terms of their recoverability.
33) What are the conditions that lead to the two schedules being view equivalent?
34) Discuss how the concept of serializability is useful for concurrency control?
35) What is a lock? describe the types of locks used in concurrency control.
36) what is the two-phase locking protocol? How does it guarantee
serializability?
37) What are the rules followed when shared/exclusive locking scheme is used?
38) What are some variations of the two phase locking protocol?why is strict or
rigorous two phase locking often preferred?
39) Discuss the problem of deadlock starvation,and the different approaches to
dealing with these problems
40) Compare binary locks to exclsive/shared locks.why is the later type of locks
preferable?
41) List different deadlock prevention schemes and comment on how younger
transactions are handled in either scheme
42) Describe the wait –die and wound-wait protocol for deadlock prevention.
43) Describe the cautious waiting ,no waiting and timeout protocols for dead lock
prevention
44) How does Thoma’s write rule modify the check for the write_item(X)
operation?
45) What is Timestamp?How does system generate time stamps?
UNIT-III
1. Write the syntax of create table command?
2. How do you load the data to the table? Write its syntax.
3. Write the syntax of update command.
4. Write the syntax of alter command.
5. Write the syntax of delete command.
6. Write the structure of SELECT command.
7. How can you RENAME the tables.
8. List any two aggregate functions used in SQL.
9. Why do need USER_CONSTRAINTS table?
10. List and explain any two data constraints.
11. What do you mean by NOT NULL constraint?
12. Why do you use check constraint?
13. How do you use ALTER command to drop the constraints?
14. Which command is used to modify the column definitions? Give example.
15. What do you mean by DEFAULT clause in SQL?
16. Differentiate WHERE clause and HAVING clause used in SELECT statement.
17. How do you sort the records of a table in SQL? Give one example.
18. Why do need JOIN operation? Give one example.
19. List types of join used in SQL?
20. Compare LEFT JOIN with RIGHT JOIN, with example.
21. What is the importance of dual table?
22. What is dual table?
23. What do mean by GROUP BY clause? Give one example.
24. What is sub query?
25. What is privilege? Write the syntax of granting the privilege to the user.
26. Write the syntax of REVOKE statement? Give one example.
27. Why do use LIKE operator in SELECT statement? Give one example.
28. What is the importance of primary key in a table?
29. How can you create primary constraint?
30. Differentiate primary key constraint with unique key constraint.
31. What do mean by value “NULL” in SQL?
32. What is the difference between ‘ON DELETE CASCADE’ and ‘ON DELETE SET
NULL’?
Questions carrying 3-5marks
1. How do you filter the data from the table? Explain the command use, with
example.
2. Write a note on oracle functions.
3. What is data constraint? List its types.
4. What do you mean by foreign key constraint? What are the features of foreign key
5. What is USER_CONSTRAINTS_TABLE/ explain any three columns of that
table?
6. Explain ORDER BY clause with example?
7. How can you assign a name to the constraint? Explain with syntax and example.
8. Create the table described below: