GATE CS 2024 Set 2 — Question 26
Go beyond PYQs with Success TrackerAI-powered personalised practice and doubt support. Unlimited practice on eligible plans; AI usage limits apply.MSQ+1 / -0MediumIndexing & File OrganizationDatabases
Databases → Indexing & File Organization
Last updated
Question
Which of the following file organizations is/are I/O efficient for the scan operation in DBMS?
Correct answer
(A) Sorted; (B) Heap
Solution
A scan operation involves retrieving all records in the relation.(A) TRUE: In a Sorted file organization, records are stored sequentially. Scanning involves reading blocks contiguously, which is very I/O efficient.
(B) TRUE: In a Heap file organization, records are stored in data blocks without any specific order. Scanning simply requires reading all the data blocks sequentially, which is I/O efficient.
(C) FALSE: An Unclustered tree index stores pointers to data records. Scanning via the index requires traversing the leaf nodes and then fetching each record from the data file. Since the data file is not sorted by the index key, this leads to random I/O for every record, which is very inefficient.
(D) FALSE: An Unclustered hash index is designed for point queries. Scanning requires iterating through buckets and following pointers to data records, resulting in random I/O, which is inefficient.
(B) TRUE: In a Heap file organization, records are stored in data blocks without any specific order. Scanning simply requires reading all the data blocks sequentially, which is I/O efficient.
(C) FALSE: An Unclustered tree index stores pointers to data records. Scanning via the index requires traversing the leaf nodes and then fetching each record from the data file. Since the data file is not sorted by the index key, this leads to random I/O for every record, which is very inefficient.
(D) FALSE: An Unclustered hash index is designed for point queries. Scanning requires iterating through buckets and following pointers to data records, resulting in random I/O, which is inefficient.
Continue learning with Success Tracker
A step still unclear? Work through it with support
Use Success Tracker to ask about the reasoning, then try another GATE CS question to check your understanding.
AI-powered practice· Unlimited practice on eligible plans
- PYQs with solutions
- Attempt available previous-year questions, then compare your reasoning with the worked solution. Coverage varies by stream.
- Practice that adapts
- Choose a topic, work on weaker areas and bookmark questions to revisit. Your attempts feed your progress tracking.
- AI doubt support
- Ask follow-up questions about a step or concept while practising, instead of stopping at the final answer.
Unlimited practice is available on eligible plans. Free practice and AI usage have limits; check the current plan allowances before choosing.
This page stays readable without an account. AI responses can be wrong; check them against the solution and source material.
More questions on Indexing & File Organization
2026 Set 2 Q15In the context of DBMS, consider the two sets T and S given below. | T | S | |---|---| | I:…2026 Set 2 Q20Consider concurrent execution of two transactions and in a DBMS, both of which access a…2026 Set 1 Q30Let and be the attributes of a relation in a relational schema. Let…2026 Set 1 Q31In the context of relational database normalization, which of the following statements is/are true?2026 Set 2 Q42In the context of schema normalization in relational DBMS, consider a set F of functional…