0% found this document useful (0 votes)
102 views13 pages

Sample Paper - CS403

This document contains a sample final term examination for a database management systems course. It includes 43 multiple choice and short answer questions testing knowledge of database concepts like normalization, functional dependencies, SQL queries, transaction processing, and concurrency control. Students are asked to choose the correct answer from options for multiple choice questions and provide 3 sentence answers for short answer questions on topics like data partitioning, the LIKE operator syntax, and querying a price range. The exam is worth 60 marks and must be completed within 90 minutes.

Uploaded by

sofia naseer
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
102 views13 pages

Sample Paper - CS403

This document contains a sample final term examination for a database management systems course. It includes 43 multiple choice and short answer questions testing knowledge of database concepts like normalization, functional dependencies, SQL queries, transaction processing, and concurrency control. Students are asked to choose the correct answer from options for multiple choice questions and provide 3 sentence answers for short answer questions on topics like data partitioning, the LIKE operator syntax, and querying a price range. The exam is worth 60 marks and must be completed within 90 minutes.

Uploaded by

sofia naseer
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 13

Sample Paper

FINALTERM EXAMINATION
Fall 2022
CS403 – Database Management System

Time: 90 min
Marks: 60

Question No: 1 (Marks: 01) - Please choose the correct option

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

In which of the following normal form(s), a composite attribute is converted to


individual/single valued attributes?
A. First
B. Second
C. Third
D. Fourth
Question No: 3 (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

By normalizing relations or sets of relations, ___________ is minimized.

A. Consistency
B. Redundancy
C. Database
D. Table

Question No: 6 (Marks: 01) - Please choose the correct option

Which of the following is not a type of Normal Form?

A. Zero Normal Form


B. First Normal Form
C. Second Normal Form
D. Third Normal Form

Question No: 7 (Marks: 01) - Please choose the correct option

Choose correct normal form.

A. ZCNF
B. BCNF
C. NCNF
D. RCNF

Question No: 8 (Marks: 01) - Please choose the correct option

Data Redundancy means ___________.

A. Incorrect data
B. consistent data
C. Repeated data
D. Invalid data
Question No: 9 (Marks: 01) - Please choose the correct option

Which of the following is not type of dependency?

A. Transitive dependency
B. Functional dependency
C. Complete dependency
D. Partial dependency

Question No: 10 (Marks: 01) - Please choose the correct option

_____________ derives a physical data model from a logical form.

A. Denormalization
B. Hashing
C. Normalization
D. Entity Relationship Diagram

Question No: 11 (Marks: 01) - Please choose the correct option

The maximum length of the identifier in SQL query is __________.


A. 256
B. 200
C. 512
D. 1024

Question No: 12 (Marks: 01) - Please choose the correct option

Insert query is __________ command.


A. DDL
B. DML
C. DCL
D. DFL

Question No: 13 (Marks: 01) - Please choose the correct option

The columns of a table specified as NULL can have ___________ value.


A. NULL
B. 0
C. NOT NULL
D. 1

Question No: 14 (Marks: 01) - Please choose the correct option


Identify the command to remove a record from the table.

A. Drop
B. Remove
C. Update
D. Delete

Question No: 15 (Marks: 01) - Please choose the correct option

DML commands are used for________.


A. Creating database
B. Dropping database
C. Creating DB objects
D. Inserting data in tables

Question No: 16 (Marks: 01) - Please choose the correct option

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

Question No: 17 (Marks: 01) - Please choose the correct option

The ____________ is used to delete all the rows of any table but rows would exist.
A. TRUNCATE
B. DROP
C. ALTER
D. DELETE

Question No: 18 (Marks: 01) - Please choose the correct option

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

Question No: 20 (Marks: 01) - Please choose the correct option

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’

Question No: 21 (Marks: 01) - Please choose the correct option

An effective __________ minimizes the time users require to learn and implement the
system.
A. User interface
B. Programming
C. Testing
D. Maintenance

Question No: 22 (Marks: 01) - Please choose the correct option

Effective interfaces that closely match the _________.


A. Owner expectations
B. Programmer expectations
C. User expectations
D. Tester expectations

Question No: 23 (Marks: 01) - Please choose the correct option

How many types of User Interfaces?


A. 2
B. 3
C. 4
D. 5
Question No: 24 (Marks: 01) - Please choose the correct option

_________ has overhead of multiple linked lists.


E. Chaining
F. Overflow areas
G. Re-hashing
H. Quadratic probing

Question No: 25 (Marks: 01) - Please choose the correct option

Normally _________ are used for the display of dates.


A. Buttons
B. Checkboxes
C. Text boxes
D. Dropdown lists

Question No: 26 (Marks: 01) - Please choose the correct option

_________________ 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

Question No: 27 (Marks: 01) - Please choose the correct option

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

Question No: 28 (Marks: 01) - Please choose the correct option


When data is found in the cache, it is called a __________.
A. Cache found
B. Cache hit
C. Cache success
D. Cache Cashed

Question No: 29 (Marks: 01) - Please choose the correct option

FAMOS Stands for _______________.


A. Floating-Gate Avalanche-Injected Metal Oxide Semiconductor
B. Floating-Point Avalanche-Injection Metal Oxide Semiconductor
C. Floating-Point Avalanche-Injected Metal Oxide Semiconductor
D. Floating-Gate Avalanche-Injection Metal Oxide Semiconductor

Question No: 30 (Marks: 01) - Please choose the correct option

_________ provides redundancy by writing all data to two or more drives.


A. RAID-0
B. RAID-1
C. RAID-2
D. RAID-3

Question No: 31 (Marks: 01) - Please choose the correct option

Views can be created for?

A. One table
B. Many table
C. another view
D. All of the above

Question No: 32 (Marks: 01) - Please choose the correct option

_______ views help to keep the database up-to-date.

A. View materialization
B. View isolation
C. View updating
D. View maintenance

Question No: 33 (Marks: 01) - Please choose the correct option

_______________ have a structure separate from the data rows?

A. B-Tree
B. Non Clustered
C. Covered
D. Clustered

Question No: 34 (Marks: 01) - Please choose the correct option

To access the contents of the database, ___ user performs transactions.

A. Single
B. Two
C. Three
D. Multiple

Question No: 35 (Marks: 01) - Please choose the correct option

A ___________of the transactions can be obtained by finding a linear order consistent


with the partial order of the precedence graph.

A. Serializability order
B. Direction graph
C. Precedence graph
D. Scheduling scheme

Question No: 36 (Marks: 01) - Please choose the correct option

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

Question No: 38 (Marks: 01) - Please choose the correct option

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

Question No: 39 (Marks: 01) - Please choose the correct option

A management procedure called ___ control is required to control the process of


concurrently performing operations on a database.

A. Database
B. Conspiracy
C. Concurrency
D. Relational

Question No: 40 (Marks: 01) - Please choose the correct option

Which is the most restrictive isolation level in transaction?

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

Question No: 42 (Marks: 03)

Discuss the situation in which we use LIKE operator in SQL. Write the general syntax of
using LIKE operator.

Answer

Question No: 43 (Marks: 03)

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.

PID PName Price

P101 Printer 12000

P102 Keyboard 5000

P103 Monitor 15000

P104 Mother Board 5000

P105 ZIP Drive 3000

Answer
Question No: 44 (Marks: 03)

Consider given table Customer, and write a SQL query to find all customers whose city is
Karachi.

Customer ID Name City

C1 Asad Islamabad

C2 Bilal Karachi

C3 Anum Karachi

C4 Rabia Rawalpindi

C5 Saeed Islamabad

Answer

Question No: 45 (Marks: 03)

Write the three main Concurrency control problems, which we face in DBMS.
Answer

Question No: 46 (Marks: 03)

Write the difference between transaction and schedule.


Answer

Question No: 47 (Marks: 05)

Covert following relation into Second Normal Form. The scenario shows books borrowed
by students from Library.

Stu_Book(StudentID,StudentName,BookID,BookTitle,BorrowingDetail)

Dependencies:

- StudentName depends upon StudentID.


- BookTitle depends upon BookID.
- BorrowingDetail depends upon StudentID and BookID.

Answer

Question No: 48 (Marks: 05)

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

Question No: 49 (Marks: 05)

Match column A with Column B with their respective functionality.

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

Question No: 50 (Marks: 05)

Write the sample query to create dynamic view by “Using another View” and by “Using
Function”.
Answer

You might also like