☑ MCQ PRACTICE

Database Management Systems Unit 5

Practice objective questions for quick revision and examination preparation. Try answering each question before revealing the answer.

📚 Database Management Systems
📖 Unit 5
🎯 MCQs

Database Management Systems - Unit-5

1
What is the primary purpose of an index in a database?
ATo sort data
BTo speed up data retrieval operations
CTo enforce data integrity
DTo create backups
Correct Answer To speed up data retrieval operations
2
Which indexing method is best suited for exact-match queries?
ATree-based indexing
BHash-based indexing
CBitmap indexing
DNone of the above
Correct Answer Hash-based indexing
3
Which data structure is commonly used in Tree-based indexing?
AArray
BLinked List
CB-Tree or B+ Tree
DHash Table
Correct Answer B-Tree or B+ Tree
4
Which of the following queries is Hash-based indexing NOT well-suited for?
AEquality queries
BRange queries
CPoint queries
DBoth A and C
Correct Answer Range queries
5
What is a ‘bucket’ in the context of Hash-based indexing?
AA collection of databases
BA collection of keys
CA collection of tables
DA slot where data can be inserted or retrieved
Correct Answer A slot where data can be inserted or retrieved
6
What is the key feature of B-Trees?
AThe tree is always balanced
BThe tree allows duplicates
CThe tree is unbalanced but can be balanced manually
DThe tree grows in a random fashion
Correct Answer The tree is always balanced
7
Which of the following is NOT a type of indexing in DBMS?
AClustered Indexing
BUnclustered Indexing
CBounded Indexing
DComposite Indexing
Correct Answer Bounded Indexing
8
What does a leaf node in a B+ Tree contain?
AOnly keys
BOnly data pointers
CBoth keys and data pointers
DNeither keys nor data pointers
Correct Answer Both keys and data pointers
9
Which of the following can be a disadvantage of indexing?
AFaster data retrieval
BIncreased storage space
CImproved data integrity
DFaster data insertion
Correct Answer Increased storage space
10
In which type of index are data and index entries stored together?
AClustered Index
BNon-Clustered Index
CHash Index
DBitmap Index
Correct Answer Clustered Index
11
A unit of storage that can store one or more records in a hash file organization is denoted as
ABuckets
BDisk pages
CBlocks
DNodes
Correct Answer Buckets
12
The file organization which allows us to read records that would satisfy the join condition by using one block read is
AHeap file organization
BSequential file organization
CClustering file organization
DHash file organization
Correct Answer Clustering file organization
13
Which file organization allows records to be stored in any available location?
ASequential
BDirect
CHeap
DClustered
Correct Answer Heap
14
In which file organization are records stored sequentially based on a key field?
ASequential
BIndexed Sequential
CDirect
DHeap
Correct Answer Sequential
15
Which file organization is efficient for range queries?
AHashing
BHeap
CIndexed Sequential
DDirect
Correct Answer Indexed Sequential
16
In Hashing, the function used to determine the storage location of a record is called:
AHash Function
BKey Function
CAddress Function
DSorting Function
Correct Answer Hash Function
17
Which of the following file organizations allows for quick retrieval based on a unique key?
AHeap
BHashing
CIndexed Sequential
DSequential
Correct Answer Hashing
18
In Indexed Sequential Access Method (ISAM), what is used to locate primary and secondary records?
AKey values
BIndices
CHash Values
DMemory Addresses
Correct Answer Indices
19
Which file organization does not require sorting of data?
ASequential
BIndexed Sequential
CHeap
DClustered
Correct Answer Heap
20
In which file organization is data stored in a sorted manner, but allows for additional data to be added easily?
ASequential
BDirect
CHeap
DDynamic Sequential
Correct Answer Dynamic Sequential
21
What is a drawback of sequential file organization?
ASlow read
BHigh storage cost
CSlow insert and update
DAll of the above
Correct Answer Slow insert and update
22
In a Clustered file organization, records from multiple tables that share a common field are stored together in:
ABlocks
BBuckets
CPages
DClusters
Correct Answer Clusters
23
Which type of index is created automatically when a primary key constraint is defined?
AClustered Index
BNon-Clustered Index
CComposite Index
DBitmap Index
Correct Answer Clustered Index
24
What is the primary purpose of query optimization?
AReduce disk storage
BReduce query execution time
CEnsure data integrity
DNone of the above
Correct Answer Reduce query execution time
25
What is the disadvantage of using too many indexes on a table?
AReduced disk storage
BFaster data retrieval
CSlower data modification operations
DImproved data integrity
Correct Answer Slower data modification operations
26
What is heap file organization?
AAny record can be placed wherever there is a space for the record
BRecords are stored in a sequential order according to a search key
CA hash function is computed on some attribute and that decides the block
DNone of the mentioned
Correct Answer Any record can be placed wherever there is a space for the record
27
What is sequential file organization?
AAny record can be placed wherever there is a space for the record
BRecords are stored in a sequential order according to a search key
CA hash function is computed on some attribute and that decides the block
DNone of the mentioned
Correct Answer Records are stored in a sequential order according to a search key
28
What is hashing file organization?
AAny record can be placed wherever there is a space for the record
BRecords are stored in a sequential order according to a search key
CA hash function is computed on some attribute and that decides the block
DNone of the mentioned
Correct Answer A hash function is computed on some attribute and that decides the block
29
What is the primary disadvantage of a clustered index?
ASlower updates and inserts
BIncreased storage space
CSlower data retrieval
DNone of the above
Correct Answer Slower updates and inserts
30
What is a secondary index primarily used for?
ATo enforce data integrity
BTo speed up data retrieval without affecting physical data order
CTo reduce storage space
DTo sort the data physically in the table
Correct Answer To speed up data retrieval without affecting physical data order
31
In a secondary index, each entry is a pair consisting of:
AA secondary key and a list of block pointers
BA primary key and a data pointer
CA secondary key and a data pointer
DA primary key and a list of block pointers
Correct Answer A secondary key and a list of block pointers
32
Which of the following types of index allows for non-unique values?
APrimary Index
BClustered Index with a primary key
CSecondary Index
DNone of the above
Correct Answer Secondary Index
33
What does a clustered index do?
ASorts the data rows in the table
BCreates a separate structure to hold index and data
CAllows for faster bitmap operations
DStores data out-of-order for optimized retrieval
Correct Answer Sorts the data rows in the table
← Back to All MCQs