Home »
MCQs »
DBMS MCQs
DBMS Indexing MCQs
DBMS Indexing MCQs: This section contains multiple-choice questions and answers on Indexing in DBMS.
Submitted by Anushree Goswami, on April 23, 2022
1. A database is ___ to reduce the number of disk accesses needed to process queries in order to improve performance.
- Non-indexed
- Indexed
- Inserted
- Updated
Answer: B) Indexed
Explanation:
A database is indexed to reduce the number of disk accesses needed to process queries in order to improve performance.
Discuss this Question
2. What is index?
- Type of Dataset
- Type of Database
- Type of Record
- Type of Data Structure
Answer: D) Type of Data Structure
Explanation:
Index is the type of data structure.
Discuss this Question
3. A database ___ can be quickly accessed and located with it.
- Row
- Column
- Table
- Field
Answer: C) Table
Explanation:
A database table can be quickly accessed and located with it.
Discuss this Question
4. Some database columns can be used to create ___.
- Indices
- Files
- Indexes
- Records
Answer: C) Indexes
Explanation:
Some database columns can be used to create indexes.
Discuss this Question
5. How many columns are there in Structure of Index?
- 2
- 3
- 4
- 5
Answer: A) 2
Explanation:
There are 2 columns in the Structure of Index.
Discuss this Question
6. Which of the following is the column in structure of index?
- Search Key
- Data Reference
- Both A and B
- None of the above
Answer: C) Both A and B
Explanation:
The columns in the structure of index are -
- Search Key
- Data Reference
Discuss this Question
7. A copy of the ___ of the table is in the first column of the database, i.e., search key.
- Primary Key
- Candidate Key
- Both A and B
- None of the above
Answer: C) Both A and B
Explanation:
A copy of the primary key or candidate key of the table is in the first column of the database.
Discuss this Question
8. A ___ key is sorted in order to make it easy to access data corresponding to it.
- Primary
- Foreign
- Composite
- Alternate
Answer: A) Primary
Explanation:
A primary key is sorted in order to make it easy to access data corresponding to it.
Discuss this Question
9. ___ are found in the second column of the database.
- Datasets
- Data structure
- Data references
- Data items
Answer: C) Data references
Explanation:
Data references are found in the second column of the database.
Discuss this Question
10. Each ___ consists of a set of pointers containing the address of the disk block containing the value for that ___.
- Dataset
- Data Item
- Key
- Log
Answer: C) Key
Explanation:
Each key consists of a set of pointers containing the address of the disk block containing the value for that key.
Discuss this Question
11. How many indexing methods are there?
- 3
- 4
- 5
- 6
Answer: B) 4
Explanation:
There are 4 indexing methods.
Discuss this Question
12. Which of the following is an indexing method?
- Primary
- Clustering
- Secondary
- All of the above
Answer: D) All of the above
Explanation:
The indexing methods are -
- Ordered
- Primary
- Clustering
- Secondary
Discuss this Question
13. How many types of primary index are there?
- 2
- 3
- 4
- 5
Answer: A) 2
Explanation:
There are 2 types of primary index.
Discuss this Question
14. Which of the following is the type of primary index?
- Dense Index
- Spare Index
- Both A and B
- None of the above
Answer: C) Both A and B
Explanation:
The type of primary index are -
- Dense Index
- Spare Index
Discuss this Question
15. Searches are usually made ___ by sorting the indices.
- Slower
- Dimmer
- Faster
- Stopped
Answer: C) Faster
Explanation:
Searches are usually made faster by sorting the indices.
Discuss this Question
16. Indexes that are ordered are referred to as ___ indices.
- Ordered
- Primary
- Clustering
- Secondary
Answer: A) Ordered
Explanation:
Indexes that are ordered are referred to as ordered indices.
Discuss this Question
17. It is known as primary indexing if the index is created based on the table's primary key.
- Primary
- Foreign
- Alternate
- Composite
Answer: A) Primary
Explanation:
It is known as primary indexing if the index is created based on the table's primary key.
Discuss this Question
18. Records containing these primary keys are uniquely identified by these keys and have a ___ relationship between them.
- 1:1
- 1:M
- M:1
- M:M
Answer: A) 1:1
Explanation:
Records containing these primary keys are uniquely identified by these keys and have a 1:1 relationship between them.
Discuss this Question
19. Since primary keys are sorted, ___ operations are quite efficient because of their sorted order.
- Add
- Update
- Search
- Delete
Answer: C) Search
Explanation:
Since primary keys are sorted, search operations are quite efficient because of their sorted order.
Discuss this Question
20. Each search key value in the data file has an index record in the ___ index.
- Sparse
- Dense
- Both A and B
- None of the above
Answer: B) Dense
Explanation:
Each search key value in the data file has an index record in the dense index.
Discuss this Question
21. There is no difference in the number of ___ in the index and main tables when using Dense Index.
- Files
- Databases
- Records
- Datasets
Answer: C) Records
Explanation:
There is no difference in the number of records in the index and main tables when using Dense Index.
Discuss this Question
22. The index record itself takes up ___ space in a dense index.
- Less
- Little
- Few
- More
Answer: D) More
Explanation:
The index record itself takes up more space in a dense index.
Discuss this Question
23. Which of the following is the type of primary index?
- Dense Index
- Spare Index
- Both A and B
- None of the above
Answer: C) Both A and B
Explanation:
The type of primary index are -
Discuss this Question
24. Besides the search key, index records contain a pointer to the ___ data on the disk.
- Previous
- Consecutive
- Actual
- None
Answer: C) Actual
Explanation:
Besides the search key, index records contain a pointer to the actual data on the disk.
Discuss this Question
25. ___ index records appear only for a few items in the data file.
- Dense
- Sparse
- Both A and B
- None of the above
Answer: B) Sparse
Explanation:
Sparse index records appear only for a few items in the data file.
Discuss this Question
26. Sparse index items point to ___.
- Files
- Records
- Blocks
- None
Answer: C) Blocks
Explanation:
Sparse index items point to blocks.
Discuss this Question
27. An index that points to the records in a ___ in the main table rather than each record in the main table is a sparse index.
- Filled Space
- Gap
- Files
- Records
Answer: B) Gap
Explanation:
An index that points to the records in a gap in the main table rather than each record in the main table is a sparse index.
Discuss this Question
28. An ordered data file can be considered a ___ index.
- Primary
- Dense
- Sparse
- Clustered
Answer: D) Clustered
Explanation:
An ordered data file can be considered a clustered index.
Discuss this Question
29. The index can be built on columns other than ___ keys, which are not guaranteed to be unique.
- Primary
- Foreign
- Composite
- Alternate
Answer: A) Primary
Explanation:
The index can be built on columns other than primary keys, which are not guaranteed to be unique.
Discuss this Question
30. Clustering can be used to identify records faster by grouping ___ columns to get the unique value and creating an index from them.
- One
- Two
- Two or more
- None
Answer: C) Two or more
Explanation:
Clustering can be used to identify records faster by grouping two or more columns to get the unique value and creating an index from them.
Discuss this Question
31. Creating indices for these groups of records such as in clustering index is done after groups of records which have similar characteristics are ____ together.
- Grouped
- Distributed
- Replaced
- None
Answer: A) Grouped
Explanation:
Creating indices for these groups of records is done after groups of records which have similar characteristics are grouped together.
Discuss this Question
32. In the case of creating separate disk blocks for individual clusters, that's referred to as a ___.
- Technique
- Better
- Better Technique
- Technique Better
Answer: C) Better Technique
Explanation:
In the case of creating separate disk blocks for individual clusters, that's referred to as a better technique.
Discuss this Question
33. Whenever the size of the table increases, so does the size of the ___ in the sparse index.
- Table
- Mapping
- Files
- Adding
Answer: B) Mapping
Explanation:
Whenever the size of the table increases, so does the size of the mapping.
Discuss this Question
34. A mapping would typically be kept in ____ memory in order to make address fetching faster.
- Primary
- Secondary
- Ternary
- None
Answer: A) Primary
Explanation:
A mapping would typically be kept in primary memory in order to make address fetching faster.
Discuss this Question
35. Based on the ___ mapped to the secondary memory, that memory searches for the data.
- Address
- Number
- Name
- Type
Answer: A) Address
Explanation:
Based on the address mapped to the secondary memory, that memory searches for the data.
Discuss this Question
36. Fetching the address becomes slower when the mapping size grows.
- Faster
- Super faster
- Slower
- None
Answer: C) Slower
Explanation:
Fetching the address becomes slower when the mapping size grows.
Discuss this Question
37. When the mapping size grow which index is inefficient?
- Sparse
- Secondary
- Both A and B
- None of the above
Answer: A) Sparse
Explanation:
When the mapping size grows, the sparse index is inefficient.
Discuss this Question
38. Adding another level of ___ to secondary ___ reduces the size of mapping.
- Indexing
- Mapping
- Adding
- Merging
Answer: A) Indexing
Explanation:
Adding another level of indexing to secondary indexing reduces the size of mapping.
Discuss this Question
39. In the secondary index method, the large ranges of the columns are selected to begin with so that the ___ level of mapping becomes small.
- First
- Second
- Middle
- Last
Answer: A) First
Explanation:
In the secondary index method, the large ranges of the columns are selected to begin with so that the first level of mapping becomes small.
Discuss this Question
40. As part of the secondary index method, the columns are initially selected for their huge ranges, resulting in a small first-level mapping size. After that, each range is further divided into ___ ranges.
- Bigger
- Larger
- Smaller
- Wider
Answer: C) Smaller
Explanation:
As part of the secondary index method, the columns are initially selected for their huge ranges, resulting in a small first-level mapping size. After that, each range is further divided into smaller ranges.
Discuss this Question
41. ___-level mappings are stored in primary memory, so that accessing them is more expedient.
- First
- Second
- Third
- Last
Answer: A) First
Explanation:
First-level mappings are stored in primary memory, so that accessing them is more expedient.
Discuss this Question
42. Both the ___ level mapping and actual data are stored on the hard disk (secondary memory).
- First
- Second
- Third
- None
Answer: B) Second
Explanation:
Both the second level mapping and actual data are stored on the hard disk (secondary memory).
Discuss this Question