- Which file organization method ensures that records are stored in a sequence based on a key field?A. Heap File Organization
B. Sequential File Organization
C. Hash File Organization
D. Clustered File Organization
Answer: B. Sequential File Organization - What is the primary purpose of an index in a database?A. To store data sequentially
B. To improve query performance
C. To reduce data redundancy
D. To increase data security
Answer: B. To improve query performance - In which file organization method are records stored randomly on the disk?A. Heap File Organization
B. Sequential File Organization
C. Hash File Organization
D. Clustered File Organization
Answer: A. Heap File Organization - Which of the following is a characteristic of hash file organization?A. Records are stored sequentially
B. Records are accessed directly using a hash function
C. Records are stored in sorted order
D. Records are stored in clusters
Answer: B. Records are accessed directly using a hash function - What type of index stores pointers to the actual data records in the database?A. Dense Index
B. Sparse Index
C. Primary Index
D. Secondary Index
Answer: A. Dense Index - Which access method is used to retrieve records sequentially from a file?A. Random Access
B. Sequential Access
C. Direct Access
D. Hash Access
Answer: B. Sequential Access - In which file organization method are related records stored together in the same disk block?A. Heap File Organization
B. Sequential File Organization
C. Hash File Organization
D. Clustered File Organization
Answer: D. Clustered File Organization - Which type of index is created on non-primary key columns to speed up query performance?A. Primary Index
B. Secondary Index
C. Clustered Index
D. Sparse Index
Answer: B. Secondary Index - What is the main advantage of using a clustered index?A. It uses less disk space
B. It stores data in a non-sorted order
C. It speeds up data retrieval by keeping related data close together
D. It eliminates the need for a primary key
Answer: C. It speeds up data retrieval by keeping related data close together - In a B-tree index, what is the term for the lowest level where actual data records are stored?A. Root Node
B. Leaf Node
C. Internal Node
D. Branch Node
Answer: B. Leaf Node - Which file organization method uses a hash function to compute the address of the record?A. Heap File Organization
B. Sequential File Organization
C. Hash File Organization
D. Clustered File Organization
Answer: C. Hash File Organization - What is the benefit of using a dense index over a sparse index?A. Less storage space is required
B. Faster retrieval of records
C. Easier to update
D. Supports only primary keys
Answer: B. Faster retrieval of records - Which file organization method is most efficient for range queries?A. Heap File Organization
B. Sequential File Organization
C. Hash File Organization
D. Clustered File Organization
Answer: B. Sequential File Organization - In the context of indexing, what does the term ‘fan-out’ refer to?A. The number of records indexed
B. The number of index levels
C. The number of children of a node in a B-tree
D. The size of the index file
Answer: C. The number of children of a node in a B-tree - Which access method allows records to be read in any order without regard to their physical sequence?A. Sequential Access
B. Random Access
C. Direct Access
D. Hash Access
Answer: B. Random Access
Related Posts:
- Private member access specifiers, Protected member access specifiers, Public member access specifiers in OOP C++
- File Handling using File Streams in C++
- Customizing the Ribbon and Quick Access Toolbar MCQs - MS Word
- Direct Memory Access (DMA) and Programmed Input/Output (PIO) interface in operating systems (OS)
- Friend function Can access private, protected and public members of a class
- Recognition and Authorization of Remote User & Access Provision by Admin on network