GATE CS File Organization and Indexing (B and B+ Trees) questions
Practise File Organization and Indexing (B and B+ Trees) questions for GATE CS. Explore official PYQs and original topic-wise quizzes, check answers and view available solutions. Free, no sign-in.
Subject, topic, year and type filter the full library. Match any choice within a filter, and all selected filter categories. Search, source and sort apply to this page.
20 on this page
An index in a DBMS is said to be dense if an index entry appears for every search-key value in the indexed file. Otherwise it is called a sparse index. Consider the following two statements. : A hash index must be a dense index : A tree index can be a sparse index Which one of the following options is correct?
Consider the following tree with nodes, in which a node can store at most key values The value is now inserted in the tree. Which of the following options(s) is/are CORRECT?
In a - tree where each node can hold at most four key values, a root to leaf path consists of the following nodes: The -marked keys signify that these are data entries in a leaf. Assume that a pointer between keys and …
In a tree, the requirement of at least half-full node occupancy is relaxed for which one of the following cases?
Which of the following file organizations is/are efficient for the scan operation in ?
Consider a database of fixed-length records, stored as an ordered file. The database has records, with each record being bytes, of which the primary key occupies bytes. The data file is block-aligned in that each data record is fully contained within a block. The database is indexed by a primary index file, which is also stored as a …
A data file consisting of student-records is stored on a hard disk with block size of bytes. The data file is sorted on the primary key . The size of a record pointer for this disk is bytes. Each student-record has a candidate key attribute called of size bytes. Suppose an index file …
Consider a database implemented using tree for file indexing and installed on a disk drive with block size of . The size of search key is and the size of tree/disk pointer is . Assume that the database has one million records. Also assume that no node of the tree and no records are present …
Which one of the following statements is NOT correct about the tree data structure used for creating an index of a relational database table?
In a Tree , if the search-key value is bytes long , the block size is bytes and the pointer size is , then the maximum order of the Tree is ____
B+ Trees are considered BALANCED because.
A file is organized so that the ordering of the data records is the same as or close to the ordering of data entries in some index. Then that index is called
With reference to the tree index of order shown below, the minimum number of nodes (including the Root node) that must be fetched in order to satisfy the following query. "Get all records with a search key greater than or equal to and less than " is ______.
Consider a tree in which the search key is long, block size is , record pointer is long and the block pointer is long. The maximum number of keys that can be accommodated in each non-leaf node of the tree is ______.
An index is clustered, if
Consider a relational table with sufficient number of records, having attributes and let . Two queries and are given below. where is a constant …
Consider a -tree in which the maximum number of keys in a node is . What is the minimum number of keys in any non-root node?
The following key values are inserted into a - tree in which order of the internal nodes is , and that of the leaf nodes is , in the sequence given below. The order of internal nodes is the maximum number of tree pointers in each node, and the order of leaf nodes is the maximum number of data items that can be stored in it. The - …
A B-tree of order is built from scratch by successive insertions. What is the maximum number of node splitting operations that may take place?
A clustering index is defined on the fields which are of type
