0% found this document useful (0 votes)
50 views

Database Systems BS (CS) - 4A, BSSE-3A & 3B Fall-20 Sessional I & II and Their Solutions

The document discusses a database systems sessional exam that contains 40 multiple choice questions. The questions cover topics such as: - Components of a database management system (dbms) - Database modeling concepts like entities, attributes, relationships, keys - Normalization and functional dependencies - Common database queries like insert, update - Database design considerations like data independence and security The sessional also includes an exercise to transform an entity relationship diagram into database relations and normalize the relations. Sample answers are provided for the questions and modeling exercise.

Uploaded by

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

Database Systems BS (CS) - 4A, BSSE-3A & 3B Fall-20 Sessional I & II and Their Solutions

The document discusses a database systems sessional exam that contains 40 multiple choice questions. The questions cover topics such as: - Components of a database management system (dbms) - Database modeling concepts like entities, attributes, relationships, keys - Normalization and functional dependencies - Common database queries like insert, update - Database design considerations like data independence and security The sessional also includes an exercise to transform an entity relationship diagram into database relations and normalize the relations. Sample answers are provided for the questions and modeling exercise.

Uploaded by

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

Database systems

BS(CS)- 4A, BSSE-3A & 3B


Fall-20
Sessional I & II and their Solutions:

Sessional 01
A program whose job is to store and retrieve user data in the database is
called:
(1 Point)
dbms
front end
case
Answer: dbms
2,
The completeness constraint may be one of the following: Total generalization
or specialization, Partial generalization or specialization. Which is the default?
(1 Point)
total
Transitive
Partial
Answer: Partial
3,
Which one of the following uniquely identifies the elements in the relation?
(1 Point)
Key
Primary key
foreign key
Answer: Primary Key
4,
Which relationship is not used to represent a specialization entity
(1 Point)
None
HasA
ISA
Answer: ISA
5,
In SQL, which command is used to update rows of a table?
(1 Point)
Modify
Insert
Update
Answer: Update

6,
Which constraint requires that an entity belongs to more than one lower-level
entity set.
(1 Point)
Overlap
Total Specialization rule
Disjoint
Answer: Disjoint
7,
Course(course_id,sec_id,semester) Here the course_id,sec_id and semester are
__________ and course is a _________
(1 Point)
Attributes, Relation
Relation, Entity
Table, instances
Answer: Attributes, Relation
8,
Which one of the following is not an advantage of the database management
system approach?
(1 Point)
complex machines
Reduced security and control of the data
data independence
Answer: Reduced security and control of the data
9,
An entity in A is associated with at most one entity in B, and an entity in B is
associated with at most one entity in A. This is called as
(1 Point)
Many to One
Many to Many
One to One
Answer: One to One
10,
If you were collecting and storing information about your music collection, an
album would be considered a(n)
(1 Point)
table
instance
entity Answer: table
11,
Which is not an example of a strong entity type?
(1 Point)
Person
Student
Course-id
Answer: Student
12,
Referential Integrity means
(1 Point)
Relationship links
Handling insertions and deletions in Master-detail tables
Foreign key
Answer: Handling insertions and deletions in Master-detail tables
13,
A collection of data that consists of name, address and email of a person is
called
(1 Point)
Record
Character
Byte
Answer: Record
14,
When you split a database, the part that contains all of the database tables is
called
(1 Point)
Front end
Back end
Source end
Answer: Back end
15,
The attribute name could be structured as an attribute consisting of first name,
middle initial, and last name. This type of attribute is called
(1 Point)
Composite
Derived
Decomposed
Answer: Composite

16,
Which of the following enables the user to modify data structures Without
affecting existing programs that use them?
(1 Point)
data dependence
integration paltform
data independence
Answer: Data independence
17,
Which relationship exists when 3 entities are associated
(1 Point)
Binary
Ternary
Unary
Answer: Ternary
18,
Weak entity set is represented as:
(1 Point)
underline
double line
double rectangle
Answer: Double Rectangle
19,
A person name, birthday and social security number are all examples of:
(1 Point)
Instances
Attributes
Entities
Answer: Attributes
20,
The degree of a relationship refers to the:
(1 Point)
Number of participating entities
Number of relationships
number of cardinality
Answer: Number of participating entities

21,
Which of the following may not be a single-valued attribute
(1 Point)
Address
Reg-number
Gender
Answer: Address
22,

Consider the following ERD, select the correct one option:


(1 Point)
Purchased parts may be supplied by many suppliers
Part ISA Manufactured part.
Purchased Part IS not a Part
Answer: Purchased parts may be supplied by many suppliers
23,
Physical database design decisions must be made carefully because of impacts
on?
(1 Point)
Accessibility
response time
Security
All of above
Answer: All of above
24,
Which is a set of entities of the same type that share the same properties, or
attributes.
(1 Point)
Entity list
Entity type
Entity set Answer: Entity Set
25,
A collection of related fields is called.
(1 Point)
Record
Feild
Domain
Answer: Record
26,

Consider the ERD and select the wrong one answer:


(1 Point)
Employee IS faculty
Employee is a person
Graduate student ISA student
Answer: Employee IS faculty
27,
Consider the following ERD and select the wrong answer:.
(1 Point)
Club may have many students
Student can go to many clubs
Student may belongs to one school
Answer: Student can go to many clubs
28,
A subtype entity
(1 Point)
May contains optional attributes not contained in super type
both of above
Inherits attributes of its super-type
Answer: both of above
29,
Which data model creates parent-child relationships between data elements
and restricts each child to have just one parent?
(1 Point)
Hierarchical
Network
Relational
Answer: Hierarchical
30,
The refinement from successive levels to an initial entity set represents a
design process in which distinctions are made explicit.
(1 Point)
Top-down
Bottom-up
Answer: Bottom-up
31,
The foreign key is found in.
(1 Point)
None of above
parent table
child table
Answer: Child table
32,
An entity in A is associated with at most one entity in B. An entity in B,
however, can be associated with any number (zero or more) of entities in A.
(1 Point)
Many to One
One to many
Answer: Many to One

33,
Relationships among with an entity itself
(1 Point)
Single
Ternary
Unary
Answer: Unary
34,
Which of the following can not be a multivalued attribute?.
(1 Point)
Address
Reg-number
Phone
Answer: Reg-Number
35,
What term is used to refer to a specific record in your music database; for
instance; information stored about a specific album?
(1 Point)
Instance
data
fact
Answer: Instance
36,
Database application contains procedures for:
(1 Point)
both of above
insertion record
deletion record
Answer: Both of above
37,
The most common type of relationship encountered in data modeling is
(1 Point)
Binary
Associative
Ternary
Answer: Binary

38,
Which of the following gives a logical structure of the database graphically?
(1 Point)
ERD
DFD
Entity shape
Answer: ERD
39,
Identifiers that do not consist of two or more attributes are called
(1 Point)
Key
Single attributed Primary key
Composite key
Answer: Single attributed Primary Key
40,
Duplicate data in multiple data files is called

(1 Point)
redundancy
high bulks of data
manipulation
Answer: redundancy
Sessional 02
Transform the following ERD into a relation and normalize it as well.
(-/5 Points)
Associative entity is converted into separate relation.
Reg-No is primary key in Stduent. C-name is primary key in Course.

Three resulting relation are:


Student: Reg-No(pk), Program, Name
Course: c-name(pk)
Completes: Reg-No(fk), c-name(fk), finishDate, GPA

The relation are in


No repeated attribute so relations are in1NF.
After partial dependencies this relation is clearly in 2NF.
There are no Transitive dependencies in relation this relation hence it is 3NF.

2
Which functional dependency types are present in the following
dependencies? Empno -> EName, Salary, Deptno, DName DeptNo -> DName
EmpNo -> DName
(-/1 Points)
Full functional dependency
Partial functional dependency
both of above
3
Read the following scenario carefully: ---------------------------------------------
------ A pet store currently uses a flat-file system to store all of its information.
The owner of the store, Muhammad Ali, wants to implement a database
application. This would enable branch stores to enter data regarding inventory
levels, ordering, and so on. Assume that you want to track all purchase and
inventory data, such as who bought the fish, the date that it was purchased,
the date that it was delivered, and so on. The present file format allows only
the tracking of the last purchase and delivery as well as four prior purchases
and deliveries.

Consider the following attributes for the store relation: Store( StoreName,
PetName, Pet Description, Price, Cost, SupplierName, ShippingTime,
QuantityOnHand, DateOfLastDelivery, DateOfLastPurchase, DeliveryDate1,
DeliveryDate2, DeliveryDate3, DeliveryDate4, PurchaseDate1, PurchaseDate2,
PurchaseDate3, PurchaseDate4, LastCustomerName, CustomerName1,
CustomerName2, CustomerName3, CustomerName4)

a. Show all functional dependencies.


b. What normal form is this table in?
c. Design a normalized data model for these data. Show that it is in 3NF.
(-/7 Points)
a). Functional dependencies for the relation are given below :
Store Name and PetName are primary keys w hich make a composite primary key.
PetName > PetDescription, Price, Cost, SupplierName, ShippingTime (Partial Dependency)
StoreName, PetName > QuantityOnHand (Fully Functional Dependency)
StoreName, PetName > PetDescription, Price, Cost, SupplierName, ShipingTime, QuantityOnHand,
DateofLastDelivery, DeliverDate1, DeliverDate2, DeliverDate3, DeliverDate4,
PurchaseDate1, PurchaseDate2, PurchaseDate3, PurchaseDate4,
LastCustomerName, CustomerName1, CustomerName2, CustomerName3,
CustomerName4

b). There are repeating attributes present in such as Customer name, deliver date, and purchase date. So initially this structure is not in normal

c). The 3NF normalized data model is explained below :


StoreID, PetID > Quantityonhand
StoreID, PetID > DeliveryDate
StoreID > StoreName

4
A relation is said to be in BCNF, if :
(-/1 Points)
it has no composite primary key
Every determinant is a candidate key
It has no partial dependency
5
What is a candidate key
(-/1 Points)
A primary key
A foreign key
A potential primay key

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy