AY 2022-23 DBMS Question Bank
AY 2022-23 DBMS Question Bank
(CSE,IT,AIML,DS,AIDS)
UNIT-1
QNO Description of Question Mark CO BTL
s PO
UNIT-2
QNO Description of Question Mark CO PO BTL
s
b 3M 2 2 3
3
UNIT-4
QNO Description of Question Mar Cou Progra BT
ks rse m L
outc Outco
ome me(PO
(CO )
)
a Define transaction? Explain its states 2M 4 1 2
b What do you mean by serializability of a schedule? 3M 4 2 1
1 c Explain the ACID Properties of transaction. 5M 4 2 2
How to test serializability of a schedule? Explain with an
d example. 5M 4 3 3
2. A _________ is a language that enables users to access or manipulate data as organized by the
appropriate data model. [ ]
A).DDL B).DML C).DCL D). TCL
6.Which of the following indicates the maximum number of entities that can be involved in a
relationship? [ ]
A) Minimum cardinality B) Maximum cardinality C) ERD D) Greater Entity Count
10. ____________ means to hide certain details of how data is stored and maintain. [ ]
A) Data Abstraction B) Data Integrity C) Data Isolation D)All
Unit-1 Key:
1. D 11. Physical Level
2. B 12. Logical
3. A 13. Mapping Cardinality
4. B 14. database independence
5. B 15. Entity set
6. B 16. Double line
7. B 17. Specialization
8. C 18. Weak
9. D 19. data dictionary
10. A 20. One to one
UNIT-2
Objective Questions
1. What is a view? [ ]
a) A view is a special stored procedure executed when certain event occurs
b) A view is a virtual table which results of executing a pre-compiled query
c) A view is a database diagram
d) None of the Mentioned
5. With SQL, how do you select all the records from a table named “Persons” where the value of
the column “FirstName” ends with an “a”? [ ]
a) SELECT * FROM Persons WHERE FirstName=’a’
b) SELECT * FROM Persons WHERE FirstName LIKE ‘a%’
c) SELECT * FROM Persons WHERE FirstName LIKE ‘%a’
d) SELECT * FROM Persons WHERE FirstName=’%a%’
6. With SQL, how can you return all the records from a table named “Persons” sorted descending
by “FirstName”? [ ]
a) SELECT * FROM Persons SORT BY ‘FirstName’ DESC
b) SELECT * FROM Persons ORDER FirstName DESC
c) SELECT * FROM Persons SORT ‘FirstName’ DESC
d) SELECT * FROM Persons ORDER BY FirstName DESC
8. Which of the following command makes the updates performed by the transaction permanent
in the database? [ ]
a) ROLLBACKb) COMMIT c) TRUNCATE d) DELETE
9. Inorder to ensure that the value of budget is non-negative which of the following should be
used?
a) Check(budget>0)
b) Check(budget<0)
c) Alter(budget>0)
d) Alter(budget<0)
10Which one of the following uniquely identifies the elements in the relation? [ ]
a) Secondary Key b) Primary key c) Foreign key d) Composite key
11. Which of the following operation is used for retrieving certain columns of a table?
[ ]
16. The operator that is used for pattern matching in SQL is _________.
17. The SQL statement that is used to delete a particular column in a relation/table is _______.
18.Using the select operation, you can select ___ that satisfy certain criteria.
19. A list of the attributes we wish to appear in the result is displayed in ___ operation.
20. If there are 2 types of tuples, A & B, the ___ operation contains all the tuples that are either
in A or B or both in A & B.
21.The Tuple Relational calculus is a _______________________Query Language.
Unit-2 Key:
1. B 12. inter-related tables
2. A 13. Foreign
3. D 14. Arity
4. A 15. Cartesian Product
5. C 16. LIKE
6. D 17. Alter
7. B 18. Tuples
8. B 19. Project
9. A 20. A U B
10. B 21. Non Procedural
11. C
UNIT-3
1.Tables in second normal form (2NF): [ ]
a) Eliminate the possibility of a insertion anomalies b) Have a composite key
c)Eliminate all partial dependencies d) Have all non-key fields depend on the whole primary
key
2.Which forms simplifies and ensures that there is minimal data aggregates and repetitive [ ]
groups:
a)2 NF b)3 NF c) 1 NF d)1,2 and 3 NF
7. If we have not specified ASC or DESC after a SQL ORDER BY clause, the following is used
by default [ ]
a)DESC b)ASC c)There is no default value d)None of the mentioned
11.The domain of attribute must include only atomic (simple, indivisible) values is called_____
12.A relation schema R is in ____ if it is in 1NF and every non-prime attribute A in R is fully
functionallydependent on primary key.
13._____ is based on the concept of transitive dependent.
14.If every non-prime attribute A in R is fully functionally dependent on the primary key
attribute of R,then R is said to be in ______
15.In __________ normal form, a composite attribute is converted to individual attributes.
16. ________________occurs when one copy of repeated data is updated, an inconsistency is
created unless all copies are similarly updated.
17. An_______________ is a predicate expressing a condition that we wish the database always
to satisfy.
18. A table is in 3NF if it is in 2NF and if it has no ______ dependencies
19. _______________ operator tests column for absence of data
20. ______________________aggregate function is used to retrieve minimum value.
Unit-3 Key:
1. C 11. 1 NF
2. B 12. 2 NF
3. D 13. 3 NF
4. B 14. 2 NF
5. A 15. 1 NF
6. D 16. Data redundancy
7. B 17. Assertion
8. C 18. transitive
9. B 19. IS NULL
10. C 20. MIN
UNIT-4
2.In order to maintain transactional integrity and database consistency, what technology does a
DBMS deploy? [ ]
5.If the access is read only then the following commands are not to be executed [ ]
a) Insert, Update &Delete b) Insert c)Update d)Delete
7. Any changes that the aborted transaction made to the database must be undone is_____[ ]
9 ____denotes the largest timestamp of any transaction that executed write(Q) successfully.[ ]
10. The ____ requires that each transaction Ti executes in two or three different phases in its
lifetime, depending on whether it is a read-only or an update transaction. [ ]
a) Validation protocol b) Validation-based protocol
11.The ____is the average time for a transaction to be completed after it has been submitted.
Unit-4 Key:
1. A 8. A
2. B 9. A
3. D 10. A
4. A
5. A 11. Average Response Time
6. C 12. Conflict serializability and View
7. C serializability
13. Shared Lock 17. Upgrade
14. Shared& Exclusive 18. Degrade
15. Growing 19. Consistency
16. Shrinking 20. Isolation
UNIT-5
1. Who can take steps to tune recover subsystems [ ]
a) Clientb) DBAc) System Analystd) Application programmer
5.The height of the B+ tree with only leaf level and a single index level is [ ]
a)4 b)2 c)1 d)3
8.The file organization that provides very fast access to any arbitrary record of a file is [ ]
a)Unordered file b)Hashed file c)Ordered file d)B-tree
11.A lock that allows concurrent transactions to access different rows of the same table is known as
a_____
12.A file organization in which the data records are ordered in same way as data entries in index is
called _______
13.A file organization in which the data records are ordered in different way as data entries in index is
called _______
14.A ______ is an index on a set of files which includes the primary key
15.An index that is not a primary key index is called a _______
16.______ is simplest file organization and stores the files in the order they arrive
17.______ is simplest file organization and stores the files in the order they arrive
18.______ are not organized sequentially, instead they are arranged randomly
19.______ enhance the performance of DBMS
20.Unit of information being transferred between main memory and a disk is called _____
Unit-5 Key:
1. B
2. C
3. A
4. A
5. C
6. B
7. C
8. B
9. C
10. B
11. Row level Lock
12. Clustered
13. Un-clustered
14. Primary index
15. Secondary index
16. Heap file
17. Unordered file
18. Hash file
19. Indexes
20. Page