BCA-C301: B. C. A. (Third Semester) EXAMINATION, 2023-24
BCA-C301: B. C. A. (Third Semester) EXAMINATION, 2023-24
BCA–C301
B. C. A. (Third Semester)
EXAMINATION, 2023-24
DATABASE MANAGEMENT SYSTEM
1
Time : 22 Hours
Maximum Marks : 60
Note : All questions have to attempted.
Section—A
1. Multiple choice questions : 1 each
(a) What is DBMS ? (CO1, BL-1)
(i) DBMS is a collection of queries
(ii) DBMS is a high-level language
(iii) DBMS is a programming language
(iv) DBMS stores, modifies and retrieves data
(b) In which of the following formats data is stored in
the database management system ? (CO1, BL-1)
(i) Image
(ii) Text
(iii) Table
(iv) Graph
P. T. O.
[2] BCA–C301
P. T. O.
[4] BCA–C301
P. T. O.
[6] BCA–C301
Section—B
3. Attempt any two questions : 6 each
(a) What is algebraic operations in DBMS. Consider
a relational database with two tables : Students
and Courses. The Students table has attributes :
StudentID, FirstName, LastName, and GPA. The
Courses table has attributes : CourseID,
CourseName, and Instructor. (CO3, BL-6)
(i) Write a relational algebra expression to find
the names of students (i.e., FirstName and
LastNanie) who have a CPA greater than
3.5.
(ii) Write a relational algebra expression to
retrieve a list of courses (i.e., CourseName)
taught by an instructor named ‘Smith’.
(b) Case Study : In a university, a Student enrolls in
Courses. A student must be assigned to at least
one or more Courses. Each course is taught by a
single Professor. To maintain instruction quality,
a Professor can deliver only one course.
Create an ER Diagram of the following case
defining all the step. (CO2, BL-6)
(c) What are the different types of keys in SQL ?
Explain all keys with proper example.
(CO2, BL-2)
[7] BCA–C301
P. T. O.
[8] BCA–C301
P. T. O.
[ 10 ] BCA–C301
Tasks :
SQL Commands for Database Setup :
Write an SQL command to create the tables for
the database, incorporating the schema you
designed.
Specie’ the data types and constraints for each
column as needed.
Data Population :
Insert sample data for two books, three authors,
two customers, one order, and one shipment.
Book Inventory Update :
Write an SQL command to update the inventory
quantity of a specific book, decreasing it by 5.
Customer Order :
Create a new order for a customer, including
order details for two books.
Calculate the total cost of the order.
Order Tracking :
Write an SQL query to retrieve the order details
for a specific customer’s order, including the
book titles, quantities, and total cost.
Author Search :
Create an SQL query to find authors whose last
name contains ‘Smith’ and list their book titles.
[ 11 ] BCA–C301
BCA–C301
P. T. O.