Sample Paper - CS403
Sample Paper - CS403
FINALTERM EXAMINATION
Fall 2022
CS403 – Database Management System
Time: 90 min
Marks: 60
Which of the following divides the larger table into smaller and links them using
relationships?
A. Schema
B. Normalization
C. De-Normalization
D. Data Dictionary
Question No: 2 (Marks: 01) - Please choose the correct option
Functional Dependencies are the types of constraints that are based on which of the
following concept?
A. Key
B. Functions
C. Relationships
D. Tables
Question No: 4 (Marks: 01) - Please choose the correct option
Which of the following is normalized after it has been organized?
A. Primary Key
B. Database
C. Attribute
D. Row
Question No: 5 (Marks: 01) - Please choose the correct option
A. Consistency
B. Redundancy
C. Database
D. Table
A. ZCNF
B. BCNF
C. NCNF
D. RCNF
A. Incorrect data
B. consistent data
C. Repeated data
D. Invalid data
Question No: 9 (Marks: 01) - Please choose the correct option
A. Transitive dependency
B. Functional dependency
C. Complete dependency
D. Partial dependency
A. Denormalization
B. Hashing
C. Normalization
D. Entity Relationship Diagram
A. Drop
B. Remove
C. Update
D. Delete
Which of the following is used along with "where" clause to retrieve values in a specific
range?
A. IN
B. NOT
C. LIKE
D. BETWEEN
The ____________ is used to delete all the rows of any table but rows would exist.
A. TRUNCATE
B. DROP
C. ALTER
D. DELETE
Which of the following clause is not part of the basic SELECT statement?
A. Select
B. From
C. Where
D. Group By
Question No: 19 (Marks: 01) - Please choose the correct option
Which of the given is a valid SQL statement for the given scenario?
Give the name of the students with the program name from table Student
A. SELECT stName, prName FROM student
B. Select * From Student
C. Select stName FROM student
D. Select prName FROM student
Which is the correct query to List the course names offered to programs other than MCS.
A. SELECT crCode, crName, prName FROM course WHERE not (prName =
‘MCS’)
B. SELECT crCode, crName, prName FROM course WHERE prName = ‘MCS’
C. SELECT crCode, crName, prName FROM course
D. SELECT crCode, crName, prName WHERE prName = ‘MCS’
An effective __________ minimizes the time users require to learn and implement the
system.
A. User interface
B. Programming
C. Testing
D. Maintenance
_________________ means Computer storage lost when the power is turned off.
A. Volatile storage
B. Non-volatile storage
C. Temporary volatile storage
D. Permanent Volatile storage
Memory caching is effective because most programs access the same data or instructions
___________.
A. Once
B. Twice
C. One or Two times
D. Again and again
A. One table
B. Many table
C. another view
D. All of the above
A. View materialization
B. View isolation
C. View updating
D. View maintenance
A. B-Tree
B. Non Clustered
C. Covered
D. Clustered
A. Single
B. Two
C. Three
D. Multiple
A. Serializability order
B. Direction graph
C. Precedence graph
D. Scheduling scheme
Checkpoints are types of mechanisms that ___ all previous logs from the system and
permanently store them in the storage disk.
A. Partially Remove
B. Remove
C. Partially Add
D. Add
Question No: 37 (Marks: 01) - Please choose the correct option
Once the transaction has reached the ___ checkpoint, the log file is updated with the new
step.
A. Previous
B. New
C. Next
D. Middle
If a transaction does not modify the database until it has committed, it is said to use the
___________ technique.
A. Deferred-modification
B. Late-modification
C. Immediate-modification
D. Undo
A. Database
B. Conspiracy
C. Concurrency
D. Relational
A. Repeatable Read
B. Snapshot
C. Read Committed
D. SERIALIZABLE
Question No: 41 (Marks: 03)
In databases, what are the general objectives of data partitioning and placement? Write
any three.
Answer
Discuss the situation in which we use LIKE operator in SQL. Write the general syntax of
using LIKE operator.
Answer
From the following table, write an SQL query to select a range of products whose price is
in the range Rs.3000 to Rs.1000. Start and end values are included. Return PID, PName,
Price columns.
Answer
Question No: 44 (Marks: 03)
Consider given table Customer, and write a SQL query to find all customers whose city is
Karachi.
C1 Asad Islamabad
C2 Bilal Karachi
C3 Anum Karachi
C4 Rabia Rawalpindi
C5 Saeed Islamabad
Answer
Write the three main Concurrency control problems, which we face in DBMS.
Answer
Covert following relation into Second Normal Form. The scenario shows books borrowed
by students from Library.
Stu_Book(StudentID,StudentName,BookID,BookTitle,BorrowingDetail)
Dependencies:
Answer
Apply inner join on the following tables of “Student” and “Course” and give resultant
table.
Student Table:
StudentID Student_Name Degree_Prog CourseID
St1 Ali MCS C1
St2 Waqas BCS C4
St3 Ahmad MCS C3
St4 Amjad MIT C2
St5 Aslam BIT C4
Course Table:
CourseID Course_Name Course_Credit
C1 Database Management System MCS
C2 Introduction to Programming BIT
C3 Data Communication MCS
C4 Networking BCS
Answer
Column Column B
A
RAID-0 which uses Hamming error correction codes
RAID-1 stripes data at a byte level across several drives
RAID-2 stripes data at a block level across several drives
RAID-3 Provides redundancy by writing all data to two or more drives.
RAID-4 This is not redundant, hence does not truly fit the "RAID" acronym
Answer
Write the sample query to create dynamic view by “Using another View” and by “Using
Function”.
Answer