Database Systems BS (CS) - 4A, BSSE-3A & 3B Fall-20 Sessional I & II and Their Solutions
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,
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.
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)
b). There are repeating attributes present in such as Customer name, deliver date, and purchase date. So initially this structure is not in normal
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