Pre-Board examination question paper set for Database Management System from the year 2025.
Tribhuvan University
Faculty of Humanities & Social Sciences
OFFICE OF THE DEAN
2026
Bachelor in Computer Applications
| Paper detail | Value |
|---|---|
| Course | Database Management System |
| Code No. | CACS255 |
| Semester | IVth |
| Full marks | 60 |
| Pass marks | 24 |
| Time | 3 hours |
Candidates are required to answer the questions in their own words as far as possible.
Group B
2. List the differences between function and stored procedure. Explain the different parameters of stored procedure giving examples.
3. Define BCNF. Convert the provided student table up to 2NF.
4. Consider the relational schema given below: College, Student, Course, Enroll. Now write the Relational Algebra for each of the following:
- A. List the name of all students and the place where they study.
- B. Find the name of the students who have enrolled in the course "DBMS".
- C. Find the courses that have the highest number of credits.
- D. Delete all students with age above 25. e) Increase the age by 1 who live in Bhaktapur.
5. What is meant by query optimization? Explain the steps involved in query processing.
6. Write an SQL command to create a role 'Manager' who can insert, delete and view records on the table 'Account'. Assign a role to 'John'. List TCL commands and write their purposes.
7. Why concurrency control is needed? Explain the concept of 2PL and Strict 2PL with example.
8. List various types of index in database. Differentiate between dense index and sparse index with example.
Group C
9. a) List the ACID properties. Explain the usefulness of each. b) Check whether the given schedule is conflict serializable or not: S1:r2(X);r1(Y);w2(X);r3(Y);w1(X);w3(Y)S_1: r_2(X); r_1(Y); w_2(X); r_3(Y); w_1(X); w_3(Y)S1:r2(X);r1(Y);w2(X);r3(Y);w1(X);w3(Y)
10. Consider the relational schema given below: Actor, Movie, Plays. Now give an expression in SQL for each of the following:
- A. Find the name of the youngest actor.
- B. Remove those actors who have not played any movies.
- C. Modify the database such that the title of the movie is now changed to 'Hello Sarkar' played by Madan Shrestha.
- D. Display the name of those actors whose name start with the character "A" and contains exactly 6 characters. e) Extract the name of the actors who played movies of budget above 8000000. f) Insert new record in the relation 'Actor'. g) Find the name of the actor who is getting highest salary. h) Add a column 'city' in the relation 'Actor'.
11. a) Develop an ER Diagram for online shopping system. Use composite and multivalued attributes where you think appropriate. Properly show the cardinalities. Mention at least 5 entities. Finally, convert the ER schema into a set of relations. Make necessary assumptions. b) Explain Timestamp ordering protocol with example.