GATE CS 2024 Set 2 | Question 26
Databases › File Organization & Indexing · MSQ · 1 mark · Answer: A, B
- Question 26Databasesmsq1 markWhich file organization(s) is/are I/O efficient for the scan operation?
- A.Sorted✓
- B.Heap✓
- C.Unclustered tree index
- D.Unclustered hash index
Answer: A, B
Solution
Answer: (A) and (B) Scanning reads all records sequentially. A Sorted file and a Heap file store records contiguously, so a full scan reads pages sequentially and is I/O efficient. Unclustered indexes (tree or hash) point to records scattered across pages, so scanning through them causes random I/O and is inefficient. - A.
More GATE PYQ on File Organization & Indexing
All GATE CS Databases PYQ →Attempt GATE CS 2024 Set 2 in real GATE exam mode
Full paper with a timer, the GATE interface and a topic-wise analysis — free.
Create free account →